Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
servicemix-eip-2009.02
-
None
-
None
-
AIX V5.3 and Java 6
Description
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:
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)