View Full Version : Map example JVM Error 104 Uncaught: NullPointerException

3 Jun 2011, 6:01 AM
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:

<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." 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>

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: NullPointerException

Has anyone got any ideas what might cause this??

Hanni Sullivan
15 Jun 2011, 4:47 AM
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 (http://dev.sencha.com/deploy/touch/examples/map/)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. ;)

15 Jun 2011, 6:51 AM
same problem too /:)

19 Nov 2012, 10:59 AM
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!