[
https://issues.apache.org/jira/browse/WICKET-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054831#comment-14054831
]
Emond Papegaaij commented on WICKET-5371:
-----------------------------------------
Page is null when either the session is lost or the page is not found in the
page store. Atmosphere requires you to explicitly enable session support (see
earlier comment). If session support is enabled, we will need a quickstart to
be able to debug this.
> IllegalArgumentException: Argument 'page' may not be null. - when sending
> event from asynchronous process
> ---------------------------------------------------------------------------------------------------------
>
> Key: WICKET-5371
> URL: https://issues.apache.org/jira/browse/WICKET-5371
> Project: Wicket
> Issue Type: Bug
> Components: wicket-atmosphere
> Affects Versions: 6.10.0
> Reporter: Vojtěch Krása
> Assignee: Emond Papegaaij
>
> I never reproduced it on local, it happens a lot on linux server behind
> apache proxy(could be just coincidence). I could try to debug it, if you have
> no idea why it could happen. It also seems that it happens only after server
> is running for some time.
> I am sending multiple events to update different panels from asynchronous
> process like this:
>
> EventBus.get(Application.get(WicketApplication.class.getName())).post(new
> ComponentBuildEvent());
> 15:16:36 ERROR o.a.w.DefaultExceptionMapper [refreshExecutor-4]: - Unexpected
> error occurred
> java.lang.IllegalArgumentException: Argument 'page' may not be null.
> at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
> ~[wicket-util-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.ajax.AjaxRequestHandler.<init>(AjaxRequestHandler.java:112)
> ~[wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:961)
> ~[wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:954)
> ~[wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.protocol.http.WebApplication.newAjaxRequestTarget(WebApplication.java:805)
> ~[wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.atmosphere.AtmosphereRequestHandler.respond(AtmosphereRequestHandler.java:69)
> ~[wicket-atmosphere-0.13.jar:0.13]
> at
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:861)
> ~[wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> ~[wicket-request-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
> [wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
> [wicket-core-6.10.0.jar:6.10.0]
> at
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
> [wicket-core-6.10.0.jar:6.10.0]
> at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:368)
> [wicket-atmosphere-0.13.jar:0.13]
> at
> org.apache.wicket.atmosphere.EventBus.postToSingleResource(EventBus.java:344)
> [wicket-atmosphere-0.13.jar:0.13]
> at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:319)
> [wicket-atmosphere-0.13.jar:0.13]
> at
> krasa.build.backend.facade.AsyncService.sendRefresh(AsyncService.java:28)
> [classes/:na]
> at
> krasa.build.backend.facade.AsyncService$$FastClassByCGLIB$$8fb726ed.invoke(<generated>)
> [spring-core-3.2.3.RELEASE.jar:na]
> at
> org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
> [spring-core-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
> [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
> [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at
> org.springframework.aop.interceptor.AsyncExecutionInterceptor$1.call(AsyncExecutionInterceptor.java:89)
> [spring-aop-3.2.3.RELEASE.jar:3.2.3.RELEASE]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> [na:1.7.0_03]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> [na:1.7.0_03]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> [na:1.7.0_03]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> [na:1.7.0_03]
> at java.lang.Thread.run(Thread.java:722) [na:1.7.0_03]
> sometimes it even shows me this page, unfortunatelly I only found out later
> in not used tabs:
> http://svn.tmdev:8765/wicket/page?23
> Unexpected RuntimeException
> Last cause: Argument 'page' may not be null.
> Stacktrace
> Root cause:
> java.lang.IllegalArgumentException: Argument 'page' may not be null.
> ....
--
This message was sent by Atlassian JIRA
(v6.2#6252)