ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: createCache fails in non-static method
Date Fri, 28 Aug 2015 18:58:28 GMT

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.


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.

View raw message