{ "id": "62712", "key": "TIMOB-2080", "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": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:01.000+0000", "created": "2011-04-15T03:09:53.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "android", "android_refactor", "error", "regression", "runtime" ], "versions": [], "issuelinks": [], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:01.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}

g1 running 1.6 and the sim running 2.2 Ti Mobile sdk\n1.5.0.02c264
\ntest cases listed below:

\n

run time error on xhr xml data test case
\n1.Platform>XHR>XML Data

\n

results:
\nE/KrollCallback( 8248): (kroll$5) [3002,228480] ECMA Error\nevaluating source, invocation: [callMethod\nNetwork.HTTPClient.(anonymous)\norg.appcelerator.titanium.kroll.KrollCallback@43937c30], message:\nTypeError: Cannot call method \"getElementsByTagName\" of undefined\n(app://examples/xhr_xml.js#6)
\nE/KrollCallback( 8248): org.mozilla.javascript.EcmaError:\nTypeError: Cannot call method \"getElementsByTagName\" of undefined\n(app://examples/xhr_xml.js#6)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
\nE/KrollCallback( 8248): at script(app://examples/xhr_xml.js:6)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollCallback( 8248): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
\nE/KrollCallback( 8248): at\norg.appcelerator.titanium.kroll.KrollCallback$1.run(Unknown\nSource)
\nE/KrollCallback( 8248): at\nandroid.os.Handler.handleCallback(Handler.java:587)
\nE/KrollCallback( 8248): at\nandroid.os.Handler.dispatchMessage(Handler.java:92)
\nE/KrollCallback( 8248): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollCallback( 8248): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown\nSource)
\nI/Process ( 8248): Sending signal. PID: 8248 SIG: 9
\nregression

\n
\n

XML Dom genrates runtime errors
\n1.Platform>XML DOM

\n

results:
\nD/dalvikvm( 8551): GC freed 4970 objects / 256152 bytes in\n158ms
\nE/KrollContext( 8551): (kroll$9) [2657,78802] ECMA Error evaluating\nsource: TypeError: Cannot call method \"getElementsByTagName\" of\nundefined (app://examples/xml_dom.js#21)
\nE/KrollContext( 8551): org.mozilla.javascript.EcmaError: TypeError:\nCannot call method \"getElementsByTagName\" of undefined\n(app://examples/xml_dom.js#21)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
\nE/KrollContext( 8551): at script(app://examples/xml_dom.js:21)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
\nE/KrollContext( 8551): at\norg.mozilla.javascript.Context.evaluateReader(Context.java:1142)
\nE/KrollContext( 8551): at\norg.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown\nSource)
\nE/KrollContext( 8551): at\norg.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown\nSource)
\nE/KrollContext( 8551): at\norg.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown\nSource)
\nE/KrollContext( 8551): at\nandroid.os.Handler.dispatchMessage(Handler.java:95)
\nE/KrollContext( 8551): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollContext( 8551): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown\nSource)

\n

regression

\n
\n

SOAP Mashup - runtime error (getElementsByTagName)
\n1.Mashups>SOAP
\n2.wait a few seconds

\n

/KrollCallback( 8824): (kroll$9) [1652,217927] ECMA Error\nevaluating source, invocation: [callMethod\nNetwork.HTTPClient.(anonymous)\norg.appcelerator.titanium.kroll.KrollCallback@43ad2a70], message:\nTypeError: Cannot call method \"getElementsByTagName\" of undefined\n(app://examples/soap.js#26) E/KrollCallback( 8824):\norg.mozilla.javascript.EcmaError: TypeError: Cannot call method\n\"getElementsByTagName\" of undefined (app://examples/soap.js#26)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
\nE/KrollCallback( 8824): at script(app://examples/soap.js:26)
\nE/KrollCallback( 8824): at\nscript(file:///android_asset/Resources/examples/suds.js:149)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
\nE/KrollCallback( 8824): at\norg.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
\nE/KrollCallback( 8824): at\norg.appcelerator.titanium.kroll.KrollCallback$1.run(Unknown\nSource)
\nE/KrollCallback( 8824): at\nandroid.os.Handler.handleCallback(Handler.java:587)
\nE/KrollCallback( 8824): at\nandroid.os.Handler.dispatchMessage(Handler.java:92)
\nE/KrollCallback( 8824): at\nandroid.os.Looper.loop(Looper.java:123)
\nE/KrollCallback( 8824): at\norg.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown\nSource)
\nD/dalvikvm( 8878): GC freed 6051 objects / 380744 bytes in\n310ms

\n

--

\n

XML RSS test case genrates unexpected alert
\n1.Platform>XML RSS
\n2.results: an alert appears, wording is \"Cannot call method\n\"getElementsByTagName\" of undefined

\n

regression

{html}", "attachment": [], "flagged": false, "summary": "Android: getElementsByTagName runtime error ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "127433", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

(from [cfee149aa90a1c668f26d14586eb3204df981c99])\nsome getter methods on DocumentProxy weren't exposed as properties\n[#2080 state:fixed-in-qa] \nhttp://github.com/appcelerator/titanium_mobile/commit/cfee149aa90a1...

{html}", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:09:54.000+0000", "updated": "2011-04-15T03:09:54.000+0000" }, { "id": "127434", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

G2 2.2 mobile sdk 1.5.0.2c1cae

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:09:54.000+0000", "updated": "2011-04-15T03:09:54.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }