{ "id": "62664", "key": "TIMOB-2032", "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": "11226", "name": "Release 1.5.0 M01", "archived": true, "released": true, "releaseDate": "2010-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:57:52.000+0000", "created": "2011-04-15T03:08:37.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "defect" ], "versions": [], "issuelinks": [], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:57:52.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": "{html}
Example trace (this is with JS compiling off):
\n\n\nE/AndroidRuntime( 453): Uncaught handler: thread kroll$5 exiting due to uncaught exception\nE/AndroidRuntime( 453): java.lang.VerifyError: ti.modules.titanium.network.TiHTTPClient\nE/AndroidRuntime( 453): at ti.modules.titanium.network.HTTPClientProxy.<init>(Unknown Source)\nE/AndroidRuntime( 453): at ti.modules.titanium.network.NetworkModuleBindingGen$1.invoke(Unknown Source)\nE/AndroidRuntime( 453): at org.appcelerator.kroll.KrollMethod.call(Unknown Source)\nE/AndroidRuntime( 453): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)\nE/AndroidRuntime( 453): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\nE/AndroidRuntime( 453): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\nE/AndroidRuntime( 453): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\nE/AndroidRuntime( 453): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)\nE/AndroidRuntime( 453): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\nE/AndroidRuntime( 453): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\nE/AndroidRuntime( 453): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)\nE/AndroidRuntime( 453): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)\nE/AndroidRuntime( 453): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)\nE/AndroidRuntime( 453): at android.os.Handler.dispatchMessage(Handler.java:95)\nE/AndroidRuntime( 453): at android.os.Looper.loop(Looper.java:123)\nE/AndroidRuntime( 453): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)
\n
(from [04cd3d0fd7def7e1b771302c27bde81da49564f8])\n[#2032] A simple test method for throwing a\nthrowabe \nhttp://github.com/appcelerator/titanium_mobile/commit/04cd3d0fd7def...
You can test with a simple app.js now:
\n\nTitanium.testThrow();
\n
\nProduces...
\n\n\nE/AndroidRuntime( 1003): Uncaught handler: thread kroll$1 exiting due to uncaught exception\nE/AndroidRuntime( 1003): java.lang.Error: Testing throwing throwables\nE/AndroidRuntime( 1003): at ti.modules.titanium.TitaniumModule.testThrow(Unknown Source)\nE/AndroidRuntime( 1003): at ti.modules.titanium.TitaniumModuleBindingGen$10.invoke(Unknown Source)\nE/AndroidRuntime( 1003): at org.appcelerator.kroll.KrollMethod.call(Unknown Source)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\nE/AndroidRuntime( 1003): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\nE/AndroidRuntime( 1003): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)\nE/AndroidRuntime( 1003): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)\nE/AndroidRuntime( 1003): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)\nE/AndroidRuntime( 1003): at android.os.Handler.dispatchMessage(Handler.java:95)\nE/AndroidRuntime( 1003): at android.os.Looper.loop(Looper.java:123)\nE/AndroidRuntime( 1003): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)
\n
Tested ok with 1.5.0 408f5ab under 1.6 and 2.2 emulators:
\n\nE/AndroidRuntime( 289): java.lang.Error: Testing throwing throwables\nE/AndroidRuntime( 289): at ti.modules.titanium.TitaniumModule.testThrow(TitaniumModule.java:83)\nE/AndroidRuntime( 289): at ti.modules.titanium.TitaniumModuleBindingGen$10.invoke(TitaniumModuleBindingGen.java:361)\nE/AndroidRuntime( 289): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:46)\nE/AndroidRuntime( 289): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)\nE/AndroidRuntime( 289): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)\nE/AndroidRuntime( 289): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)\nE/AndroidRuntime( 289): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)\nE/AndroidRuntime( 289): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)\nE/AndroidRuntime( 289): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)\nE/AndroidRuntime( 289): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)\nE/AndroidRuntime( 289): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:193)\nE/AndroidRuntime( 289): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:218)\nE/AndroidRuntime( 289): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:115)\nE/AndroidRuntime( 289): at android.os.Handler.dispatchMessage(Handler.java:95)\nE/AndroidRuntime( 289): at android.os.Looper.loop(Looper.java:123)
\n
just adding a responsible party. Nothing's changed.