Browse by Tags

All Tags » Java (RSS)

How I solved java.lang.UnsupportedClassVersionError

I was trying out HSQLDB to run SQL scripts with ANT last night when I encountered java.lang.UnsupportedClassVersionError. Never encountered this in 3 years of coding. Recently, I tried to play safe and installed several JDK (and JRE) versions, and so...
Posted by lamia | with no comments
Filed under: , ,

Setting the Decimal Separator in Java

I was asked to solve a problem of parsing a float value in dutch format ( 9,6 instead of 9.6). The former would always parse as a whole number, 96 instead of 9.6 ). I read on the documentation from sun, http://java.sun.com/j2se/1.4.2/docs/api/java/text...
Posted by lamia | with no comments
Filed under:

RAD7 - java.io.IOException: FATAL ERRORS encountered by WSDL2Java tool.

I was encountering the error below everytime I tried to invoke a WS client in RAD7. I was calling the WS through a console application using a generated client stub. Deployment error: java.io.IOException: FATAL ERRORS encountered by WSDL2Java tool. at...
Posted by lamia | with no comments

Eclipse seems intelligent enough to really follow Java naming conventions

I'm very sensitive on how I know my variables when I program and the most I'm very careful with is naming boolean variables. So I was trying to create a new variable inside of Eclipse and I'm not used to naming my boolean vars like isNew,...
Posted by lamia | with no comments
Filed under: ,

JUnit with Netbeans

In my office, TDD is a new methodology that we've just began adopting. My senior wrote a TestCase class before he left the company. Thanks to him, I got some sample codes to study. After baby sitting, I decided to open my computer and fire up netbeans...
Posted by lamia | 1 comment(s)
Filed under: , , ,

JBible - A Java based Bible Application

Well... It was one hell of a week for me and I needed something to remind me how fun programming is. Or used to be hehehe. This was supposed to be an entry to Keith's contest, I unfortunately fell ill a few days before the deadline and wasn't...
Posted by lamia | 7 comment(s)
Filed under:

Parsing Excel Date with POI - JXLS

Just a quick post from me here. I couldn't find any resources on the internet, I couldn't remember how I found this solution. Here's the scenerio. When you try to parse and Excel sheet using JXLS, unless your Excel sheet column is formatted...
Posted by lamia | 2 comment(s)
Filed under: ,

If-Else vs Throwing an Exception to handle errors

Note: In reading this post, please disregard for a moment the difference between an exception and an error. I mainly used the word error for convenience. Thank you. Yesterday, I was given a tip by my team lead which I found nice and quite elegant to do...
Posted by lamia | 3 comment(s)
Filed under: ,

Should Scala Extend the Java Language Capability?

While reading Bruce Eckel's article, Java: Evolutionary Dead End, he mentioned of another programming language which is somehow based on Java(and runs on the same VM) but has the feel and construct of a Scripting language(e.g. Ruby). I got interested...
Posted by lamia | with no comments
Filed under: ,

Deploying your Jar with your War in Eclipse

Note: I've done the following using Rad7 but should also be applicable to Eclipse(since RAD7 is basically made on top of Eclipse). When you have total control of you web container/app server, deploying jar files is as easy as dropping the folder in...
Posted by lamia | 2 comment(s)
Filed under: ,

Annoying requirement for an EJB Session Bean method

I'm a bit irritated about Session Beans because I have to implement the Serializable interface for every object that I pass to a Remote method. Of course, it totally makes sense to do that when you're making remote invocation but I'm thinking...
Posted by lamia | 2 comment(s)
Filed under: , ,

EJB and Java EE Design Patterns

I'm still not doing much here in my new job. There's still a lot of things to be set up. I finally got to meet with our very own Nards (N.Ocampo). Aside from that, I've been reading on Java Enterprise Design Patterns for the past one week...
Posted by lamia | with no comments
Filed under: , ,

Bitshifting for dummies

Disclaimer: The writer is a dummy in bit shifting and therefore this post does not come with any warranty of replacing your job if you replace all the business calculations in your system with the methods mentioned here. The below examples only work for...
Posted by lamia | 2 comment(s)
Filed under:

My observation on how a JAX-WS Webservice is deployed to Tomcat when creating a Webservice End-Point in Netbeans

I was playing with Netbeans today and wanted to see how I would be able to deploy a Webservice. I started by importing all the required Jar file. I used a wizard(Library Manager) so all the required Jars were already placed on my behalf. If you want to...
Posted by lamia | 2 comment(s)

WSDL Hell

The usual way of making a webservice client in Java is by feeding Axis's WSDL2JAR tool or Using the Eclipse/Netbeans IDE with a URL that looks something like http://someurl.com/webservice.aspx?wsdl . Alternatively, you could use a WSDL file. I thought...
Posted by lamia | with no comments
More Posts Next page »