Go Back   ZeroC Forums > Bug Reports

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 1 Week Ago
sattursa sattursa is offline
Registered User
 
Name: Sandeep Sattur
Organization: UBS
Project: Trader Desk Top
 
Join Date: May 2008
Posts: 2
UnmarshalOutOfBoundsException

I get Ice.UnmarshalOutOfBoundsException when a java method call tries to unmarshall a string array member of a struct.
The struct in question is the return value from the method call.

Please let me know if there are any slice restrictions on struct definition.

The stack trace is as below:

Ice.UnmarshalOutOfBoundsException
reason = (null)
at IceInternal.BasicStream.readSize(BasicStream.java: 574)
at IceInternal.BasicStream.readStringSeq(BasicStream. java:1197)
at com.ubs.firc.common.iicetest.internal.test.StringA rrayHelper.read(StringArrayHelper.java:26)
at com.ubs.firc.common.iicetest.internal.test.ChildSe rviceObject.__read(ChildServiceObject.java:144)
at com.ubs.firc.common.iicetest.internal.test.Service Object.__read(ServiceObject.java:99)
at com.ubs.firc.common.iicetest.internal.test._Reques tResponseDelM.getServiceObject(_RequestResponseDel M.java:215)
at com.ubs.firc.common.iicetest.internal.test.Request ResponsePrxHelper.getServiceObject(RequestResponse PrxHelper.java:213)
at com.ubs.firc.common.iicetest.internal.test.Request ResponsePrxHelper.getServiceObject(RequestResponse PrxHelper.java:187)
at com.ubs.firc.common.iicetest.client.Client.testReq uestResponse(Client.java:78)
Reply With Quote
  #2 (permalink)  
Old 1 Week Ago
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: 927
Welcome to the forum.

The most likely reason for an UnmarshalOutOfBoundsException is a mismatch between the Slice definitions used by client and server. For example, this can occur if you change your Slice definitions and rebuild the server, but forget to rebuild the client.

This FAQ provides more information on UnmarshalOutOfBoundsException.

Let us know if you're still having trouble.

Take care,
Mark
Reply With Quote
  #3 (permalink)  
Old 1 Week Ago
sattursa sattursa is offline
Registered User
 
Name: Sandeep Sattur
Organization: UBS
Project: Trader Desk Top
 
Join Date: May 2008
Posts: 2
UnmarshalOutOfBoundsException

Hi Mark,

It was indeed a mismatch between server and client code. The client
config was pointing to a server which had old code.

Thanks
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 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 10:39 PM.


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.