red Car [
https://community.jboss.org/people/redCar] created the discussion
"WorkerThread exception occured .... InvocationTargetException /
SocketTimeoutException"
To view the discussion, visit:
https://community.jboss.org/message/723980#723980
--------------------------------------------------------------
Hallo,
my App calls only one method in a SFSB.
I can call this method for example 40 times in short time (per mouse click) and after
this, I get a exception inside serverlog.
First the WorkerThread#1 closes a ServerSocketWrapper.
Second a WorkerThread#0 throws a exception occured during first invocation.
My Application is hanging until this exception is comming, after this, the calls are done
successful.
The waiting time can be 60 seconds until the call ist fullfilled.
What's the reason of this error, and what can I do, to avoid this error?
Thank you,
Werner
=== snipp ===
2012-03-15 13:15:47,389 INFO [STDOUT] (WorkerThread#0[192.168.7.3:2346]) ------->
(86)ApplMeldMonitorBean.getCrossReferences ... done.
2012-03-15 13:15:47,389 DEBUG [org.jboss.remoting.transport.socket.ServerThread]
(WorkerThread#0[192.168.7.3:2346]) WorkerThread#0[192.168.7.3:2346] closed socketWrapper:
ServerSocketWrapper[Socket[addr=/192.168.7.3,port=2346,localport=4473].c627f5]
2012-03-15 13:15:49,530 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12)
Periodic recovery - second pass <Do, 15 Mrz 2012 13:15:49>
2012-03-15 13:15:49,530 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (Thread-12)
AtomicActionRecoveryModule: Second pass
2012-03-15 13:15:49,530 DEBUG [com.arjuna.ats.txoj.logging.txojLoggerI18N] (Thread-12)
[com.arjuna.ats.internal.txoj.recovery.TORecoveryModule_6] - TORecoveryModule - second
pass
2012-03-15 13:15:49,530 DEBUG [com.arjuna.ats.jta.logging.loggerI18N] (Thread-12)
[com.arjuna.ats.internal.jta.recovery.info.secondpass] Local XARecoveryModule - second
pass
2012-03-15 13:16:48,043 ERROR [org.jboss.remoting.transport.socket.ServerThread]
(WorkerThread#1[192.168.7.3:2348]) WorkerThread#1[192.168.7.3:2348] exception occurred
during first invocation
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedConstructorAccessor262.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at
org.jboss.remoting.transport.socket.ServerThread.createServerSocketWrapper(ServerThread.java:909)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:491)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:232)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
at
java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
at
org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.<init>(ObjectInputStreamWithClassLoader.java:100)
at
org.jboss.remoting.serialization.impl.java.JavaSerializationManager.createInput(JavaSerializationManager.java:54)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:75)
at
org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.getMarshallingStream(SerializableUnMarshaller.java:58)
at
org.jboss.remoting.transport.socket.ClientSocketWrapper.createInputStream(ClientSocketWrapper.java:179)
at
org.jboss.remoting.transport.socket.ClientSocketWrapper.createStreams(ClientSocketWrapper.java:162)
at
org.jboss.remoting.transport.socket.ClientSocketWrapper.<init>(ClientSocketWrapper.java:66)
at
org.jboss.remoting.transport.socket.ServerSocketWrapper.<init>(ServerSocketWrapper.java:46)
... 6 more
2012-03-15 13:16:48,043 DEBUG [org.jboss.remoting.transport.socket.ServerThread]
(WorkerThread#1[192.168.7.3:2348]) WorkerThread#1[192.168.7.3:2348] closed socketWrapper:
ServerSocketWrapper[null.0]
2012-03-15 13:16:52,340 DEBUG [org.jboss.ejb3.stateful.StatefulContainer]
(WorkerThread#0[192.168.7.3:2435]) Received dynamic invocation for method with hash:
2241879895498260985
2012-03-15 13:16:52,340 DEBUG
[org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor]
(WorkerThread#0[192.168.7.3:2435]) ++++ LongLivedSessionPropagationInterceptor
2012-03-15 13:16:52,340 DEBUG [org.jboss.ejb3.interceptors.aop.InterceptorSequencer]
(WorkerThread#0[192.168.7.3:2435]) aroundInvoke [advisedMethod=public java.util.Map
com.gevas.jeb3.meld.session.bean.ApplMeldMonitorBean.getCrossReferences(long),
unadvisedMethod=public java.util.Map
com.gevas.jeb3.meld.session.bean.ApplMeldMonitorBean.getCrossReferences(long),
metadata=[metaData={DISPATCHER={OID=[type=AS_ISvalue=jboss.j2ee:ear=MeldServer-1.2.1.19.ear,jar=MeldServer-1.2.1.19.ear,name=ApplMeldMonitorBean,service=EJB3]},
REMOTING={SUBSYSTEM=[type=AS_ISvalue=AOP], INVOKER_LOCATOR=[type=AS_ISvalue=InvokerLocator
[socket://APPLIKATION:4473/?]]},
SFSBInvocation={SessionID=[type=AS_ISvalue=5c4o73-xs6k2h-gztrf7s6-1-gztrhdqx-a8]},
security={context=[type=MARSHALLEDvalue=[org.jboss.security.plugins.JBossSecurityContext()CLIENT)]]},
IS_LOCAL={GUID=[type=AS_ISvalue=jboss.j2ee:ear=MeldServer-1.2.1.19.ear,jar=MeldServer-1.2.1.19.ear,name=ApplMeldMonitorBean,service=EJB3,VMID=fcc850ec3650b463:-725119d8:1361646a53d:-7ff9]},
SessionInvocation={InvokedMethod=[type=AS_ISvalue=com.gevas.jeb3.meld.session.bean.ApplMeldMonitorRemote:
com.gevas.jeb3.meld.session.bean.ICrossReference.getCrossReferences(long)]}}],
targetObject=com.gevas.jeb3.meld.session.bean.ApplMeldMonitorBean@13ae670,
arguments=[Ljava.lang.Object;@11b29ef]
2012-03-15 13:16:52,340 INFO [STDOUT] (WorkerThread#0[192.168.7.3:2435]) ------->
(86)ApplMeldMonitorBean.getCrossReferences ...
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/723980#723980]
Start a new discussion in JBoss Remoting at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]