Hi! Most likely you declared the factory or the listener as an anonymous class. Anonymous classes always contain reference to the parent class (LongCache in your case). So if the factory is serialized in the context of LongCache instance, this instance is also serialized. In case of static method this instance doesn't exist, therefore everything works.
I would recommend to convert anonymous classes to private static classes. This will give you more control on what is serialized. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/createCache-fails-in-non-static-method-tp1186p1196.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
