2 Replies Latest reply on Jul 21, 2015 9:39 AM by Wolf-Dieter Fink

    Error getting remote controllers

    Bruno Baptista Newbie

      Hello,

      I'm having a problem connecting between 2 different JBoss.

      Both AS are Jboss 6 Final. The first has some portals and they use EJB Remote to access the session beans (EJB3.1) in the second JBoss.

       

      After a wile without any use, the JBoss with the portals stop working because of exceptions like this:

      ______________________

      2012-05-10 12:28:16,139 DEBUG [ClientUserLoginModule] Error getting remote controllers: javax.naming.CommunicationException: Could not obtain connection to any of these urls: core1:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1690)

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1761)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:695)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

      at javax.naming.InitialContext.lookup(InitialContext.java:392)

      ...

      Caused by: java.net.SocketTimeoutException: Receive timed out

              at java.net.PlainDatagramSocketImpl.receive0(Native Method)

              at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:145)

              at java.net.DatagramSocket.receive(DatagramSocket.java:725)

              at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1659)

      ______________________

      ______________________

      2012-05-10 12:34:39,151 ERROR [DefaultExceptionHandler] No EJB found in JNDI, tried the following names: ClientUserProvisioningServiceBean/remote, : javax.naming.NamingException: No EJB found in JNDI, tried the following names: ClientUserProvisioningServiceBean/remote,

              at com.samaxes.stripes.enricher.EJBInjectionEnricher.lookupEJB(EJBInjectionEnricher.java:133) [:1.0.1]

              at com.samaxes.stripes.enricher.EJBInjectionEnricher.bind(EJBInjectionEnricher.java:65) [:1.0.1]

              at com.samaxes.stripes.inject.InjectionEnricher.intercept(InjectionEnricher.java:128) [:1.0.1]

              at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155) [:1.5.6]

              at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:113) [:1.5.6]

              at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155) [:1.5.6]

              at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74) [:1.5.6]

              at net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:104) [:1.5.6]

              at net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:238) [:1.5.6]

              at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:141) [:1.5.6]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

      ...

      ______________________

       

      After restarting only the Jboss with the portals everything starts to work again.

      Anyone knows how I can solve this?

      thanks!