For any class to be serializable by kryo, it needs to have the default no arg constructor.
Regards, Ashwin. On Tue, Mar 22, 2016 at 3:56 PM, Kottapalli, Venkatesh < [email protected]> wrote: > Yes Ashwin, I know the details of the class. It is a new class that I have > added to the project. Do I have check that for anything specific that > might cause this issue? > > -Venkatesh. > > -----Original Message----- > From: Ashwin Chandra Putta [mailto:[email protected]] > Sent: Tuesday, March 22, 2016 3:21 PM > To: [email protected] > Subject: Re: Reg IndexOutOfBoundsException while serializing the object > > Venkatesh, > > Do you know the name of the class it is not finding? Is it any new > dependency you added to the project? > > Regards, > Ashwin. > > On Tue, Mar 22, 2016 at 3:03 PM, Kottapalli, Venkatesh < > [email protected]> wrote: > > > Hi, > > > > I ran into the below issues while running the app today. > > Any inputs on why this is happening? I see this JIRA raised already > > but closed as "Not reproducible". > > > > https://malhar.atlassian.net/browse/MLHR-1709 > > > > > > > > Stopped running due to an exception. > > java.lang.IndexOutOfBoundsException: Index: 97, Size: 45 > > at java.util.ArrayList.rangeCheck(ArrayList.java:635) > > at java.util.ArrayList.get(ArrayList.java:411) > > 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.datatorrent.lib.codec.KryoSerializableStreamCodec.fromByteArray(KryoSerializableStreamCodec.java:87) > > at > > > com.datatorrent.stram.stream.BufferServerSubscriber$BufferReservoir.processPayload(BufferServerSubscriber.java:361) > > at > > > com.datatorrent.stram.stream.BufferServerSubscriber$BufferReservoir.sweep(BufferServerSubscriber.java:316) > > at > > com.datatorrent.stram.engine.GenericNode.run(GenericNode.java:229) > > at > > com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContain > > er.java:1386) > > > > > > Stopped running due to an exception. > > com.esotericsoftware.kryo.KryoException: Unable to find class: > > ________________________________ > > 002950878021 > > > > at > > com.esotericsoftware.kryo.util.DefaultClassResolver.readName(DefaultCl > > assResolver.java:138) > > > > at > > com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultC > > lassResolver.java:115) > > > > at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:641) > > > > at > > com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:752) > > > > at > > com.datatorrent.lib.codec.KryoSerializableStreamCodec.fromByteArray(Kr > > yoSerializableStreamCodec.java:87) > > > > at > > com.datatorrent.stram.stream.BufferServerSubscriber$BufferReservoir.pr > > ocessPayload(BufferServerSubscriber.java:361) > > > > at > > com.datatorrent.stram.stream.BufferServerSubscriber$BufferReservoir.sw > > eep(BufferServerSubscriber.java:316) > > > > at > > com.datatorrent.stram.engine.GenericNode.run(GenericNode.java:229) > > > > at > > com.datatorrent.stram.engine.StreamingContainer$2.run(StreamingContain > > er.java:1386) > > > > Caused by: java.lang.ClassNotFoundException: > > ________________________________ > > 002950878021 > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > > > > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:425) > > > > at > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:358) > > > > at java.lang.Class.forName0(Native Method) > > > > at java.lang.Class.forName(Class.java:274) > > > > at > > com.esotericsoftware.kryo.util.DefaultClassResolver.readName(DefaultCl > > assResolver.java:136) > > > > ... 8 more > > > > > > > > > > > > -Venkatesh. > > > > > > > -- > > Regards, > Ashwin. > -- Regards, Ashwin.
