db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel John Debrunner (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3148) IllegalArgumentException: Malformed \uxxxx encoding while trying to find Xalan version running tests via ant
Date Wed, 24 Oct 2007 21:21:51 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12537428

Daniel John Debrunner commented on DERBY-3148:

The issue is that org.apache.derbyTesting.junit.XML.checkXalanVersion() assumes that


writes its output in a format that the java.util.Properties.load() will support and it doesn't.
Its javadoc says a format similar to the Properties file format.

I tried changing the code to ensure the output encoding was ISO-8859-1 (rather than the platform
default by doing this in checkXalanVersion() but it makes no difference.

            PrintWriter pW = new PrintWriter(
                    new OutputStreamWriter(bos, "ISO-8859-1"));

I'm seeing a failure because my classpath (on windows) has elements which include '\utils'
which Properties.load is trying to interpret as a unicode escape sequence (\uxxxx).

> IllegalArgumentException: Malformed \uxxxx encoding while trying to find Xalan version
running tests via ant
> ------------------------------------------------------------------------------------------------------------
>                 Key: DERBY-3148
>                 URL: https://issues.apache.org/jira/browse/DERBY-3148
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions:
>         Environment: ant 1.7.0
> IBM JVM 1.5
> Windows XP
>            Reporter: Daniel John Debrunner
>            Assignee: Daniel John Debrunner
> Following stack trace after executing:
> ant -propertyfile ant.properties junit-all-codeline-jars
>     [junit] Unexpected exception while trying to find Xalan version:
>     [junit] java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
>     [junit]     at java.util.Properties.loadConvert(Properties.java:531)
>     [junit]     at java.util.Properties.load(Properties.java:370)
>     [junit]     at org.apache.derbyTesting.junit.XML.checkXalanVersion(XML.java:
> 329)
>     [junit]     at org.apache.derbyTesting.junit.XML.<clinit>(XML.java:116)

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message