Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-13-2006
Xlinthisias Xlinthisias is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 5
UnmarshalOutOfBoundsException

Greetings,

I've trouble with exception raising and catching. I'm sure, that both the server and the client use the same definitions of the raised exceptions. But still, on the client side I see UnmarshalOutOfBoundsException exception instead of an exception declared by me.

I use Ice 3.0.0, have exception.ice with the declaration of the exception and test.ice with method that raise the exception. As I know, exception is raised properly on the server side, but the client side, cannot find class to reraise the exception. Perhaps, I've not properly initialized the client side. Any hint would be appreciated.

regards,
Xlinthisias
Reply With Quote
  #2 (permalink)  
Old 02-13-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 post regarding our support policy.

Thanks,
- Mark
Reply With Quote
  #3 (permalink)  
Old 02-13-2006
Xlinthisias Xlinthisias is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 5
Hello,

thanks for the tip. I've filled up the signature with requested data.

regards,
Xlinthisias
__________________
Artur Krysiak
www.bms.com.pl
tests against Corba, Ice, WebServices and java RMI
Reply With Quote
  #4 (permalink)  
Old 02-13-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
Thanks.

If you're sure that both client and server are using code that was generated from the same Slice definitions, the quickest way for us to help you is to see a small, self-contained code example that exhibits the problem. Attach a ZIP file containing the example to a post here on the forum, and we'll try to find the problem.

Take care,
- Mark
Reply With Quote
  #5 (permalink)  
Old 02-13-2006
Xlinthisias Xlinthisias is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 5
Hello,

I downloaded the sample test project, mentioned about.

Regards,
Xlinthisias
Attached Files
File Type: zip icetest.zip (9.2 KB, 30 views)
__________________
Artur Krysiak
www.bms.com.pl
tests against Corba, Ice, WebServices and java RMI
Reply With Quote
  #6 (permalink)  
Old 02-13-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
Hi,

Since you used the java:package metadata to alter the default package, you need to run your client with the following configuration:

Ice.Default.Package=dist.dj.protocol

You can find more information about this in the Ice manual.

Take care,
- Mark
Reply With Quote
  #7 (permalink)  
Old 02-14-2006
Xlinthisias Xlinthisias is offline
Registered User
 
 
Join Date: Feb 2006
Posts: 5
Hello,

thank you for solving this problem. I could spent few days, before I would figure out, that the problem was the default package settings.

Regards,
Xlinthisias
__________________
Artur Krysiak
www.bms.com.pl
tests against Corba, Ice, WebServices and java RMI
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
UserException but catches Ice.UnmarshalOutOfBoundsException David Help Center 1 06-15-2006 10:35 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:30 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.