6 Replies Latest reply on Oct 8, 2018 8:00 AM by nareshkumargunjalli

    JBOSS 7.1.1 Remote EJB Session is closed

    sekobey

      I have swing client which uses remote ejbs. The application starts correctly and it lookups remote ejbs successfully. However, after a few minutes, when an ejb is called, it gives an error like below. When we start the jboss again, we don't get the error and everything works. I couldn't understand the error below:

       

      16.04.2012 08:34:08:  INFO ChannelAssociation [Remoting "client-endpoint" task-2] - Channel Channel ID fa8f69c7 (outbound) of Remoting connection 0196

      f4b5 to null can no longer process messages

      16.04.2012 08:34:08: DEBUG RemotingConnectionEJBReceiver [Remoting "client-endpoint" task-3] - Closing channelChannel ID fa8f69c7 (outbound) of Remoti

      ng connection 0196f4b5 to null

      16.04.2012 08:34:08: DEBUG ChannelAssociation [Remoting "client-endpoint" task-3] - Closing channel Channel ID fa8f69c7 (outbound) of Remoting connect

      ion 0196f4b5 to null

      16.04.2012 08:34:08: DEBUG ChannelAssociation [Remoting "client-endpoint" task-3] - Registering a re-connect handler org.jboss.ejb.client.remoting.EJB

      ClientContextConnectionReconnectHandler@1f2af1c for broken channel Channel ID fa8f69c7 (outbound) of Remoting connection 0196f4b5 to null in EJB clien

      t context org.jboss.ejb.client.EJBClientContext@6ed322

      16.04.2012 09:33:44: ERROR CreatePaketNode [AWT-EventQueue-0] -

      org.beybunproject.uenv.task.UTaskException

              at tr.gov.tubitak.bilgem.uekae.deys.tckk.matbaa.planor.node.CreatePaketNode$OtomatikPaketOlusturAction$1.run(CreatePaketNode.java:58)

              at org.beybunproject.uenv.task.UTaskDialog$1.run(UTaskDialog.java:162)

              at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.reflect.UndeclaredThrowableException

              at $Proxy1.createAutoPaket(Unknown Source)

              at tr.gov.tubitak.bilgem.uekae.deys.tckk.matbaa.planor.controller.ejb.PlanorEJBDelegate.createAutoPaket(PlanorEJBDelegate.java:94)

              at tr.gov.tubitak.bilgem.uekae.deys.tckk.matbaa.planor.db.daoImpl.DefaultPlanorDAO.createAutoPaket(DefaultPlanorDAO.java:77)

              at tr.gov.tubitak.bilgem.uekae.deys.tckk.matbaa.planor.node.CreatePaketNode$OtomatikPaketOlusturAction$1.run(CreatePaketNode.java:54)

              ... 2 more

      Caused by: java.io.IOException: Channel Channel ID fa8f69c7 (outbound) of Remoting connection 0196f4b5 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)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

              ... 1 more

        • 1. Re: JBOSS 7.1.1 Remote EJB Session is closed
          sekobey

          One thing i forgot, i use standalone.xml that comes with default jboss 7.1.1 distribution. I think the error at the post is related with messaging. However, there is no jms messaging configuration in standalone.xml.

          • 2. Re: JBOSS 7.1.1 Remote EJB Session is closed
            jaikiran

            When we start the jboss again, we don't get the error and everything works. I couldn't understand the error below:

            So does that mean the server goes down for a period of time and that's when you see these messages? That would make sense.

            • 3. Re: JBOSS 7.1.1 Remote EJB Session is closed
              sekobey

              So does that mean the server goes down for a period of time and that's when you see these messages? That would make sense.

              Sorry, i don't mean that. JBOSS is alive. Some time later somehow client couldn't call ejb metods from alive JBOSS. The exception was thrown in client log. After we restart the jboss, everything works.

              • 4. Re: JBOSS 7.1.1 Remote EJB Session is closed
                michalmr

                Did you ever resolve this issue?

                • 5. Re: JBOSS 7.1.1 Remote EJB Session is closed
                  aleques

                  Just to help others...

                   

                  See

                  Scoped EJB client contexts - WildFly 8 - Project Documentation Editor

                  Somehow you need to close the opened context (generally ejb root context).

                  Be careful with CDI and pre-destroy.

                   

                  If you don't want to close it, try this:

                  http://stackoverflow.com/questions/24630414/problems-accessing-ejb-in-jboss-as-7-x-from-tomcat-6

                  • 6. Re: JBOSS 7.1.1 Remote EJB Session is closed
                    nareshkumargunjalli

                    I had seen such exceptions in my application when java had crashed.

                    Check /var/log/messages if java had crashed... Java in my application had crashed because of "Out of memory" issues.

                     

                    2018-09-10 00:16:16,278 ERROR [pool-2-thread-55] c.o.u.s.SessionCache (SessionCache.java:236) - failed to invoke jndiName: ejb:mega-app/acqServer//AcquisitionServerSessionBean!com.netapp.acquisition.aquisitionserverside.interfaces.remote.AcquisitionServerSession java.io.IOException: Channel Channel ID b8337d0e (outbound) of Remoting connection 30757f90 to localhost/127.0.0.1:80 has been closed

                    at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:123) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.ejb.client.remoting.ChannelAssociation$1.handleClose(ChannelAssociation.java:115) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.spi.SpiUtils.safeHandleClose(SpiUtils.java:54) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.spi.AbstractHandleableCloseable$CloseHandlerTask.run(AbstractHandleableCloseable.java:501) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.spi.AbstractHandleableCloseable.runCloseTask(AbstractHandleableCloseable.java:406) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeComplete(AbstractHandleableCloseable.java:277) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.remote.RemoteConnectionChannel.closeAction(RemoteConnectionChannel.java:543) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.spi.AbstractHandleableCloseable.closeAsync(AbstractHandleableCloseable.java:359) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.remote.RemoteConnectionHandler.closeAllChannels(RemoteConnectionHandler.java:423) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.remote.RemoteConnectionHandler.handleConnectionClose(RemoteConnectionHandler.java:114) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.remoting3.remote.RemoteReadListener$1$1.run(RemoteReadListener.java:56) ~[jboss-client.jar:8.2.0.Final]

                    ... 3 more

                    Wrapped by: javax.ejb.EJBException: java.io.IOException: Channel Channel ID b8337d0e (outbound) of Remoting connection 30757f90 to localhost/127.0.0.1:80 has been closed

                    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:236) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181) ~[jboss-client.jar:8.2.0.Final]

                    at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144) ~[jboss-client.jar:8.2.0.Final]

                     

                    At the same time, java had crashed as seen in /var/log/messages,

                    Sep 10 00:16:15 dc2-scratch-ocum-01 kernel: [173427.465946] Out of memory: Kill process 7965 (java) score 239 or sacrifice child

                    Sep 10 00:16:15 dc2-scratch-ocum-01 kernel: [173427.465990] Killed process 7965 (java) total-vm:12704260kB, anon-rss:3730368kB, file-rss:0kB, shmem-rss:0kB

                     

                    Hope this helps...

                    Naresh