[ http://issues.apache.org/jira/browse/XALANJ-1919?page=all ]
Brian Minchau updated XALANJ-1919:
----------------------------------
Version: Latest Development Code
(was: 2.6)
> NumberFormatException parsing Encodings.properties
> --------------------------------------------------
>
> Key: XALANJ-1919
> URL: http://issues.apache.org/jira/browse/XALANJ-1919
> Project: XalanJ2
> Type: Bug
> Components: Serialization
> Versions: Latest Development Code
> Environment: Operating System: Linux
> Platform: All
> Reporter: sjb
> Assignee: Xalan Developers Mailing List
>
> 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.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]