-
3 Jun 2011 6:01 AM #1
Map example JVM Error 104 Uncaught: NullPointerException
Map example JVM Error 104 Uncaught: NullPointerException
Hi,
I am not sure if this is the right place to post but maybe someone can help...
I used PhoneGap to package the Map example that comes in the Sencha SDK. The only changes I made was to add and change a few of the javascript and css locations as below:
When I load it in the BlackBerry simulator all seems ok except after a couple of seconds the google map causes a : JVM Error 104 Uncaught: NullPointerExceptionHTML Code:<head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="viewport" id="viewport" content="initial-scale=1.0,user-scalable=no"> <script src="javascript/json2.js" type="text/javascript"></script> <script src="javascript/phonegap.0.9.5.1.min.js" type="text/javascript"></script> <link rel="stylesheet" href="sencha-touch.css" type="text/css"> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> <script type="text/javascript" src="sencha-touch.js"></script> <script type="text/javascript" src="plugins/GmapTracker.js"></script> <script type="text/javascript" src="plugins/GmapTraffic.js"></script> <script type="text/javascript" src="index.js"></script> <title>Map Test</title> </head>
Has anyone got any ideas what might cause this??
Thanks!
-
15 Jun 2011 4:47 AM #2
I'm stuck with the same problem. It seems to be caused by PhoneGap itself and not by SenchaTouch or Google Maps. The Sencha Touch Maps example can be opened with the browser of the BlackBerry 9800 Simulator without any problems.
I'm currently trying to figure out where exactly the NullPointerException is happening but right now this proves to be quite difficult. Debugging a BlackBerry PhoneGap is as difficult and maddening as invoking an elder being.
Last edited by Hanni Sullivan; 15 Jun 2011 at 4:57 AM. Reason: Mispelled BlackBerry
-
15 Jun 2011 6:51 AM #3
-
19 Nov 2012 10:59 AM #4
Same problem here!
Same problem here!
I get this error when loading a google map and markers are put in the map during compile time. It seems to be always happening after a few seconds after the page opens in called browser. I've rewrote for different versions of phonegap (1.6, 1.8, 2.0,2.2) and same result for blackberry situation. External browser doesn't crash so it is something about phonegap for blackberry.http://www.sencha.com/forum/images/smilies/17.gif Anyone found a way around this? everything is running as expected for Andriod and iOS with same html page.Any workarounds appreciated!


Reply With Quote