Home Bug Reports

UnmarshalOutOfBoundsException

sattursasattursa Member Sandeep SatturOrganization: UBSProject: Trader Desk Top
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.StringArrayHelper.read(StringArrayHelper.java:26)
at com.ubs.firc.common.iicetest.internal.test.ChildServiceObject.__read(ChildServiceObject.java:144)
at com.ubs.firc.common.iicetest.internal.test.ServiceObject.__read(ServiceObject.java:99)
at com.ubs.firc.common.iicetest.internal.test._RequestResponseDelM.getServiceObject(_RequestResponseDelM.java:215)
at com.ubs.firc.common.iicetest.internal.test.RequestResponsePrxHelper.getServiceObject(RequestResponsePrxHelper.java:213)
at com.ubs.firc.common.iicetest.internal.test.RequestResponsePrxHelper.getServiceObject(RequestResponsePrxHelper.java:187)
at com.ubs.firc.common.iicetest.client.Client.testRequestResponse(Client.java:78)

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    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
  • sattursasattursa Member Sandeep SatturOrganization: UBSProject: Trader Desk Top
    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
Sign In or Register to comment.