You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "David Lock (JIRA)" <ji...@apache.org> on 2014/07/08 12:54:05 UTC

[jira] [Comment Edited] (WICKET-5371) IllegalArgumentException: Argument 'page' may not be null. - when sending event from asynchronous process

    [ https://issues.apache.org/jira/browse/WICKET-5371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14054819#comment-14054819 ] 

David Lock edited comment on WICKET-5371 at 7/8/14 10:52 AM:
-------------------------------------------------------------

Hi.
This issue is also happening for me.  Application will run fine, leave a page open for a while, real-time update comes in and is posted onto the EventBus and wham...

{code:borderStyle=solid}
java.lang.IllegalArgumentException: Argument 'page' may not be null.
     at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
     at org.apache.wicket.ajax.AjaxRequestHandler.<init>(AjaxRequestHandler.java:112)
     at org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:962)
     at org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:956)
     at org.apache.wicket.protocol.http.WebApplication.newAjaxRequestTarget(WebApplication.java:807)
     at org.apache.wicket.atmosphere.AtmosphereRequestHandler.respond(AtmosphereRequestHandler.java:73)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:397)
     at org.apache.wicket.atmosphere.EventBus.postToSingleResource(EventBus.java:362)
     at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:337)
    ...
{code}

Note, this doesn't happen all the time, it is quite sporadic.

Using the following dependencies...
wicket 6.15.0
wicket-atmosphere-0.18
atmosphere-runtime-native-2.0.4

deployed on Tomcat 7

Any ideas?



was (Author: dlock-gmac):
Hi.
This issue is also happening for me.  Application will run fine, leave a page open for a while, real-time update comes in and is posted onto the EventBus and wham...

{code:borderStyle=solid}
java.lang.IllegalArgumentException: Argument 'page' may not be null.
     at org.apache.wicket.util.lang.Args.notNull(Args.java:41)
     at org.apache.wicket.ajax.AjaxRequestHandler.<init>(AjaxRequestHandler.java:112)
     at org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:962)
     at org.apache.wicket.protocol.http.WebApplication$DefaultAjaxRequestTargetProvider.get(WebApplication.java:956)
     at org.apache.wicket.protocol.http.WebApplication.newAjaxRequestTarget(WebApplication.java:807)
     at org.apache.wicket.atmosphere.AtmosphereRequestHandler.respond(AtmosphereRequestHandler.java:73)
     at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:862)
     at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
     at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261)
     at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218)
     at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289)
     at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:397)
     at org.apache.wicket.atmosphere.EventBus.postToSingleResource(EventBus.java:362)
     at org.apache.wicket.atmosphere.EventBus.post(EventBus.java:337)
    ...
{code}

Using the following dependencies...
wicket 6.15.0
wicket-atmosphere-0.18
atmosphere-runtime-native-2.0.4

deployed on Tomcat 7

Any ideas?


> 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)