Re: Gmap3 NullPointerException

2013-08-08 Thread Martin Grigorov
Hi,


On Wed, Aug 7, 2013 at 10:58 PM, Vishal Popat
vishal.po...@cipriati.co.ukwrote:

 Hi all,

 I have set up this to report errors
 this.getRequestCycleListeners().add(new AbstractRequestCycleListener() {
 @Override
 public IRequestHandler onException(RequestCycle cycle,
 Exception e) {
 return new RenderPageRequestHandler(new PageProvider(new
 InternalError(e)));
 }
 });

 One of the types of errors I am continuously being reported is below. I
 cannot understand how to recreate this or why it is occurring.
 Any help would be appreciated.

 I am using Gmap3 6.7.0 with Wicket 6.7.0
 The line seems to refers to
 final String overlayId =
 request.getRequestParameters().getParameterValue(overlay.overlayId).toString().replace(overlay,
 );


For me this means that
request.getRequestParameters().getParameterValue(overlay.overlayId).toString()
returns null, and replace() fails with NPE.
Create a Pull Request and it will be in 6.10.



 Regards
 VIshal

 Method onRequest of interface org.apache.wicket.behavior.IBehaviorListener
 targeted at org.wicketstuff.gmap.GMap$OverlayListener@15f6c99 on
 component [Map [Component id = map]] threw an exception

 org.apache.wicket.WicketRuntimeException: Method onRequest of interface
 org.apache.wicket.behavior.IBehaviorListener targeted at
 org.wicketstuff.gmap.GMap$OverlayListener@15f6c99 on component [Map
 [Component id = map]] threw an exception
 at
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:268)
 at
 org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241)
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:247)
 at
 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:226)
 at
 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:854)
 at
 org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64)
 at
 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:254)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:211)
 at
 org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:282)
 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.WicketFilter.doFilter(WicketFilter.java:282)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at
 org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
 at
 org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at
 org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
 at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654)
 at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)
 at java.lang.Thread.run(Thread.java:662)
 Caused by: java.lang.reflect.InvocationTargetException
 at sun.reflect.GeneratedMethodAccessor219.invoke(Unknown Source)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)
 at
 org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258)
 ... 26 more
 Caused by: java.lang.NullPointerException
 at org.wicketstuff.gmap.GMap$OverlayListener.respond(GMap.java:957)
 at
 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:617)
 ... 30 more

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

Re: Gmap3 NullPointerException

2013-08-08 Thread vp143
Hi Martin,

I am not sure on the resolution to this. I do not know why overlay.overlayId
would be null?

Regards
Vishal



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Gmap3-NullPointerException-tp4660777p4660781.html
Sent from the Users forum mailing list archive at Nabble.com.

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



Re: Gmap3 NullPointerException

2013-08-08 Thread Martin Grigorov
On Thu, Aug 8, 2013 at 10:48 AM, vp143 vishal.po...@cipriati.co.uk wrote:

 Hi Martin,

 I am not sure on the resolution to this. I do not know why
 overlay.overlayId
 would be null?


Me too.
Put a breakpoint and see what other parameters are sent to the server.
Maybe it is misspelled or something.



 Regards
 Vishal



 --
 View this message in context:
 http://apache-wicket.1842946.n4.nabble.com/Gmap3-NullPointerException-tp4660777p4660781.html
 Sent from the Users forum mailing list archive at Nabble.com.

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