[ https://issues.apache.org/jira/browse/APEXMALHAR-2092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15286094#comment-15286094 ]
Chandni Singh commented on APEXMALHAR-2092: ------------------------------------------- [~chaithu] Please set the class loader on the kryo instance in Decomposer. Instead of using a Decomposer here why don't you use KryoSerializableStreamCodec? Please try with this and let me know if you still face the issue > IndexOutOfBoundException occurring when running the ManagedStateImpl > -------------------------------------------------------------------- > > Key: APEXMALHAR-2092 > URL: https://issues.apache.org/jira/browse/APEXMALHAR-2092 > Project: Apache Apex Malhar > Issue Type: Bug > Reporter: Chaitanya > Assignee: Chandni Singh > > Created an application to reproduce IndexOutOfBoundsException and application > was at the below location: > https://github.com/chaithu14/managedApp > Containers got killed because of the following exception: > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:653) > at java.util.ArrayList.get(ArrayList.java:429) > at > com.esotericsoftware.kryo.util.MapReferenceResolver.getReadObject(MapReferenceResolver.java:42) > at com.esotericsoftware.kryo.Kryo.readReferenceOrNull(Kryo.java:805) > at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:759) > at > com.examples.app.Decomposer$DefaultDecomposer.compose(Decomposer.java:44) > at > com.examples.app.ManagedStateIntOperator.get(ManagedStateIntOperator.java:56) > at > com.examples.app.ManagedStateIntOperator.processTuple(ManagedStateIntOperator.java:42) > at > com.examples.app.ManagedStateIntOperator$1.process(ManagedStateIntOperator.java:35) > at > com.examples.app.ManagedStateIntOperator$1.process(ManagedStateIntOperator.java:31) > at com.datatorrent.api.DefaultInputPort.put(DefaultInputPort.java:79) > at > com.datatorrent.stram.stream.BufferServerSubscriber$BufferReservoir.sweep(BufferServerSubscriber.java:280) > at com.datatorrent.stram.engine.GenericNode.run(GenericNode.java:259) > at > com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContainer.java:1393) -- This message was sent by Atlassian JIRA (v6.3.4#6332)