Dear Jonas,
                   Thanks for your reply.
Here com.DataStax.driver.core.LocalDate is not a user-defined class, it is
from the Cassandra DataStax jar. How can I do serialization included third
party class, also this class does not contain any constructor.
Please help me here to do.
Regards,
-Anandh Kumar


On Thu, Sep 16, 2021 at 12:50 PM Jonas Krauss <[email protected]> wrote:

> Hi Anandh,
>
> according to the error message, your class lacks a simple no arguments
> constructor like this:
>
> public LocalDate() {}
>
> Kryo needs this for working properly when doing deserialization I think.
>
> Give it a try!
>
> Jonas
>
> Am Do., 16. Sept. 2021 um 09:05 Uhr schrieb Anandh Kumar <
> [email protected]>:
>
>> Dear Team,
>>
>> I am using storm2.2.0 in my production environment, in that I have
>> deployed my topology which is in java. I have used the Cassandra DataStax
>> driver 3.10.2 version. I have used 12 node clusters in my storm environment.
>> When I deployed my topology some of the nodes and sometimes I am getting
>> following exceptions.
>> Can you please let me know when I am getting this error and how I can
>> resolve this issue?
>>
>> com.esotericsoftware.kryo.KryoException: Class cannot be created (missing
>> no-arg constructor): com.datastax.driver.core.LocalDate
>> Serialization trace:
>> data (com.netcore.pe.pojo.Profile)
>>         at
>> com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.newInstantiatorOf(Kryo.java:1272)
>> ~[kryo-3.0.3.jar:?]
>>         at com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1078)
>> ~[kryo-3.0.3.jar:?]
>>         at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1087)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.FieldSerializer.create(FieldSerializer.java:570)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:546)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:793)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:161)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)
>> ~[kryo-3.0.3.jar:?]
>>         at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:711)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:125)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:551)
>> ~[kryo-3.0.3.jar:?]
>>         at
>> com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:793)
>> ~[kryo-3.0.3.jar:?]
>> Regards,
>> -Anandh Kumar
>>
>

Reply via email to