[JBoss JIRA] (JBESB-3754) Scout 1.2.6 causes JBRIntegratedUnitTest to fail
by Tom Cunningham (JIRA)
[ https://issues.jboss.org/browse/JBESB-3754?page=com.atlassian.jira.plugin... ]
Tom Cunningham closed JBESB-3754.
---------------------------------
> 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.13
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBESB-3754) Scout 1.2.6 causes JBRIntegratedUnitTest to fail
by Tom Cunningham (JIRA)
[ https://issues.jboss.org/browse/JBESB-3754?page=com.atlassian.jira.plugin... ]
Tom Cunningham updated JBESB-3754:
----------------------------------
Fix Version/s: 4.13
(was: 4.12)
> 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.13
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 10 months
[JBoss JIRA] (JBESB-3858) Uncommenting GenericPipelineInterceptors in jbossesb-properties.xml causes NullPointerException at startup
by Tom Cunningham (JIRA)
[ https://issues.jboss.org/browse/JBESB-3858?page=com.atlassian.jira.plugin... ]
Tom Cunningham closed JBESB-3858.
---------------------------------
> Uncommenting GenericPipelineInterceptors in jbossesb-properties.xml causes NullPointerException at startup
> ----------------------------------------------------------------------------------------------------------
>
> Key: JBESB-3858
> URL: https://issues.jboss.org/browse/JBESB-3858
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Rosetta
> Affects Versions: 4.11
> Reporter: Tadayoshi Sato
> Assignee: Tadayoshi Sato
> Fix For: 4.12
>
>
> When the following "interceptors" properties in jbossesb-properties.xml are uncommented, the JBoss ESB throws java.lang.NullPointerException and fails to start up.
> {code:xml}
> <properties name="interceptors">
> <property name="org.jboss.soa.esb.pipeline.failure.interceptors" value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
> <property name="org.jboss.soa.esb.pipeline.instantiate.interceptors" value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
> <property name="org.jboss.soa.esb.pipeline.start.interceptors" value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
> <property name="org.jboss.soa.esb.pipeline.end.interceptors" value="org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor"/>
> </properties>
> {code}
> The error stacktrace is as follows:
> {code}
> 2012-10-15 14:50:42,708 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.esb.vfsfile:/opt/jboss-soa-p-5.3.0/jboss-as/server/default/deploy/jbossesb.esb/ state=Create
> java.lang.RuntimeException: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected exception while instantiating managed instance
> at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:185)
> at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(EsbDeployment.java:231)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
> at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
> at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
> at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
> at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
> at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
> at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
> at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
> at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
> at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
> at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
> at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
> at org.jboss.system.ServiceController.start(ServiceController.java:460)
> at org.jboss.system.deployers.ServiceDeployer.start(ServiceDeployer.java:163)
> at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:99)
> at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
> at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
> at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
> at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
> at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
> at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
> at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
> at org.jboss.Main.boot(Main.java:223)
> at org.jboss.Main$1.run(Main.java:574)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException: Unexpected exception while instantiating managed instance
> at org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(LifecycleUtil.java:166)
> at org.jboss.soa.esb.listeners.LifecycleUtil.getListeners(LifecycleUtil.java:76)
> at org.jboss.soa.esb.listeners.config.Configuration.create(Configuration.java:124)
> ... 63 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
> at org.jboss.soa.esb.listeners.LifecycleUtil.getManagedInstances(LifecycleUtil.java:162)
> ... 65 more
> Caused by: java.lang.NullPointerException
> at org.jboss.soa.esb.listeners.message.GenericPipelineInterceptor.processMessage(GenericPipelineInterceptor.java:33)
> at org.jboss.soa.esb.listeners.message.InterceptorManager.interceptInstantiate(InterceptorManager.java:126)
> at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.<init>(ActionProcessingPipeline.java:381)
> at org.jboss.soa.esb.listeners.ScheduleListener.<init>(ScheduleListener.java:90)
> ... 70 more
> 2012-10-15 14:50:42,710 INFO [org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment] (main) Destroying 'jbossesb.esb'
> {code}
--
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
12 years, 10 months
[JBoss JIRA] (JBESB-3898) EBWS on CXF fails to handle WS-Security header with soap:mustUnderstand="1"
by Tom Cunningham (JIRA)
[ https://issues.jboss.org/browse/JBESB-3898?page=com.atlassian.jira.plugin... ]
Tom Cunningham closed JBESB-3898.
---------------------------------
> EBWS on CXF fails to handle WS-Security header with soap:mustUnderstand="1"
> ---------------------------------------------------------------------------
>
> Key: JBESB-3898
> URL: https://issues.jboss.org/browse/JBESB-3898
> Project: JBoss ESB
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web Services
> Affects Versions: 4.11
> Environment: SOA-P installed with JBoss WS CXF stack
> Reporter: Tadayoshi Sato
> Assignee: Magesh Bojan
> Fix For: 4.12
>
>
> On JBoss WS CXF, EBWS (ESB-based web service) throws SOAP Faults when handling SOAP requests with the WS-Security UsernameToken header which is declared with {{soap:mustUnderstand="1"}}, even though {{<security moduleName="..."/>}} (I believe this enables WS-Security for EBWS) is set up for the EBWS in {{jboss-esb.xml}}.
> Note that I confirmed JBoss WS CXF itself can handle WS-Security with {{soap:mustUnderstand="1"}} if {{jbossws-cxf.xml}} is properly set up. So, I suspect the problem would be in EBWS.
> I used the following SOAP request:
> {code}
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:say="http://www.jboss.org/sayHi" xmlns:cust="http://www.jboss.org/custom-request" xmlns:sub="http://www.jboss.org/custom-subtype" xmlns:t="http://www.jboss.org/type2">
> <soap:Header>
> <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd">
> <wsse:UsernameToken>
> <wsse:Username>kermit</wsse:Username>
> <wsse:Password>thefrog</wsse:Password>
> </wsse:UsernameToken>
> </wsse:Security>
> </soap:Header>
> <soap:Body>
> ...
> </soap:Body>
> </soap:Envelope>
> {code}
> And got the following SOAP Fault:
> {code}
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Header>
> <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd"/>
> </soap:Header>
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:MustUnderstand</faultcode>
> <faultstring>MustUnderstand headers: [{http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd}Security] are not understood.</faultstring>
> </soap:Fault>
> </soap:Body>
> </soap:Envelope>
> {code}
> I also got the following error stacktrace:
> {code}
> 17:04:09,572 WARNING [PhaseInterceptorChain] Interceptor for {http://soa.jboss.org/ESBServiceSample}HelloWorldPubServiceService#{http://soa.jboss.org/ESBServiceSample}HelloWorldPubServiceOp has thrown exception, unwinding now
> org.apache.cxf.binding.soap.SoapFault: MustUnderstand headers: [{http://docs.oasis-open.org/wss/oasis-wss-wssecurity-secext-1.1.xsd}Security] are not understood.
> at org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor$UltimateReceiverMustUnderstandInterceptor.handleMessage(MustUnderstandInterceptor.java:225)
> at org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor$UltimateReceiverMustUnderstandInterceptor.handleMessage(MustUnderstandInterceptor.java:199)
> at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
> at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:111)
> at org.apache.cxf.transport.servlet.ServletDestination.invoke(ServletDestination.java:99)
> at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:431)
> at org.jboss.wsf.stack.cxf.ServletControllerExt.invoke(ServletControllerExt.java:173)
> at org.jboss.wsf.stack.cxf.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:61)
> at org.jboss.wsf.stack.cxf.CXFServletExt.invoke(CXFServletExt.java:185)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)
> at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
> at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
> at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
> at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.internalProcess(ActiveRequestResponseCacheValve.java:74)
> at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
> {code}
--
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
12 years, 10 months
[JBoss JIRA] (JBESB-1574) Add freemarker support to soapui-client smook transoformation
by Tadayoshi Sato (JIRA)
[ https://issues.jboss.org/browse/JBESB-1574?page=com.atlassian.jira.plugin... ]
Tadayoshi Sato updated JBESB-1574:
----------------------------------
Affects Version/s: 4.11
> Add freemarker support to soapui-client smook transoformation
> -------------------------------------------------------------
>
> Key: JBESB-1574
> URL: https://issues.jboss.org/browse/JBESB-1574
> Project: JBoss ESB
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Transformation Service, Web Services
> Affects Versions: 4.11
> Reporter: Stefano Maestri
> Assignee: Stefano Maestri
> Fix For: 4.3
>
> Attachments: JBESB-1574.patch, JBESB-1574.patch, JBESB-1574.patch, SoapUIClientService.java
>
>
> Tom fennely says:
> <tfennelly> I just had a quick look at that soapclient stuff and it doesn't support dynamic values going into the transforms, but it wouldn't be difficult to add it
> <maeste> ok, perfect, I can take a look if is fine for you. Any hints?
> <tfennelly> sure
> <maeste> I'm going to open a Jira issue
> <tfennelly> so look at the SoapUIClientService class in the soapui-client service
> <tfennelly> sure
> <tfennelly> it receives a parameter map that contains the params to be mapped into the SOAP request template
> <tfennelly> you could also use this map to carry the params that are to be used in the transformation
> <tfennelly> e.g. a value to be inserted as a header
> <maeste> ok I see
> <tfennelly> just push this map into the applySmooksTransform and set it into the BeanAccessor context
> <tfennelly> Ithis will make this map available to e.g. freemarker templates
> <tfennelly> then you just write a freemarker template that uses the dynamic value...
> <tfennelly> smooks will add the result of the templating op to the SOAP header
--
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
12 years, 10 months