wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: AjaxFallbackLink - target NULL
Date Sun, 09 Aug 2015 20:30:48 GMT
Once you prepare a quickstart app we will be able to debug it and help you.

In the meantime think why you use AjaxFallbackLink in this use case and why
there is no check for target==null?
As you probably know AjaxFallbackLink is designed for cases when JS is
disabled in the browser, so your app works both with and without JS.
Apparently your app is not quite prepared for the "without JS" case.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sun, Aug 9, 2015 at 11:14 PM, PDiefent <pdiefent@gmail.com> wrote:

> Hi Sven, I don't get any messages in the browsers console. It is a Java
> exception and every AjaxFallbackLink is affected:
> 22:14:59.614 [http-nio-8037-exec-3] ERROR
>
> org.apache.wicket.DefaultExceptionMapper.mapUnexpectedExceptions(DefaultExceptionMapper.java:170)
> - Unexpected error occurred
> org.apache.wicket.WicketRuntimeException: Method onLinkClicked of interface
> org.apache.wicket.markup.html.link.ILinkListener targeted at
> [AjaxFallbackLink [Component id = filter]] on component [AjaxFallbackLink
> [Component id = filter]] threw an exception
>         at
>
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
> ~[wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216)
> ~[wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:241)
> ~[wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234)
> ~[wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.core.request.handler.RequestSettingRequestHandler.respond(RequestSettingRequestHandler.java:78)
> ~[wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:865)
> ~[wicket-core-7.0.0.jar:7.0.0]
>         at
>
> org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
> ~[wicket-request-7.0.0.jar:na]
>         at
> org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265)
> [wicket-core-7.0.0.jar:7.0.0]
>         at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222)
> [wicket-core-7.0.0.jar:7.0.0]
>         at
>
> org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)
> [wicket-core-7.0.0.jar:7.0.0]
>         at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261)
> [wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203)
> [wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284)
> [wicket-core-7.0.0.jar:na]
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:617)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
> [catalina.jar:8.0.24]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)
> [catalina.jar:8.0.24]
>         at
>
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
> [tomcat-coyote.jar:8.0.24]
>         at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
> [tomcat-coyote.jar:8.0.24]
>         at
>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1527)
> [tomcat-coyote.jar:8.0.24]
>         at
>
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1484)
> [tomcat-coyote.jar:8.0.24]
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_51]
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_51]
>         at
>
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> [tomcat-util.jar:8.0.24]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_51]
> Caused by: java.lang.reflect.InvocationTargetException: null
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[na:1.8.0_51]
>         at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[na:1.8.0_51]
>         at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[na:1.8.0_51]
>         at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_51]
>         at
>
> org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
> ~[wicket-core-7.0.0.jar:na]
>         ... 30 common frames omitted
> Caused by: java.lang.NullPointerException: null
>         at
>
> org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow.show(ModalWindow.java:367)
> ~[wicket-extensions-7.0.0.jar:na]
>         at
> de.widi.webcd.grid.TableOptionsPanel$3.onClick(TableOptionsPanel.java:86)
> ~[TableOptionsPanel$3.class:na]
>         at
>
> org.apache.wicket.ajax.markup.html.AjaxFallbackLink.onClick(AjaxFallbackLink.java:117)
> ~[wicket-core-7.0.0.jar:na]
>         at
> org.apache.wicket.markup.html.link.Link.onLinkClicked(Link.java:190)
> ~[wicket-core-7.0.0.jar:7.0.0]
>         ... 35 common frames omitted
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/AjaxFallbackLink-target-NULL-tp4671752p4671755.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message