{
"id": "122089",
"key": "TIMOB-16257",
"fields": {
"issuetype": {
"id": "1",
"description": "A problem which impairs or prevents the functions of the product.",
"name": "Bug",
"subtask": false
},
"project": {
"id": "10153",
"key": "TIMOB",
"name": "Titanium SDK/CLI",
"projectCategory": {
"id": "10100",
"description": "Titanium and related SDKs used in application development",
"name": "Client"
}
},
"fixVersions": [
{
"id": "19906",
"description": "",
"name": "Release 6.3.0",
"archived": false,
"released": true,
"releaseDate": "2017-11-01"
}
],
"resolution": {
"id": "1",
"description": "A fix for this issue is checked into the tree and tested.",
"name": "Fixed"
},
"resolutiondate": "2017-10-25T18:56:02.000+0000",
"created": "2013-11-05T16:28:55.000+0000",
"priority": {
"name": "Medium",
"id": "3"
},
"labels": [
"android",
"scrollview",
"ui"
],
"versions": [],
"issuelinks": [],
"assignee": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"updated": "2017-10-26T22:15:29.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": "10202",
"name": "Android",
"description": "Android Platform"
}
],
"description": "Hi all, after upgrading to Alloy 1.2.2 Ti.UI.ScrollView.setScrollingEnabled results in and Uncaught Java Exception with no further details.\r\n\r\nAlso, the same result happens if statically setting the property.\r\n\r\n{code:xml}\r\n\r\n\t\r\n\r\n{code}\r\n\r\n{code:javascript}\r\n// Both of these return the same error\r\n$.getView().setScrollingEnabled(true);\r\n$.getView().scrollingEnabled = true;\r\n{code}\r\n\r\nLee.",
"attachment": [],
"flagged": false,
"summary": "Ti.UI.ScrollView.setScrollingEnabled results in Java Exception",
"creator": {
"name": "lsdriscoll",
"key": "lsdriscoll",
"displayName": "Lee Driscoll",
"active": true,
"timeZone": "Europe/London"
},
"subtasks": [],
"reporter": {
"name": "mpmiranda",
"key": "mpmiranda",
"displayName": "Mauro Parra-Miranda",
"active": true,
"timeZone": "America/Mexico_City"
},
"environment": "Titanium SDK 3.1.3.GA\r\nAlloy 1.2.2\r\nAndroid/Mobile Web Deployment\r\n-----\r\nDebian 7",
"comment": {
"comments": [
{
"id": "289189",
"author": {
"name": "bijuexalture",
"key": "bijuexalture",
"displayName": "Biju pm",
"active": true,
"timeZone": "Asia/Kolkata"
},
"body": "PR:-\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5244",
"updateAuthor": {
"name": "bijuexalture",
"key": "bijuexalture",
"displayName": "Biju pm",
"active": true,
"timeZone": "Asia/Kolkata"
},
"created": "2014-01-22T07:13:19.000+0000",
"updated": "2014-01-22T07:13:19.000+0000"
},
{
"id": "429474",
"author": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "I'm able to reproduce this crash in a Classic App with the following lines of code in the \"app.js\" file\r\n\r\n{code:java}\r\nvar scrollView = Ti.UI.createScrollView({});\r\nscrollView.scrollingEnabled = true;\r\n{code}\r\n\r\nAnd with the \"tiapp.xml\" file set up to not run on the main UI thread.\r\n_(This crash will never happen if running from the main thread.)_\r\n\r\n{code:xml}\r\n\r\n\r\n false\r\n\r\n{code}\r\n\r\n*Result:*\r\nThe following exception gets outputted to the Android log...\r\n\r\n{code}\r\n[ERROR] : TiApplication: (main) [63,63] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing/com.appcelerator.testing.ClassicapptestActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.HashMap; Titanium 7.0.0,2017/10/23 15:17,undefined\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.appcelerator.testing/com.appcelerator.testing.ClassicapptestActivity}: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.HashMap\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.-wrap12(ActivityThread.java)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:6119)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n[ERROR] : TiApplication: Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.util.HashMap\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.ScrollViewProxy.handleMessage(ScrollViewProxy.java:107)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.common.TiMessenger.dispatchMessage(TiMessenger.java:394)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.common.TiMessenger.dispatchPendingMessages(TiMessenger.java:379)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.common.TiMessenger$2.getResult(TiMessenger.java:257)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.common.TiMessenger.sendBlockingMessage(TiMessenger.java:291)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.common.TiMessenger.sendBlockingRuntimeMessage(TiMessenger.java:191)\r\n[ERROR] : TiApplication: \tat org.appcelerator.kroll.KrollProxy.callPropertySync(KrollProxy.java:725)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity$4.run(TiBaseActivity.java:1203)\r\n[ERROR] : TiApplication: \tat android.app.Activity.runOnUiThread(Activity.java:5866)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.dispatchCallback(TiBaseActivity.java:1200)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:687)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:169)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:161)\r\n[ERROR] : TiApplication: \tat android.app.Activity.performCreate(Activity.java:6679)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)\r\n[ERROR] : TiApplication: \t... 9 more\r\n{code}\r\n\r\n*Cause:*\r\nThere is message ID collision between the TiViewProxy and the ScrollViewProxy. The \"MSG_FIRST_ID\" should start from \"TiViewProxy.MSG_LAST_ID\", not \"KrollProxy.MSG_LAST_ID\"...\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/master/android/modules/ui/src/java/ti/modules/titanium/ui/ScrollViewProxy.java#L39\r\n",
"updateAuthor": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-24T01:36:30.000+0000",
"updated": "2017-10-24T01:42:25.000+0000"
},
{
"id": "429534",
"author": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/9550\r\nPR (6.3.x): https://github.com/appcelerator/titanium_mobile/pull/9551",
"updateAuthor": {
"name": "jquick",
"key": "jquick",
"displayName": "Joshua Quick",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-24T23:19:33.000+0000",
"updated": "2017-10-24T23:19:33.000+0000"
},
{
"id": "429577",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "FR passed for both master & backport PR.",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-25T18:55:55.000+0000",
"updated": "2017-10-25T18:55:55.000+0000"
},
{
"id": "429595",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Master PR merged.\r\nWaiting for 6.3.0 PR to get merge enabled.",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-25T21:06:53.000+0000",
"updated": "2017-10-25T21:06:53.000+0000"
},
{
"id": "429681",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "PR for backport merged.",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-26T17:58:19.000+0000",
"updated": "2017-10-26T17:58:19.000+0000"
},
{
"id": "429708",
"author": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"body": "Verified the fix in SDK 6.3.0.v20171026120401 & 7.0.0.v20171025141436.\r\n\r\nClosing.\r\n\r\nStudio Ver: 4.10.0.201709271713\r\nOS Ver: 10.12.3\r\nXcode Ver: Xcode 8.3.3\r\nAppc NPM: 4.2.10-2\r\nAppc CLI: 6.3.0-master.15\r\nTi CLI Ver: 5.0.14\r\nAlloy Ver: 1.10.6\r\nNode Ver: 7.10.1\r\nJava Ver: 1.8.0_101\r\nDevices: ⨠google Nexus 5 â Android 6.0.1\r\n⨠google Pixel â Android 7.1.1",
"updateAuthor": {
"name": "lchoudhary",
"key": "lchoudhary",
"displayName": "Lokesh Choudhary",
"active": true,
"timeZone": "America/Los_Angeles"
},
"created": "2017-10-26T22:15:22.000+0000",
"updated": "2017-10-26T22:15:22.000+0000"
}
],
"maxResults": 10,
"total": 10,
"startAt": 0
}
}
}