You guys rocks! Thanks...switching to jvm 1.4.2 worked, i just had to change my code to StringBuffer.