You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Chris <ch...@gmx.at> on 2015/02/16 21:27:26 UTC

Wicket application - no ajax without internet connection

Hi all,

When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.

What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?

Thanks, Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket application - no ajax without internet connection

Posted by Chris <ch...@gmx.at>.
Hi Tobias,

thanks a lot for your help - the problem was a Javascript file that was not locally embedded but downloaded from the internet.

BR Chris

> Am 17.02.2015 um 07:51 schrieb Tobias Soloschenko <to...@googlemail.com>:
> 
> Hi,
> 
> I had a look at AjaxFallBackButton L135 - nothing there what could explain your exception - what is going on in your VotingPanel L51?
> 
> kind regards
> 
> Tobias
> 
>> Am 16.02.2015 um 22:07 schrieb Chris <ch...@gmx.at>:
>> 
>> Hi Tobias,
>> 
>> I am not sure if this helps a lot ;) Some links (clickable div containers, etc.) even do not work at all without internet connection and do not throw an exception.
>> 
>> Root cause:
>> 
>> java.lang.NullPointerException
>>    at tripplanner.mycompany.panels.VotingPanel$2.onSubmit(VotingPanel.java:51)
>>    at org.apache.wicket.ajax.markup.html.form.AjaxFallbackButton.onSubmit(AjaxFallbackButton.java:135)
>>    at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
>>    at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>>    at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>>    at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>>    at java.lang.reflect.Method.invoke(Method.java:483)
>>    at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>>    at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>    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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>>    at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>>    at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
>>    at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>>    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>>    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>>    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>>    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
>>    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
>>    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>>    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>>    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>>    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
>>    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
>>    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
>>    at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
>>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
>>    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
>>    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>>    at java.lang.Thread.run(Thread.java:745)
>> 
>> Complete stack:
>> 
>> 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)
>>    at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>    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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>> 
>> java.lang.reflect.InvocationTargetException
>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>    at java.lang.reflect.Method.invoke(Method.java:483)
>>    at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>>    at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>>    at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>>    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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>> 
>> 
>> 
>> 
>>> Am 16.02.2015 um 21:55 schrieb Tobias Soloschenko <to...@googlemail.com>:
>>> 
>>> Hi,
>>> 
>>> please provide a StackTrace, so that we can see whats going on. :-)
>>> 
>>> Thank you.
>>> 
>>> kind regards
>>> 
>>> Tobias
>>> 
>>>> Am 16.02.15 um 21:27 schrieb Chris:
>>>> Hi all,
>>>> 
>>>> When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.
>>>> 
>>>> What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?
>>>> 
>>>> Thanks, Chris
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket application - no ajax without internet connection

Posted by Tobias Soloschenko <to...@googlemail.com>.
Hi,

I had a look at AjaxFallBackButton L135 - nothing there what could explain your exception - what is going on in your VotingPanel L51?

kind regards

Tobias

> Am 16.02.2015 um 22:07 schrieb Chris <ch...@gmx.at>:
> 
> Hi Tobias,
> 
> I am not sure if this helps a lot ;) Some links (clickable div containers, etc.) even do not work at all without internet connection and do not throw an exception.
> 
> Root cause:
> 
> java.lang.NullPointerException
>     at tripplanner.mycompany.panels.VotingPanel$2.onSubmit(VotingPanel.java:51)
>     at org.apache.wicket.ajax.markup.html.form.AjaxFallbackButton.onSubmit(AjaxFallbackButton.java:135)
>     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
>     at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
>     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
>     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
>     at java.lang.reflect.Method.invoke(Method.java:483)
>     at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
>     at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
>     at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
>     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
>     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
>     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
>     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
>     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
>     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
>     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
>     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
>     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
>     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
>     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
>     at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
>     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
>     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
>     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
>     at java.lang.Thread.run(Thread.java:745)
> 
> Complete stack:
> 
> 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)
>     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> 
> java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>     at java.lang.reflect.Method.invoke(Method.java:483)
>     at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
>     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
>     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
>     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
> 
> 
> 
> 
>> Am 16.02.2015 um 21:55 schrieb Tobias Soloschenko <to...@googlemail.com>:
>> 
>> Hi,
>> 
>> please provide a StackTrace, so that we can see whats going on. :-)
>> 
>> Thank you.
>> 
>> kind regards
>> 
>> Tobias
>> 
>>> Am 16.02.15 um 21:27 schrieb Chris:
>>> Hi all,
>>> 
>>> When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.
>>> 
>>> What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?
>>> 
>>> Thanks, Chris
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket application - no ajax without internet connection

Posted by Chris <ch...@gmx.at>.
Hi Tobias,

I am not sure if this helps a lot ;) Some links (clickable div containers, etc.) even do not work at all without internet connection and do not throw an exception.

Root cause:

java.lang.NullPointerException
     at tripplanner.mycompany.panels.VotingPanel$2.onSubmit(VotingPanel.java:51)
     at org.apache.wicket.ajax.markup.html.form.AjaxFallbackButton.onSubmit(AjaxFallbackButton.java:135)
     at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1266)
     at org.apache.wicket.markup.html.form.Form.process(Form.java:938)
     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:770)
     at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:703)
     at java.lang.reflect.Method.invoke(Method.java:483)
     at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)
     at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201)
     at org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.java:159)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:644)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
     at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
     at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:537)
     at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1081)
     at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:658)
     at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
     at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
     at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
     at java.lang.Thread.run(Thread.java:745)

Complete stack:

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)
     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)

java.lang.reflect.InvocationTargetException
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
     at java.lang.reflect.Method.invoke(Method.java:483)
     at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
     at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:243)
     at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236)
     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.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259)




> Am 16.02.2015 um 21:55 schrieb Tobias Soloschenko <to...@googlemail.com>:
> 
> Hi,
> 
> please provide a StackTrace, so that we can see whats going on. :-)
> 
> Thank you.
> 
> kind regards
> 
> Tobias
> 
> Am 16.02.15 um 21:27 schrieb Chris:
>> Hi all,
>> 
>> When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.
>> 
>> What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?
>> 
>> Thanks, Chris
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


Re: Wicket application - no ajax without internet connection

Posted by Chris <ch...@gmx.at>.
It has to do something with the settings of Safari, with Firefox it works even without Internet connection.




> Am 16.02.2015 um 21:55 schrieb Tobias Soloschenko <to...@googlemail.com>:
> 
> Hi,
> 
> please provide a StackTrace, so that we can see whats going on. :-)
> 
> Thank you.
> 
> kind regards
> 
> Tobias
> 
> Am 16.02.15 um 21:27 schrieb Chris:
>> Hi all,
>> 
>> When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.
>> 
>> What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?
>> 
>> Thanks, Chris
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket application - no ajax without internet connection

Posted by Tobias Soloschenko <to...@googlemail.com>.
Hi,

please provide a StackTrace, so that we can see whats going on. :-)

Thank you.

kind regards

Tobias

Am 16.02.15 um 21:27 schrieb Chris:
> Hi all,
>
> When running a Wicket application, that is deployed locally on Tomcat, and Internet being turned off, Ajax is not working and I am getting null pointer exception when calling the target methods. With Internet being enabled, it works without problems.
>
> What is the cause for this behaviour and how can I change the settings so that it works without Internet connection on the local Tomcat?
>
> Thanks, Chris
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org