I'd use a debugger to look for live references to the map. In Eclipse, if you right-click the variable line in the Variables view, there is an All References option. The trick is instantiating the offending Wicket component to create the reference. But once created it should stick around at least until the next GC.
Dan On Tue, Aug 6, 2013 at 9:27 AM, Michael Mosmann <[email protected]> wrote: > IMHO nothing in Application is serialized. But its far to easy to leak an > instance of this LRU-Map into some components (anon classes). > > Can you provide some code or error message? > > Am 06.08.13 18:22, schrieb saty: > > I need to understand what and when Wicket tries to serialize stuff in a >> running wicket application. I am not able to fix this error and it keeps >> growing with more users starting to use the application. It does not >> affect >> the application usage but it keeps beaming error email. >> >> I am using LRU map to cache certain data being used in the application and >> that is a shared data in a static context not tied to any particular user. >> Why would wicket try to serialize this object, this should not be >> serialized >> at all. LRU map this is not synchronized and is not thread-safe and >> application code treats it that way but the serialization keeps generating >> concurrent modification exception as its obvious its trying to serialize >> this when something changes the map. >> if i declare this as transient, will this prevent wicket from serializing >> this map too, what are the possible repercussion in wicket application if >> i >> declare this transient. >> >> Thanks for your help. >> >> >> >> -- >> View this message in context: http://apache-wicket.1842946.** >> n4.nabble.com/How-to-resolve-**this-java-util-** >> ConcurrentModificationExceptio**n-tp4660273p4660725.html<http://apache-wicket.1842946.n4.nabble.com/How-to-resolve-this-java-util-ConcurrentModificationException-tp4660273p4660725.html> >> Sent from the Users forum mailing list archive at Nabble.com. >> >> ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: >> users-unsubscribe@wicket.**apache.org<[email protected]> >> For additional commands, e-mail: [email protected] >> >> > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org<[email protected]> > For additional commands, e-mail: [email protected] > >
