|
|
|
|||||
|
UserException but catches Ice.UnmarshalOutOfBoundsException
I want to throw a UserExaption (defined in the Slice), but I get a Ice.UnmarshalOutOfBoundsException.
I have Client and Server on the same Windows 2000 machine. I'm using Ice-3.0.1. Everthing works except the exception throwing. my slice is: module server { exception CSAException { string reason; }; interface CommServer { nonmutating AllSliceChecksumDict getAllSliceChecksums() throws CSAException; }; }; my CommServerI class: public Map[] getAllSliceChecksums(Current __current) throws CSAException { // my java code if(true){ throw new CSAException("test my CSAException"); } return allCkecksums; } On the client I get following Stacktrace: Ice.UnmarshalOutOfBoundsException reason = (null) at IceInternal.BasicStream.readSize(BasicStream.java: 552) at IceInternal.BasicStream.readString(BasicStream.jav a:1068) at IceInternal.BasicStream.throwException(BasicStream .java:1433) at server.server._CommServerDelM.getAllSliceChecksums (_CommServerDelM.java:32) at server.server.CommServerPrxHelper.getAllSliceCheck sums(CommServerPrxHelper.java:35) at server.server.CommServerPrxHelper.getAllSliceCheck sums(CommServerPrxHelper.java:20) at ControllerMain.<init>(ControllerMain.java:65) at ControllerMain.getInstance(ControllerMain.java:37) at ControllerMain.controllerStart(ControllerMain.java :168) at ControllerMain.main(ControllerMain.java:230) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main (AppMain.java:90) Could it be the 2 Object write to the BasicStream? Even though I'm using one thread only. Any ideas? thanks Last edited by David : 06-15-2006 at 10:33 AM. |
|
||||||
|
Welcome to the forum.
Please update your signature as described in this announcement regarding our support policies on this forum. Also, if you search the forum for "UnmarshalOutOfBoundsException", you might find the answer to your problem. For example, see this post. Take care, - Mark |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UnmarshalOutOfBoundsException | Xlinthisias | Help Center | 6 | 02-14-2006 12:53 AM |
| UnmarshalOutOfBoundsException when sending byte sequences | csammis | Help Center | 3 | 08-03-2005 03:37 PM |