XStream and scientific notation issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

XStream and scientific notation issue

gabel6971
This post has NOT been accepted by the mailing list yet.
I have an object that I convert to XML using XStream.  Occasionally I am encountering errors (not all the time) on fields that are both of type Integer and double.  I get the java error java.lang.NumberFormatException: For input string: ".12625E312625" because XStream seems to be converting this number to scientific notation.  I cannot figure out how this is occurring and how I should correct it.  I could see if the double numbers were very large but my numbers never exceed 100,000.00 and I don't understand why it would be doing it on the Integer field.  Any help would be greatly appreciated.

Thanks.