0 Replies Latest reply on Jun 1, 2011 6:09 AM by Urs Rothenhäusler

    Client timeout JBoss AS 6

    Urs Rothenhäusler Newbie

      Hello,

       

      my client program is getting a timeout when invoking a method (with a long lasting process) of a Stafeful Session Bean (SFSB) /EJB3.1. The client program is a just a simple java program "starting" the SFSB-process on a JBoss AS6, lasting about 40 minutes. What's a good solution to avoid this exception?

       

      java.lang.reflect.UndeclaredThrowableException

            at $Proxy8.doCheck(Unknown Source)

            at org.client.aa.EDIControlProcessor.doCheck(EdiProcess.java:124)

            at org.client.aa.EDIControlProcessor.processSingle(EDIControlProcessor.java:28)

            at org.client.aa.EDIControlClient.main(EDIControlClient.java:12)

      Caused by: org.jboss.remoting.InvocationFailureException: Socket timed out. Waited 300000 milliseconds for response while calling on InvokerLocator [socket://127.0.0.1:3873/?timeout=300000]; nested exception is:

            java.net.SocketTimeoutException: Read timed out

            at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:137)

            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.handleOtherException(MicroSocketClientInvoker.java:1079)

            at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:941)

            at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)

            at org.jboss.remoting.Client.invoke(Client.java:1961)

            at org.jboss.remoting.Client.invoke(Client.java:804)

            at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

            at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)

            at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

            at org.jboss.ejb3.security.client.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)

      ...

       

      Thanks for an answer