PDA

View Full Version : ArrayIndexOutOfBoundsException when communication is interrupted


flavio.donze
07-24-2012, 06:27 AM
Hello

I'm using Riena (http://eclipse.org/riena) to establish a client server communication. Riena ships with Hessian 3.2.0.0.

Now in certain cases when communication is interrupted, like when the client falls into sleep mode, I get the following exception. Is there a nicer exception in a newer version or any idea how I could get one.

greets and thanks for any help!
Flavio

java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.remove(ArrayList.java:390) ~[na:1.6.0_33]
at com.caucho.hessian.io.HessianDebugState.popStack(H essianDebugState.java:103) ~[na:na]
at com.caucho.hessian.io.HessianDebugState$CallState. next(HessianDebugState.java:1540) ~[na:na]
at com.caucho.hessian.io.HessianDebugState.next(Hessi anDebugState.java:93) ~[na:na]
at com.caucho.hessian.io.HessianDebugInputStream.read (HessianDebugInputStream.java:106) ~[na:na]
at java.io.InputStream.read(InputStream.java:160) ~[na:1.6.0_33]
at com.caucho.hessian.io.Hessian2Input.readBuffer(Hes sian2Input.java:2644) ~[na:na]
at com.caucho.hessian.io.Hessian2Input.read(Hessian2I nput.java:2624) ~[na:na]
at com.caucho.hessian.io.Hessian2Input.startReply(Hes sian2Input.java:386) ~[na:na]
at com.caucho.hessian.client.HessianProxy.invoke(Hess ianProxy.java:218) ~[na:na]
at $Proxy120.findById(Unknown Source) ~[na:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) ~[na:1.6.0_33]
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) ~[na:1.6.0_33]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) ~[na:1.6.0_33]
at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_33]
at org.eclipse.riena.communication.core.hooks.Abstrac tHooksProxy.invoke(AbstractHooksProxy.java:69) ~[na:na]
at org.eclipse.riena.communication.core.hooks.Abstrac tHooksProxy.invoke(AbstractHooksProxy.java:38) ~[na:na]
at org.eclipse.riena.internal.communication.core.fact ory.CallHooksProxy.invoke(CallHooksProxy.java:66) ~[na:na]
at $Proxy121.findById(Unknown Source) ~[na:na]