1 Dec 2005 16:40
java.lang.NumberFormatException
Marquis Samuel <samuel.marquis <at> elca.ch>
2005-12-01 15:40:21 GMT
2005-12-01 15:40:21 GMT
Hello, I use xerces-j 1.4.4 with java 1.3.1 (no choice.) For weeks I used it in a program to parse a file and it worked well but now I got this: java.lang.NumberFormatException: 20051411427 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111) Nowhere do I say that this tag should contain a number (I have no DTD or Schema); and the funny thing is that if I change its content to characters other than numbers, the file is parsed without error. If I understand well, the parse should just call my handler implementation for any tag and characters it meets; it should not try do convert the tag's content or the caracters into anything, right? Also, I seems to me I have not changed any code related to this lately, so I do not understand what is wrong. I made some tests: -if I change the content of the file such as to replace the fautly "20051411427" with a string other than digits, it works; -if I reduce the number of digits, it works : number too large? -I have other 11-digits strings in the file, they do not produce errors.(Continue reading)
RSS Feed