nathanmarz/storm — Issue #64: Storm fails on initialization when defining a custom serializer
Author: apetresc
Created: 2011-12-06 01:21:32+00:00
State: open

I've written a simple Kryo serializer for twitter4j.Status objects, which simply uses JSON, [posted here](https://gist.github.com/1436239). I register this serializer with Storm at runtime:

config.setFallBackOnJavaSerialization(false);
config.registerSerialization(Status.class, Twitter4JStatusCustomSerializer.class);

However, this causes Storm to [fail during initialization](https://gist.github.com/1436144) in a very mysterious way. Notice that the stack trace doesn't include my code at all. However, if I remove those two lines above (and therefore let it fall back on default serialization), everything works, so I can only assume the serializer registration is causing the issue.