Tom Cunningham created JBESB-3754:
-------------------------------------
Summary: Scout 1.2.6 causes JBRIntegratedUnitTest to fail
Key: JBESB-3754
URL:
https://issues.jboss.org/browse/JBESB-3754
Project: JBoss ESB
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Testing
Affects Versions: 4.11
Reporter: Tom Cunningham
Assignee: Tom Cunningham
Fix For: 4.11
Upgrading ESB from scout 1.2.5 -> 1.2.6 causes the second test of JBRIntegratedUnitTest
(test_JBESB_1428_02) to fail. The first testcase in this test passes, but once the hsql
database for the first test completes, it seems like hsql has a lot of problems creating a
database for the second test and running any queries. With no changes, hsql's
DatabaseManager thinks the Database state is DATABASE_ONLINE rather than
DATABASE_SHUTDOWN, and no hsqldb.properties or hsqldb.log files are created in
product/build.
Below is a stack - the HttpClientInvoker call is failing because the services for this
example aren't properly registered - hsql cannot create the juddi database, and hsql
is throwing SQLExceptions within hibernate with a "java.sql.SQLException: Connection
is broken: java.io.EOFException".
[java] -esb.services.internal.integration.test.junit:
[java] [junit] Listening for transport dt_socket at address: 8787
[java] [junit] Running org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest
[java] [junit] Testsuite:
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest
[java] [junit] Listening for transport dt_socket at address: 8787
[java] [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 18.054 sec
[java] [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 18.054 sec
[java] [junit] ------------- Standard Output ---------------
[java] [junit] EMMA: collecting runtime coverage data ...
[java] [junit] ------------- ---------------- ---------------
[java] [junit] ------------- Standard Error -----------------
[java] [junit] java.lang.NullPointerException
[java] [junit] at org.hsqldb.ServerConnection.close(ServerConnection.java:170)
[java] [junit] at org.hsqldb.ServerConnection.run(ServerConnection.java:273)
[java] [junit] at java.lang.Thread.run(Thread.java:662)
[java] [junit] java.lang.NullPointerException
[java] [junit] at org.hsqldb.ServerConnection.close(ServerConnection.java:170)
[java] [junit] at org.hsqldb.ServerConnection.run(ServerConnection.java:273)
[java] [junit] at java.lang.Thread.run(Thread.java:662)
[java] [junit] org.jboss.remoting.CannotConnectException: Can not connect http
client invoker. Connection refused.
[java] [junit] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:348)
[java] [junit] at
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:137)
[java] [junit] at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
[java] [junit] at org.jboss.remoting.Client.invoke(Client.java:1634)
[java] [junit] at org.jboss.remoting.Client.invoke(Client.java:548)
[java] [junit] at org.jboss.remoting.Client.invoke(Client.java:536)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.sendMessageToServer(JBRIntegratedUnitTest.java:68)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.access$000(JBRIntegratedUnitTest.java:31)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest$2.test(JBRIntegratedUnitTest.java:53)
[java] [junit] at
org.jboss.soa.esb.testutils.AbstractTestRunner.run(AbstractTestRunner.java:84)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.test_JBESB_1428_02(JBRIntegratedUnitTest.java:51)
[java] [junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] [junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] [junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] [junit] at java.lang.reflect.Method.invoke(Method.java:597)
[java] [junit] at junit.framework.TestCase.runTest(TestCase.java:164)
[java] [junit] at junit.framework.TestCase.runBare(TestCase.java:130)
[java] [junit] at junit.framework.TestResult$1.protect(TestResult.java:106)
[java] [junit] at junit.framework.TestResult.runProtected(TestResult.java:124)
[java] [junit] at junit.framework.TestResult.run(TestResult.java:109)
[java] [junit] at junit.framework.TestCase.run(TestCase.java:120)
[java] [junit] at junit.framework.TestSuite.runTest(TestSuite.java:230)
[java] [junit] at junit.framework.TestSuite.run(TestSuite.java:225)
[java] [junit] at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35)
[java] [junit] at
junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:32)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:422)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:931)
[java] [junit] at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:785)
[java] [junit] Caused by: java.net.ConnectException: Connection refused
[java] [junit] at java.net.PlainSocketImpl.socketConnect(Native Method)
[java] [junit] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
[java] [junit] at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
[java] [junit] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
[java] [junit] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
[java] [junit] at java.net.Socket.connect(Socket.java:529)
[java] [junit] at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
[java] [junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
[java] [junit] at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
[java] [junit] at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
[java] [junit] at sun.net.www.http.HttpClient.New(HttpClient.java:307)
[java] [junit] at sun.net.www.http.HttpClient.New(HttpClient.java:324)
[java] [junit] at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
[java] [junit] at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
[java] [junit] at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
[java] [junit] at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
[java] [junit] at
org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:277)
[java] [junit] ... 27 more
[java] [junit] java.lang.NullPointerException
[java] [junit] at org.hsqldb.ServerConnection.close(ServerConnection.java:170)
[java] [junit] at org.hsqldb.ServerConnection.run(ServerConnection.java:273)
[java] [junit] at java.lang.Thread.run(Thread.java:662)
[java] [junit] ------------- ---------------- ---------------
[java] [junit]
[java] [junit] Testcase: test_JBESB_1428_01 took 14.685 sec
[java] [junit] Testcase: test_JBESB_1428_02 took 3.022 sec
[java] [junit] FAILED
[java] [junit] Error making JBR Client invocation.
[java] [junit] junit.framework.AssertionFailedError: Error making JBR Client
invocation.
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.sendMessageToServer(JBRIntegratedUnitTest.java:71)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.access$000(JBRIntegratedUnitTest.java:31)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest$2.test(JBRIntegratedUnitTest.java:53)
[java] [junit] at
org.jboss.soa.esb.testutils.AbstractTestRunner.run(AbstractTestRunner.java:84)
[java] [junit] at
org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest.test_JBESB_1428_02(JBRIntegratedUnitTest.java:51)
[java] [junit]
[java]
[java] BUILD FAILED
[java] /home/tcunning/src/jbossesb/trunkthree/product/build.xml:217: The following
error occurred while executing this line:
[java] /home/tcunning/src/jbossesb/trunkthree/product/rosetta/build.xml:226: The
following error occurred while executing this line:
[java] /home/tcunning/src/jbossesb/trunkthree/product/rosetta/tests/build.xml:242:
The following error occurred while executing this line:
[java] /home/tcunning/src/jbossesb/trunkthree/product/rosetta/tests/build.xml:281:
The following error occurred while executing this line:
[java] /home/tcunning/src/jbossesb/trunkthree/product/rosetta/tests/build.xml:294:
Test org.jboss.soa.esb.listeners.gateway.JBRIntegratedUnitTest failed
[java]
[java] Total time: 1 minute 6 seconds
[java] Java Result: 1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira