You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/08/13 00:58:20 UTC

DO NOT REPLY [Bug 30638] New: - NumberFormatException parsing Encodings.properties

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30638>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30638

NumberFormatException parsing Encodings.properties

           Summary: NumberFormatException parsing Encodings.properties
           Product: XalanJ2
           Version: 2.6
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xml.serializer
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: sjb@instruction.com


When org.apache.xml.serializer.Encodings parses and reads Encodings.properties 
it gets a NumberFormatException. The string being passed to Integer.decode() 
is "# can be found at http://www.iana.org/assignments/character-sets" - which 
is the last line of Encodings.properties.

I've worked around this by making a copy of Encodings.properties deleting the 
last line, and setting the org.apache.xalan.serialize.encodings property to 
point at it.

The problem appears to be triggered by the fact that the last line of 
Encodings.properties doesn't have a newline at the end. If I do nothing to the 
file other than add that trailing newline, everything works fine.

I'm not sure what simple circumstances trigger the failure - I'm building a 
Cocoon application under Tomcat5, where the error occurs in instantiating the 
Trax serializer. In trying to solve this problem I came across a message in a 
mailing list somewhere indicating that Ant with -d shows it as an uncaught 
exception as well.

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org