New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working on multiple tabs causes exceptions #182

Closed
jutzig opened this Issue Jan 27, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@jutzig
Owner

jutzig commented Jan 27, 2014

When a user works in multiple settings tabs simultaniously the following exception appears from time to time:

[ERROR] Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at [Form [Component id = form]] on component [Form [Component id = form]] threw an exception
    at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:240) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) ~[org.apache.wicket.wicket-request-6.0.0.jar:6.0.0]
    at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) [org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) [org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) [org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) [org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245) [org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.jabylon.rest.ui.JabylonFilter.doFilter(JabylonFilter.java:89) [org.jabylon.rest.ui-1.0.0.jar:na]
    at org.eclipse.equinox.http.registry.internal.FilterManager$FilterWrapper.doFilter(FilterManager.java:173) [org.eclipse.equinox.http.registry-1.1.200.jar:na]
    at org.eclipse.equinox.http.servlet.internal.FilterRegistration.doFilter(FilterRegistration.java:81) [org.eclipse.equinox.http.servlet-1.1.300.jar:na]
    at org.eclipse.equinox.http.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:35) [org.eclipse.equinox.http.servlet-1.1.300.jar:na]
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:132) [org.eclipse.equinox.http.servlet-1.1.300.jar:na]
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:76) [org.eclipse.equinox.http.servlet-1.1.300.jar:na]
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [javax.servlet-3.0.0.jar:na]
    at org.eclipse.equinox.http.jetty.internal.HttpServerManager$InternalHttpServiceServlet.service(HttpServerManager.java:386) [org.eclipse.equinox.http.jetty-3.0.100.jar:na]
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669) [org.eclipse.jetty.servlet-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457) [org.eclipse.jetty.servlet-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) [org.eclipse.jetty.servlet-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.Server.handle(Server.java:368) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) [org.eclipse.jetty.http-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) [org.eclipse.jetty.http-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) [org.eclipse.jetty.server-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628) [org.eclipse.jetty.io-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) [org.eclipse.jetty.io-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) [org.eclipse.jetty.util-8.1.10.jar:8.1.10.v20130312]
    at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) [org.eclipse.jetty.util-8.1.10.jar:8.1.10.v20130312]
    at java.lang.Thread.run(Thread.java:722) [na:1.7.0_13]
Caused by: java.lang.reflect.InvocationTargetException: null
    at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) ~[na:na]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_13]
    at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_13]
    at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    ... 39 common frames omitted
Caused by: java.lang.NullPointerException: null
    at org.jabylon.rest.ui.wicket.config.SettingsPanel$1.commit(SettingsPanel.java:145) ~[org.jabylon.rest.ui-1.0.0.jar:na]
    at org.jabylon.rest.ui.wicket.config.SettingsPanel$1.onSubmit(SettingsPanel.java:130) ~[org.jabylon.rest.ui-1.0.0.jar:na]
    at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1249) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.markup.html.form.Form$9.component(Form.java:1243) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.util.visit.Visits.visitPostOrderHelper(Visits.java:274) ~[org.apache.wicket.wicket-util-6.0.0.jar:6.0.0]
    at org.apache.wicket.util.visit.Visits.visitPostOrder(Visits.java:245) ~[org.apache.wicket.wicket-util-6.0.0.jar:6.0.0]
    at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1242) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.markup.html.form.Form.process(Form.java:924) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703) ~[org.apache.wicket.wicket-core-6.0.0.jar:6.0.0]
    ... 43 common frames omitted
@jutzig

This comment has been minimized.

Owner

jutzig commented Jan 27, 2014

It turns out that there is a problem with the injector in case of stateful pages. The dependencies are not re-injected when a page gets deserialized. We need to either remove all injections or somehow wrap this in a serializable fashion
See here: http://apache-wicket.1842946.n4.nabble.com/IoC-how-to-best-handle-non-serializable-fields-in-wicket-td1876322.html

@ghost ghost assigned jutzig Jan 27, 2014

@jutzig jutzig closed this in 0efc682 Jan 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment