Some strange error in webclient. Anyone see what is wrong?

Hello,

I have the following error in webclient. In smart client all works like expected.
There error occurs on a form.webshop_main.controller.show().

Looks like some Apache error, and that is outside my experience. Does anyone see anything useful in here?

there was an error cleaning up target [AjaxRequestTarget@-1455029061 markupIdToComponent [{sv_383aabe6_e79b_4271_b183_beab580e42d8_4=[MarkupContainer [Component id = 4, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:4.AbstractTree$TreeItem]], sv_383aabe6_e79b_4271_b183_beab580e42d8_5=[MarkupContainer [Component id = 5, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:5.AbstractTree$TreeItem]]}], prependJavascript [[]], appendJavascript [[]].
ava.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 4, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:4.AbstractTree$TreeItem]]
     at org.apache.wicket.Component.getPage(Component.java:1659)
     at org.apache.wicket.ajax.AjaxRequestTarget.detach(AjaxRequestTarget.java:437)
     at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1049)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1365)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:496)
     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375)
     at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Unknown Source)

And also the following error:

Error rendering the page webshop_main
java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 4, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:4.AbstractTree$TreeItem]]
     at org.apache.wicket.Component.getPage(Component.java:1659)
     at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:689)
     at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:605)
     at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520)
     at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:496)
     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375)
     at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Unknown Source)

And the third errormessage:

No Page found for component [MarkupContainer [Component id = 4, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:4.AbstractTree$TreeItem]]
java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = 4, page = <No Page>, path = 0:webform:servoywebform:View:sv_c69699ef_8cb2_4aee_a14a_bf553cd4a9e7:sv_9cdd0c95_0304_4674_a3aa_c53de02c5a4d:webform:servoywebform:View:sv_48ac7d22_4a38_4782_b072_77d9bdef59fd:sv_383aabe6_e79b_4271_b183_beab580e42d8:i:4.AbstractTree$TreeItem]]
     at org.apache.wicket.Component.getPage(Component.java:1659)
     at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:689)
     at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:605)
     at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520)
     at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:104)
     at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1175)
     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1246)
     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1347)
     at org.apache.wicket.RequestCycle.request(RequestCycle.java:496)
     at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:375)
     at org.apache.wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:124)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
     at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
     at java.lang.Thread.run(Unknown Source)

Is there someone who has noticed something in the errormessage, that could help me to resolve this error?

Thanks

Martin

Please, post the method code.
A screenshot of the form could be helpful too to see wihch elements you are using and how they are layed out.

Here is the coding:

The method is called from a dbtreeview using a globis method:

var _query = 'SELECT article_id FROM article WHERE articlesubgroup_id = ?'
forms.webshop_article.controller.loadRecords(_query, [arguments[0]] )
forms.webshop_main.controller.show();  // <-- This statement gives the error

I think the following situation has to do with the error:

I have 2 forms M1 and M2
Form M1 contains several tabpanels with otherforms, lets say F1, F2 and F3
Form M2 contains several tabpanels as well, lets say F1, F4 and F5
As you can see form F1, is both on M1 and M2
See the schema picture below.

Form F1 contains the dbtreeview and onClick on a node, form M1 must be shown (that is webshop_main in the coding; webshop_article is F2 in the example)

This works as long as M1 is loaded.
But when form M2 is loaded (showing F1, F4 and F5) then also onClick on the node, the M1 must be shown. And then the error occurs.
I think it has something to do with the fact that F1 is both on M1 and M2, but I don’t see what is wrong about that and if the situation is an error/bug or not. In the smartclient I don’t have a problem. There is works like expected.

I hope that this explanation is clear.

Martin

Can you create a case for this in the Support System, with the solution attached?

Quite difficult to tell from just a description what might be causing the error.

Paul

I decided to rebuild the form with form F1 always visible and on the right side a tabpanel with 2 forms.

I guess that Servoy has some troubles when the process is still on the onClick method on the form and in the method a new form F1 is being loaded/shown.

I think that the onClick must first be finished before I can reload/reshow the form F1 on another tabpanel then where it was triggered from.

It would have taken me more time to create a small sample with the exact situation compared to changing the application

Now it works like expected.

So the lesson from this case:

If you have the same form on 2 different tabpanels, redesign your application, so that the form is only on 1 tabpanel.