Build fails on AIX - activemq.port1 environment variable not available in tests
-------------------------------------------------------------------------------

                 Key: SMXCOMP-694
                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-694
             Project: ServiceMix Components
          Issue Type: Bug
    Affects Versions: servicemix-eip-2009.02
         Environment: AIX V5.3 and Java 6
            Reporter: Gert Vanthienen
            Assignee: Gert Vanthienen
             Fix For: servicemix-eip-2010.01


On AIX, the servicemix-eip unit tests fail because the environment variable set 
by the maven-surefire-plugin isn't available in the forked unit test project:

{noformat}
java.lang.IllegalArgumentException: Port value out of range: -1
at java.net.ServerSocket.<init>(ServerSocket.java:192)
at 
javax.net.DefaultServerSocketFactory.createServerSocket(ServerSocketFactory.java:4)
at 
org.apache.activemq.transport.tcp.TcpTransportServer.bind(TcpTransportServer.java:135)
at 
org.apache.activemq.transport.tcp.TcpTransportFactory.doBind(TcpTransportFactory.java:60)
at 
org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
at 
org.apache.activemq.broker.BrokerService.createTransportConnector(BrokerService.java:1805)
at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:218)
at org.apache.activemq.broker.BrokerService.addConnector(BrokerService.java:208)
at 
org.apache.servicemix.eip.AbstractEIPTransactionalTest.setUp(AbstractEIPTransactionalTest.java:51)
at org.apache.servicemix.eip.ResequencerTxTest.setUp(ResequencerTxTest.java:41)
at junit.framework.TestCase.runBare(TestCase.java:132)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:165)
at org.apache.maven.surefire.Surefire.run(Surefire.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:289)
at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1005)
{noformat}

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

Reply via email to