{ "id": "149435", "key": "AC-197", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-07-06T02:05:00.000+0000", "created": "2015-07-04T01:50:50.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2015-07-06T02:05:00.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." } ], "description": "Hi Experts, \r\n\r\nI am quite new to Titanium and Appcelerator, is studying a map rendering module: sc.mapsforge: https://github.com/snowciety/sc.mapsforge\r\nIt is going smoothly when I was creating createMapsforgeView(), mapView object is not null:\r\n{color:#14892c}Ti.API.info('mapView= ' + JSON.stringify(mapView));\r\n[INFO] : mapView={\"bubbleParent\":true,\"enabled\":true,\"visible\":true,\"backgroundRepeat\":false,\"zoomLevel\":0,\"children\":[],\"rect\":{\"height\":0,\"y\":0,\"x\":0,\"width\":0},\"apiName\":\"Ti.Proxy\",\"size\":{\"height\":0,\"y\":0,\"width\":0,\"x\":0},\"keepScreenOn\":false,\"centerLatlng\":null,\"scalebar\":true,\"minZoom\":12,\"maxZoom\":18,\"debug\":true}{color}\r\n\r\nBut I cannot make a second call to methods like mapview.setCenterLatlng(), setZoomLevel()\r\n\r\nI am still not familiar with this kind of error, what is the root cause? from module or from SDK internal ?\r\n\r\nHere is my log from appcelerator studio console: \r\n---------------------------------- Start application log -----------------------------------------------------\r\n[INFO] : TiApplication: (main) [0,0] checkpoint, app created.\r\n[INFO] : TiApplication: (main) [207,207] Titanium 4.0.0 (2015/05/18 15:42 9239ff9)\r\n[INFO] : TiApplication: (main) [58,265] Titanium Javascript runtime: v8\r\n[INFO] : Project built successfully in 1m 10s 636ms\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[WARN] : V8Object: (KrollRuntimeThread) [165,165] Runtime disposed, cannot set property 'userAgent'\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 11.129MB for 1536016-byte allocation\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 13.734MB for 2731536-byte allocation\r\n[INFO] : TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = app.map.TestActivity@42878838\r\n{color:#f6c342}[WARN] : W/System.err: java.lang.NullPointerException\r\n[WARN] : W/System.err: \tat sc.mapsforge.MapsforgeViewProxy.createCircle(MapsforgeViewProxy.java:454)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.nativeRunModule(Native Method)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.doRunModule(V8Runtime.java:177)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime.handleMessage(KrollRuntime.java:299)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.runtime.v8.V8Runtime.handleMessage(V8Runtime.java:203)\r\n[WARN] : W/System.err: \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n[WARN] : W/System.err: \tat android.os.Looper.loop(Looper.java:137)\r\n[WARN] : W/System.err: \tat org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112){color}\r\n[INFO] : I/Adreno200-EGL: : EGL 1.4 QUALCOMM Build: Iabe52cfaeae4c5fab1acacfe6f056ba15fa93274\r\n{color:#d04437}[ERROR] : TiExceptionHandler: (main) [172,181] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] : TiExceptionHandler: (main) [0,181] - In app.js:90,9\r\n[ERROR] : TiExceptionHandler: (main) [0,181] - Message: Uncaught Error: Java Exception occurred\r\n[ERROR] : TiExceptionHandler: (main) [0,181] - Source: mapView.createCircle({\r\n[ERROR] : V8Exception: Exception occurred at app.js:90: Uncaught Error: Java Exception occurred\r\n[INFO] : dalvikvm: Could not find method android.view.ViewGroup.onNestedScrollAccepted, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onNestedScrollAccepted{color}\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 11932: Landroid/view/ViewGroup;.onNestedScrollAccepted (Landroid/view/View;Landroid/view/View;I)V\r\n[INFO] : dalvikvm: Could not find method android.view.ViewGroup.onStopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.onStopNestedScroll\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 11938: Landroid/view/ViewGroup;.onStopNestedScroll (Landroid/view/View;)V\r\n[INFO] : dalvikvm: Could not find method android.support.v7.internal.widget.ActionBarOverlayLayout.stopNestedScroll, referenced from method android.support.v7.internal.widget.ActionBarOverlayLayout.setHideOnContentScrollEnabled\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 9503: Landroid/support/v7/internal/widget/ActionBarOverlayLayout;.stopNestedScroll ()V\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 525: Landroid/content/res/TypedArray;.getChangingConfigurations ()I\r\n[WARN] : dalvikvm: VFY: unable to resolve virtual method 547: Landroid/content/res/TypedArray;.getType (I)I\r\n[INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getChangingConfigurations, referenced from method android.support.v7.internal.widget.TintTypedArray.getChangingConfigurations\r\n[INFO] : dalvikvm: Could not find method android.content.res.TypedArray.getType, referenced from method android.support.v7.internal.widget.TintTypedArray.getType\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 27.827MB for 16001296-byte allocation\r\n[INFO] : I/dalvikvm-heap: Grow heap (frag case) to 43.055MB for 16001296-byte allocation", "attachment": [ { "id": "56085", "filename": "mapsforge.log", "author": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-04T01:33:04.000+0000", "size": 21610, "mimeType": "text/plain" }, { "id": "56084", "filename": "sc.mapsforge-android-0.3.zip", "author": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-04T01:34:47.000+0000", "size": 341261, "mimeType": "application/zip" } ], "flagged": false, "summary": "NullPointerException when calling second method in a custom module ", "creator": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "appcelerator studio : build: 4.0.1.201506021908\r\nOS: windows 7 x64\r\nTitanium sdk: win32/4.0.0.GA\r\nDevice: Nexus 7 Android 4.3", "comment": { "comments": [ { "id": "356923", "author": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry friends, I have fixed this issue by changing my classpath in android building script\r\nwould you please close it?", "updateAuthor": { "name": "weixing.sun@gmail.com", "key": "weixing.sun@gmail.com", "displayName": "weixing sun", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-04T15:06:36.000+0000", "updated": "2015-07-04T15:06:36.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }