[JBoss AS 7 Development] - Remote EJB stale connection? InvocationTargetException: Remoting connection channel has been closed
by Branden Smith
Branden Smith [https://community.jboss.org/people/sumitsu] created the discussion
"Remote EJB stale connection? InvocationTargetException: Remoting connection channel has been closed"
To view the discussion, visit: https://community.jboss.org/message/740042#740042
--------------------------------------------------------------
I'm encountering the following client-side exception when I try to invoke an AS7-deployed EJB 3 SLSB after a period of idle time:
java.lang.reflect.*InvocationTargetException*
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at +{client application}+
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
*Caused by: java.lang.reflect.UndeclaredThrowableException*
at $Proxy4.doTask(Unknown Source)
at +{client application}+
... 23 more
Caused by: *java.io.IOException: Channel Channel ID abc6099f (outbound) of Remoting connection 00cb31d8 to null has been closed*
at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:110)
at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:102)
at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54)
at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:277)
at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:517)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:382)
at org.jboss.remoting3.remote.RemoteConnectionHandler.handleConnectionClose(RemoteConnectionHandler.java:103)
at org.jboss.remoting3.remote.RemoteReadListener$1$1.run(RemoteReadListener.java:55)
... 3 more
The client does not appear to automatically retry. Here is my current *jboss-ejb-client.properties* file:
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=+{HOST}+
remote.connection.default.port=19000
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
remote.connection.default.username=+{username}+
remote.connection.default.password=+{password}+
I don't recall having seen a similar "stale connection" effect when remotely invoking EJBs under previous version of JBoss.
* Have I incorrectly configured something, either for remoting on the server side, or on the client side?
* Is there anything I should do to make the AS7 EJB client handle this Exception internally, or do I just need to write client code to catch the InvocationTargetException and retry from there?
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740042#740042]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss Web Services Development] - 3.4.0 from source tests fail
by spyhunter99
spyhunter99 [https://community.jboss.org/people/spyhunter99] created the discussion
"3.4.0 from source tests fail"
To view the discussion, visit: https://community.jboss.org/message/740040#740040
--------------------------------------------------------------
after doing a clean check out of native 3.4.0 tag and running the tests, i get the following output.
maven 2.2.1 apache ant 1.8.1
Failed tests:
testExplicitSecureService1(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testExplicitSecureService2(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testExplicitSecurePort1(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testImplicitSecureService1(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testImplicitSecureService2(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testImplicitSecurePort1(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testOneWay(org.jboss.test.ws.jaxws.samples.dar.AddressingClientTestCase)
testAuth(org.jboss.test.ws.jaxws.jbws1991.UsernameAuthTestCase)
Tests in error:
testUnchecked(org.jboss.test.ws.jaxws.jbws1999.JBWS1999TestCase)
testFriendRequired(org.jboss.test.ws.jaxws.jbws1999.JBWS1999TestCase)
testRoleSecuredServiceAccess(org.jboss.test.ws.jaxrpc.samples.secureejb.SecureEJBTestCase)
testBasicSecuredServiceAccess(org.jboss.test.ws.jaxrpc.samples.secureejb.SecureEJBTestCase)
testDynamicProxy(org.jboss.test.ws.jaxws.webserviceref.StubPropertyTestCase)
testUsernameToken(org.jboss.test.ws.jaxws.samples.wssecurity.SimpleUsernameTestCase)
testEchoString(org.jboss.test.ws.jaxrpc.wsse.UsernameTestCase)
testEchoSimpleUserType(org.jboss.test.ws.jaxrpc.wsse.UsernameTestCase)
testRoleSecuredServiceAccess(org.jboss.test.ws.jaxrpc.jbws723.JBWS723TestCase)
testBasicSecuredServiceAccess(org.jboss.test.ws.jaxrpc.jbws723.JBWS723TestCase)
testSync(org.jboss.test.ws.jaxws.samples.dar.AddressingClientTestCase)
testAsync(org.jboss.test.ws.jaxws.samples.dar.AddressingClientTestCase)
testUsernameToken(org.jboss.test.ws.jaxws.samples.wssecurity.SimpleDispatchTestCase)
testSync(org.jboss.test.ws.jaxws.samples.dar.ClientTestCase)
testAsync(org.jboss.test.ws.jaxws.samples.dar.ClientTestCase)
Tests run: 1458, Failures: 8, Errors: 15, Skipped: 0
am I doing something wrong or is this normal?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740040#740040]
Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months