Search code examples
javaexceptionnumberslocalenumberformatexception

Java NumberFormatException Legacy Code


I have a legacy program (java 1.4) running under Tomcat/Jboss, however, i have copy it to a new server (java 1.7) and it throws the following exception.

java.lang.NumberFormatException: For input string: "0000000000000000009011,00"
    sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1250)
    java.lang.Double.valueOf(Double.java:504)
    java.lang.Double.<init>(Double.java:597)

Since i don't have access to the source, is there any way to fix this? i haven't try with java 1.4 for the moment


Solution

  • You schould look to jvm parameters on old server. Your language parameters will change comma to dot actually so you do not need any code changes.