Uploaded image for project: 'EJB Client Library (AS7+)'
  1. EJB Client Library (AS7+)
  2. EJBCLIENT-84

If a scoped-context is created and closed with a high frequence there is a "Too many open channels" Exception

    Details

      Description

      If the InitialContext is created, used and closed in a high frequence (couple of calls per second).

      The following Exception is thrown:
      Jun 26, 2013 5:45:48 PM org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver$1 handleFailed
      ERROR: Failed to open channel for context EJBReceiverContext

      {clientContext=org.jboss.ejb.client.EJBClientContext@50c94ac, receiver=Remoting connection EJB receiver [connection=org.jboss.ejb.client.remoting.ConnectionPool$PooledConnection@4e2fdf53,channel=jboss.ejb,nodename=node1]}

      org.jboss.remoting3.ProtocolException: Too many channels open
      at org.jboss.remoting3.remote.RemoteConnectionHandler.handleOutboundChannelOpen(RemoteConnectionHandler.java:177)
      at org.jboss.remoting3.remote.RemoteConnectionHandler.open(RemoteConnectionHandler.java:307)
      at org.jboss.remoting3.ConnectionImpl.openChannel(ConnectionImpl.java:75)
      at org.jboss.ejb.client.remoting.ConnectionPool$PooledConnection.openChannel(ConnectionPool.java:221)
      at org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver.associate(RemotingConnectionEJBReceiver.java:136)
      at org.jboss.ejb.client.EJBClientContext.registerEJBReceiver(EJBClientContext.java:375)
      at org.jboss.ejb.client.EJBClientContext.registerEJBReceiver(EJBClientContext.java:327)
      at org.jboss.ejb.client.remoting.EJBClientContextConnectionReconnectHandler.reconnect(EJBClientContextConnectionReconnectHandler.java:66)
      at org.jboss.ejb.client.EJBClientContext$ReconnectAttempt.run(EJBClientContext.java:1285)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:724)

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  bmaxwell Brad Maxwell
                  Reporter:
                  wdfink Wolf-Dieter Fink
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: