If you can it would be best to raise an issue on the GitHub repo with a 
repeatable test. This looks like you have a logic bug given the exception. 
You should check the source of where you get the length parameter. This is 
not the best place to ask such questions.

On Thursday, 9 March 2017 12:21:08 UTC, Fayanne King wrote:
>
> Hi,
>
> We are getting the following exceptions when deserializing using SBE. We 
> got the same issue on both 1.5.6 and 1.6.0 versions of SBE.
>
> java.lang.IndexOutOfBoundsException: index=22, length=524370, capacity=1601
>         at 
> org.agrona.concurrent.UnsafeBuffer.boundsCheck0(UnsafeBuffer.java:1096) 
> ~[aeron-all-1.0.4.jar:?]
>         at 
> org.agrona.concurrent.UnsafeBuffer.getBytes(UnsafeBuffer.java:823) 
> ~[aeron-all-1.0.4.jar:?]
>
> java.lang.IndexOutOfBoundsException: index=524396, capacity=1601
>         at 
> org.agrona.concurrent.UnsafeBuffer.boundsCheck(UnsafeBuffer.java:1087) 
> ~[aeron-all-1.0.4.jar:?]
>         at 
> org.agrona.concurrent.UnsafeBuffer.getByte(UnsafeBuffer.java:778) 
> ~[aeron-all-1.0.4.jar:?]
>
> When we run unit tests on our local machine, everything is serializing and 
> deserializing properly. However, when we send the serialized message over 
> the network, the deserializing process is getting the exception above. 
>
> Messages are serialized and deserialized in a single thread and we are 
> using a ThreadLocal.initialValue of new 
> UnsafeBuffer(ByteBuffer.allocateDirect(4096*4)).
>
> We are running on Java(TM) SE Runtime Environment (build 1.8.0_111-b14).
>
> Thanks a lot for your help.
>

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to mechanical-sympathy+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to