remote ejb long term call fails with error 502 on client side
tm68 Dec 14, 2010 11:01 AMHello,
we have developed an project, where all our services run in JBoss AS 4.2.3GA. Everything runs fine, all clients (JAVA-SWING) connecting the JBoss via http-protocol.
But if one service-method needs longer then approx. five minutes, then an exception is thrown on client side. But the method on server side is still running fine until the regular end.
You can see it below.
Today i tried to set greater time out values, but I could not resolve the problem.
May that is the wrong way?
It would be nice, if somebody could answer to this question.
Thanks in advance
Thomas M.
Exception in thread "Thread-9"
java.lang.reflect.UndeclaredThrowableException
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.remoting.transport.http.WebServerError:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>
502 Proxy Error</title></head><body><h1>Proxy Error</h1><p>
The proxy server received an invalidresponse from an upstream server.<br />
The proxy server could not handle the request <em>/servlet-invoker/ServerInvokerServlet</em>.
<p>Reason:
<strong>Error reading from remote server</strong></p></p></body></html>
at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:451)
at
org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:149)
at
org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:141)
at org.jboss.remoting.Client.invoke(Client.java:1925)
at org.jboss.remoting.Client.invoke(Client.java:786)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
at $Proxy16.berechneSkript(Unknown Source)
at
de.pantarhei.rededit.dialogs.ProgrammWocheSkriptBerechnenDialog$BerechnenAction$1.run(ProgrammWocheSkriptBerechnenDialog.java:167)
at java.lang.Thread.run(Unknown Source)
at
org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at
org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
... 3 more