1 Reply Latest reply on May 11, 2013 4:02 AM by jaikiran pai

    Remoting connection can no longer process messages (because it is closed)

    Dmitry Shultz Novice

      Hi All,

       

      I have a web app that is running on 'client' WildFly invoking remote methods of several EJB's deployed as part of EAR's on 'server' WildFly - works fine, but it looks like the client having some problems reconnecting to the server after server became unreacheable for short period of time. The server became unreacheable because of network problems i.e. it is not being shutdown or restarted, not sure if it will make any diufference (need to test it).

       

      Is there any config can be done to make 'client' to drop the closed connection and create a new one?

       

      Here is the exception from the client log:

       

       

      05:50:37,926 INFO  [org.jboss.ejb.client.remoting] (Remoting "ip-1X-16X-17X-XX" task-4) EJBCLIENT000016: Channel Channel ID c56b4bd4 (outbound) of Remoting connection 01128b78 to 17X.1.1XX.XX/1XX.1.1XX.XX:4447 can no longer process messages

      05:50:37,928 ERROR [com.diligesoft.soa.model.ui.web.EJBServiceProxy] (http-/0.0.0.0:8080-4) error during request processing on server: java.lang.reflect.InvocationTargetException

              at sun.reflect.GeneratedMethodAccessor295.invoke(Unknown Source) [:1.7.0_21]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]

              at com.diligesoft.soa.model.ui.web.EJBServiceProxy.invoke(EJBServiceProxy.java:37) [model-web-ui-1.0.jar:]

              at com.sun.proxy.$Proxy111.process(Unknown Source)

              at com.diligesoft.soa.model.ui.web.DiligesoftCoreClientProcessor.process(DiligesoftCoreClientProcessor.java:36) [model-web-ui-1.0.jar:]

              at com.diligesoft.shultzproject.beans.UserSession.getSpectator(UserSession.java:182) [classes:]

              at sun.reflect.GeneratedMethodAccessor95.invoke(Unknown Source) [:1.7.0_21]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_21]

              at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_21]

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ProducerMethod$ProducerMethodProducer.produce(ProducerMethod.java:136) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:319) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:608) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:674) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:763) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:772) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:161) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:157) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:131) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:153) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:293) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:608) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.AbstractReceiverBean.getReceiver(AbstractReceiverBean.java:77) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:317) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:104) [weld-core-1.1.10.Final.jar:2012-10-12 10:00]

              at org.jboss.weld.proxies.Collection$Iterable$List$1609877427$Proxy$_$$_WeldClientProxy.size(Collection$Iterable$List$1609877427$Proxy$_$$_WeldClientProxy.java) [weld-core-1.1.10.Final.jar:]

              at javax.faces.model.ListDataModel.isRowAvailable(ListDataModel.java:109) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.model.ListDataModel.setRowIndex(ListDataModel.java:184) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.model.ListDataModel.setWrappedData(ListDataModel.java:219) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.model.ListDataModel.<init>(ListDataModel.java:78) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at org.richfaces.component.UISequence.createFacesModel(UISequence.java:89) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at org.richfaces.component.UISequence.createExtendedDataModel(UISequence.java:114) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at org.richfaces.component.UIDataAdaptor.getExtendedDataModel(UIDataAdaptor.java:459) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at org.richfaces.component.UIDataAdaptor.walk(UIDataAdaptor.java:809) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at org.richfaces.renderkit.html.RepeatRenderer.encodeChildren(RepeatRenderer.java:70) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:276) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:57) [richfaces-components-ui-4.3.1.Final.jar:4.3.1.Final]

              at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439) [jsf-impl-2.1.18-jbossorg-1.jar:]

              at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124) [jsf-impl-2.1.18-jbossorg-1.jar:]

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:286) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120) [jsf-impl-2.1.18-jbossorg-1.jar:]

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.18-jbossorg-1.jar:]

              at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139) [jsf-impl-2.1.18-jbossorg-1.jar:]

              at org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:97) [deltaspike-jsf-module-impl-0.4-incubating-20130509.090748-90.jar:0.4-incubating-SNAPSHOT]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594) [jboss-jsf-api_2.1_spec-2.1.18.Final.jar:2.1.18.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169) [jboss-as-web-7.2.0.Alpha1-redhat-4.jar:7.2.0.Alpha1-redhat-4]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:145) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97) [jbossweb-7.2.0.Final.jar:7.2.0.Final]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102) [jbossweb-7.2.0.Fin

       

      Caused by: javax.ejb.EJBException: java.io.IOException: Channel Channel ID c56b4bd4 (outbound) of Remoting connection 01128b78 to 174.1.198.62/174.1.198.62:4447 has been closed

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:216) [jboss-ejb-client-1.0.16.Final.jar:1.0.16.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:161) [jboss-ejb-client-1.0.16.Final.jar:1.0.16.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:124) [jboss-ejb-client-1.0.16.Final.jar:1.0.16.Final]

              at com.sun.proxy.$Proxy111.process(Unknown Source)

              ... 83 more

      Caused by: java.io.IOException: Channel Channel ID c56b4bd4 (outbound) of Remoting connection 01128b78 to 17X.1.1XX.XX/1XX.1.1XX.XX:4447 has been closed

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

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

              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:515)

              at org.jboss.remoting3.spi.AbstractHandleableCloseable.close(AbstractHandleableCloseable.java:153)

              at org.jboss.ejb.client.remoting.ChannelAssociation$ResponseReceiver.handleEnd(ChannelAssociation.java:397) [jboss-ejb-client-1.0.16.Final.jar:1.0.16.Final]

              at org.jboss.remoting3.remote.RemoteConnectionChannel$2.run(RemoteConnectionChannel.java:277)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_21]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]

              ... 1 more

       

      06:45:08,508 INFO  [org.jboss.ejb.client.remoting] (Remoting "ip-10-160-178-13" task-1) EJBCLIENT000016: Channel Channel ID ce3d9be3 (outbound) of Remoting connection 004d8966 to 17X.1.1XX.XX/1XX.1.1XX.XX:4447 can no longer process messages