Re: Application not seri

2019-12-22 Thread Shengche Hsiao
Great, thank you so much On Sun, Dec 22, 2019 at 3:24 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > Hi, > > Instead of keeping a reference to WebApplication just use > Application.get();: it is bound to thread as a threadlocal. If you need > your specific instance you can always

Re: Application not seri

2019-12-22 Thread Shengche Hsiao
Yep, Thanks On Sun, Dec 22, 2019 at 3:29 PM Ernesto Reinaldo Barreiro < reier...@gmail.com> wrote: > By the way: your avatar made me remember good times sitting together with > my boy watching adventure times :-) > > On Sat, Dec 21, 2019 at 9:03 AM ShengChe Hsiao wrote: > > > Dear all > > I

Re: Application not seri

2019-12-21 Thread Ernesto Reinaldo Barreiro
By the way: your avatar made me remember good times sitting together with my boy watching adventure times :-) On Sat, Dec 21, 2019 at 9:03 AM ShengChe Hsiao wrote: > Dear all > I faced a strange exception, the error message: > > A problem occurred while checking object with type: >

Re: Application not seri

2019-12-21 Thread Ernesto Reinaldo Barreiro
Hi, Instead of keeping a reference to WebApplication just use Application.get();: it is bound to thread as a threadlocal. If you need your specific instance you can always add public static MyWebApplication getInstance() { return (MyWebApplication) Application.get(); } to class

Re: Application not seri

2019-12-21 Thread Bas Gooren
Hi, The stacktrace shows you that you are passing a LoadableDetachableModel to info.sls.GMapPanel which contains a non-serializable reference to info.sls.WicketApplication$3; info.sls.WicketApplication$3 is an anonymous class inside your WicketApplication, which contains a reference to it’s

Re: Application not seri

2019-12-20 Thread Shengche Hsiao
Thank you On Sat, Dec 21, 2019 at 2:31 PM Martin Terra < martin.te...@koodaripalvelut.com> wrote: > Follow the stacktrace, looks like there is a reference to > ava.lang.Object org.apache.wicket.Component.data > [class=[Ljava.lang.Object;] > > maybe anonymous class? If you need an Object, you

Re: Application not seri

2019-12-20 Thread Martin Terra
Follow the stacktrace, looks like there is a reference to ava.lang.Object org.apache.wicket.Component.data [class=[Ljava.lang.Object;] maybe anonymous class? If you need an Object, you need to make a SerializableObject extends Object implements Serializabe ... Just study the stacktrace, it will

Application not seri

2019-12-20 Thread ShengChe Hsiao
Dear all I faced a strange exception, the error message: A problem occurred while checking object with type: info.sls.WicketApplication Field hierarchy is: 1 [class=info.sls.MapPage, path=1] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=java.util.ArrayList]