Created 04-20-2018 05:11 PM
Hi,
Please your help with the following error:
java.lang.IndexOutOfBoundsException: end index (429) must not be less than start index (7763) at org.apache.storm.shade.com.google.common.base.Preconditions.checkPositionIndexes(Preconditions.java:386) at com.hortonworks.streamline.streams.runtime.storm.spout.AvroKafkaSpoutTranslator$ByteBufferInputStream.read(AvroKafkaSpoutTranslator.java:108) at org.apache.avro.io.BinaryDecoder$InputStreamByteSource.tryReadRaw(BinaryDecoder.java:839) at org.apache.avro.io.BinaryDecoder$ByteSource.compactAndFill(BinaryDecoder.java:692) at
This error happened when I run an application in SAM (attached).
Thanks
Created 04-23-2018 02:21 PM
its a old version bug of sam。you can find answer on here:
https://github.com/hortonworks/streamline/issues/1081
,its a old version bug of sam
Created 04-23-2018 11:28 PM
Hi Bruce Liu,
Thanks for your answer. I have additional question about the solution, where I can change this code?
Sorry but I am new in Hortonworks.
Thank you.
Created 04-25-2018 02:31 PM
yeah,you can find the code on this https://github.com/hortonworks/streamline/pull/1082
Replace current condition
<code> Preconditions.checkPositionIndexes(off, len, bytes.length);
with
<code> Preconditions.checkPositionIndexes(off, off+len, bytes.length);
Created 04-25-2018 08:05 PM
Hi @bruce liu
Sorry again, but I don't understand at all. Where I can change this code?. I don't know if I have to look some file in the Linux filesystem, or if I have to download some file and change in Eclipse, or is just by other way.
Thanks again.
Created 05-03-2018 04:07 PM
Hi @Alejandro Camacho
maybe you can update your sam to a newer version
or you may change code by Eclipse or replace a jar file which contains Preconditions.java . but its risky and you must do enough test!