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).
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.
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);
<code> Preconditions.checkPositionIndexes(off, off+len, bytes.length);
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.
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!