Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-15-2006
David David is offline
Registered User
 
 
Join Date: Jun 2006
Location: Zürich
Posts: 9
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.
Reply With Quote
  #2 (permalink)  
Old 06-15-2006
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 957
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
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT -4. The time now is 07:39 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.