• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ERROR [org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler]

 
Frank VanOor
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've an EJB3 application deployed on Jboss 7.
As a test I wrote a client which calls a simple method on the remote bean. This method just returns an int value. The method is called x times in a loop. After about 30 times, JBoss closes the connection and the following message is displayed on the console

14:07:07,811 INFO [org.jboss.as.naming] (Remoting "alien2" task-1) JBAS011806: Channel end notification received, closing channel Channel ID 2ec193c9 (inbound) of Remoting connection 22c732c3 to null


On the client side, a Remote exception is received:

19 Nov 2013 14:07:07 INFO ChannelAssociation - Channel Channel ID f20f7f4a (outbound) of Remoting connection 46a3790d to localhost/127.0.0.1:4447 can no longer process messages
Exception in thread "main" 19 Nov 2013 14:07:07 ERROR RemoteNamingStoreV1 - Channel end notification received, closing channel Channel ID aec193c9 (outbound) of Remoting connection 46a3790d to localhost/127.0.0.1:4447
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy0.testRemoteConnection(Unknown Source)
at com.ecospeedtext.MainTest_1.main(MainTest_1.java:21)
Caused by: java.io.IOException: Channel Channel ID f20f7f4a (outbound) of Remoting connection 46a3790d to localhost/127.0.0.1:4447 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.sendCloseRequest(RemoteConnectionHandler.java:224)
at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAction(RemoteConnectionHandler.java:368)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
at org.jboss.remoting3.ConnectionImpl.closeAction(ConnectionImpl.java:52)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
at org.jboss.remoting3.EndpointImpl.closeAction(EndpointImpl.java:201)
at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359)
at org.jboss.naming.remote.client.EndpointCache.release(EndpointCache.java:58)
at org.jboss.naming.remote.client.EndpointCache$EndpointWrapper.closeAsync(EndpointCache.java:189)
at org.jboss.naming.remote.client.InitialContextFactory$1.close(InitialContextFactory.java:198)
at org.jboss.naming.remote.client.RemoteContext.finalize(RemoteContext.java:199)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
at java.lang.ref.Finalizer.access$100(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)


The Client Java code:



The remote method :



Many thanks in advance.

Frank
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic