[ 
https://issues.apache.org/jira/browse/QPID-4281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated QPID-4281:
-----------------------------

    Status: Open  (was: Ready To Review)

Hi Phil/Alex

Tests fail for me if I run within a directory whose parent contains spaces.    
This is the situation we have on Apache CI.  For instance, BrokerLoggingTest:



{noformat}
Exception in constructor: testBrokerStartupConfiguration 
(java.lang.RuntimeException: Couldn't URI from log4.conf
iguration: file:////home/keith/src/qpid 
wspace/qpid/java/test-profiles/log4j-test.xml
        at 
org.apache.qpid.test.utils.QpidBrokerTestCase.initialiseLogConfigFile(QpidBrokerTestCase.java:220)
        at 
org.apache.qpid.test.utils.QpidBrokerTestCase.<init>(QpidBrokerTestCase.java:204)
        at 
org.apache.qpid.server.logging.AbstractTestLogging.<init>(AbstractTestLogging.java:44)
        at 
org.apache.qpid.server.logging.BrokerLoggingTest.<init>(BrokerLoggingTest.java:48)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at junit.framework.TestSuite.createTest(TestSuite.java:131)
        at junit.framework.TestSuite.addTestMethod(TestSuite.java:114)
        at junit.framework.TestSuite.<init>(TestSuite.java:75)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:398)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
        at 
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
Caused by: java.net.URISyntaxException: Illegal character in path at index 30: 
file:////home/keith/src/qpid wspace/qpid/java/test-profiles/log4j-test.xml
        at java.net.URI$Parser.fail(URI.java:2809)
        at java.net.URI$Parser.checkChars(URI.java:2982)
        at java.net.URI$Parser.parseHierarchical(URI.java:3066)
        at java.net.URI$Parser.parse(URI.java:3014)
        at java.net.URI.<init>(URI.java:578)
        at 
org.apache.qpid.test.utils.QpidBrokerTestCase.initialiseLogConfigFile(QpidBrokerTestCase.java:212)

{noformat}


                
> Java tests logging broken because log4j.configuration is not a valid URL
> ------------------------------------------------------------------------
>
>                 Key: QPID-4281
>                 URL: https://issues.apache.org/jira/browse/QPID-4281
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.18
>            Reporter: Philip Harvey
>            Assignee: Keith Wall
>            Priority: Minor
>             Fix For: 0.19
>
>         Attachments: 
> 0001-QPID-4281-Fix-setting-of-log4j-configuration-in-syst.patch
>
>
> A change was made to the log4j configuration used by our unit tests in 
> QPID-4109, such that the log4j.configuration system property that is 
> effective in our unit tests is "test-profiles/log4j-test.xml" rather than 
> "file:///path/to/log4j-test.xml".
> This breaks our unit test logging configuration because Log4J requires that 
> this system property is a valid URL.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]

Reply via email to