https://github.com/apache/incubator-apex-malhar/blob/master/library/src/main/java/com/datatorrent/lib/codec/KryoJdkContainer.java

That file has an example use: @DefaultSerializer(JavaSerializer.class)

Ram

On Wed, Jan 27, 2016 at 7:38 AM, Sandesh Hegde <[email protected]>
wrote:

> Instead of writing the boiler plate code for overriding the Kryo methods. I
> just want a simple way to say, for this type use Java Serializer. Anyway of
> specifying that will help. May be annotation on the type?
>
> On Wed, Jan 27, 2016 at 7:34 AM Gaurav Gupta <[email protected]>
> wrote:
>
> > Sandesh,
> >
> > What do you mean by "can we have annotation to use java serializer"
> >
> > Gaurav
> >
> > On Wed, Jan 27, 2016 at 7:12 AM, Sandesh Hegde <[email protected]>
> > wrote:
> >
> > > Thanks Guys, I am using Java serializer.
> > >
> > > Can we have annotation to use the Java serializer?
> > >
> > > On Tue, Jan 26, 2016 at 3:53 PM Thomas Weise <[email protected]>
> > > wrote:
> > >
> > > >
> > > >
> > >
> >
> http://docs.datatorrent.com/troubleshooting/#application-throwing-following-kryo-exception
> > > >
> > > >
> > > > On Tue, Jan 26, 2016 at 3:48 PM, Thomas Weise <
> [email protected]>
> > > > wrote:
> > > >
> > > > > If the class in question is Java serializable, then using the
> > > > > JavaSerializer for the field or class may work.
> > > > >
> > > > >
> > > > > On Tue, Jan 26, 2016 at 3:27 PM, Sandesh Hegde <
> > > [email protected]>
> > > > > wrote:
> > > > >
> > > > >> Hello Team,
> > > > >>
> > > > >> I am using class A, which doesn't have a default constructor, in
> an
> > > > >> operator.
> > > > >> Also, class A depends on few other classes which doesn't have a
> > > default
> > > > >> constructor.
> > > > >>
> > > > >> While running the app, I get the Kryo no-arg constructor
> exception.
> > > > >>
> > > > >> I looked at the following link,
> > > > >>
> > > > >>
> > > >
> > >
> >
> http://docs.datatorrent.com/troubleshooting/#application-throwing-following-kryo-exception
> > > > >>
> > > > >> Is there a simple way to handle this scenario?
> > > > >>
> > > > >> Class A
> > > > >> *
> > > > >>
> > > > >>
> > > >
> > >
> >
> https://github.com/yahoo/streaming-benchmarks/blob/master/streaming-benchmark-common/src/main/java/benchmark/common/advertising/CampaignProcessorCommon.java
> > > > >>
> > > > >> Thanks
> > > > >> Sandesh
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Reply via email to