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 add > > public static MyWebApplication getInstance() { > return (MyWebApplication) Application.get(); > } > > to class MyWebApplication, This way you can always > call MyWebApplication.getInstance() and you don't need to keep a > reference to it as a field on base page. > > > On Sat, Dec 21, 2019 at 9:03 AM ShengChe Hsiao <front...@gmail.com> wrote: > > > 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] > > > > private java.lang.Object > > org.apache.wicket.MarkupContainer.children[write:27][write:28] > > [class=org.apache.wicket.markup.html.form.StatelessForm, > > path=1:formGMapSelect] > > > > private java.lang.Object > org.apache.wicket.MarkupContainer.children > > [class=java.util.ArrayList] > > > > private final java.lang.String > > > > > org.apache.wicket.markup.html.form.ChoiceRenderer.idExpression[write:8][write:11] > > [class=org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink, > > path=1:formGMapSelect:btnSelect] > > > > final info.sls.GMapPanel info.sls.MapPage$1.val$gMapPanel > > [class=info.sls.GMapPanel, path=1:gmaps] > > > > java.lang.Object org.apache.wicket.Component.data > > [class=[Ljava.lang.Object;] > > > > java.lang.Object org.apache.wicket.Component.data[0] > > [class=org.apache.wicket.model.LoadableDetachableModel] > > > > final info.sls.WicketApplication > > info.sls.WicketApplication$3.this$0 [class=info.sls.WicketApplication] > > <----- field that is causing the problem > > > > > > I use transient with WicketApplication in my BasePage, but the issue > > continued..... > > > > > > private transient WicketApplication wicketApplication; > > > > > > > > Any suggestions? > > -------------------------------------------------------------------- > > -----------------------------------> > > To boldly go where no man has gone before. > > -------------------------------------------------------------------- > > -----------------------------------> > > We do this not because it is easy. We do this because it is hard. > > ----------------------------------------------------------------- > > --------------------------------------> > > If I have seen further it is by standing on the shoulders of giants. > > ---------------------------------------------------------- > > ---------------------------------------------> > > front...@gmail.com > > > > > ---------------------------------------------------------------------------------------------> > > > > > -- > Regards - Ernesto Reinaldo Barreiro > -- -----------------------------------------------------------------------> We do this not because it is easy. We do this because it is hard. -----------------------------------------------------------------------> ShengChe Hsiao -----------------------------------------------------------------------> front...@gmail.com front...@tc.edu.tw -----------------------------------------------------------------------> VoIP : 070-910-2450 ----------------------------------------------------------------------->