0

Exception on Google-Maps in ZkPetShop Example Application online.

asked 2008-10-12 11:11:42 +0800

beginner gravatar image beginner
123 2

Hello,

i have experimented with googlemaps. I encountered an error that's only occures with my Firefox when i click on the map. It seems to occure only with my special Firefox Installation.

On my Firefox there pops up an Window with the message "For Input String: 186.5" (for example)

I encountered the Exception-Stack:

java.lang.NumberFormatException: For input string: "323.5"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:456)
	at java.lang.Integer.parseInt(Integer.java:497)
	at org.zkoss.gmaps.MapClickCommand.process(MapClickCommand.java:61)
	at org.zkoss.zk.au.Command.process(Command.java:131)
	at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1173)
	at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:966)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:484)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:372)
	at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:381)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
	at java.lang.Thread.run(Thread.java:619)

The error comes up on my Firefox Version 3.0.1 (Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1). My Add-Ons are Firebug 1.2, Google Toolbar for Firefox 3.1.20080730" and NoScript 1.8.2.8. My Operating System is Microsoft Vista.

I tried the same with another Firefox on a Windows-XP-Environment. Here this error won't come up.

I reproduced this although on the ZkPetShop Example Application online a view minutes ago. Maybe the Exception can be found in the logs.

Greetings,
beginner

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2008-10-13 00:33:52 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Thanks. Please download gmapsz version 2.0_10 and try again.

http://prdownloads.sourceforge.net/zk1/zk-Gmaps-bin-2.0_10.zip?download

link publish delete flag offensive edit

answered 2008-10-13 17:00:03 +0800

beginner gravatar image beginner
123 2

Hello henrichen,

thanks for your tip. I downloaded the new version and copied it over the existing in the lib-Folder. But the same phaenomen comes up. I think it was the same library i used before, because it has the same File-Size.

Thanks an greetings,
beginner

link publish delete flag offensive edit

answered 2008-10-15 08:10:05 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

This is a bug. When calculate the click x,y, FF3 can return double value. I have post it to Bug list. Please follow this track:

https://sourceforge.net/tracker/?func=detail&atid=785191&aid=2167700&group_id=152762

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-10-12 11:11:42 +0800

Seen: 292 times

Last updated: Oct 15 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More