Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-2080

Android: getElementsByTagName runtime error

    Details

      Description

      {html}<div><p>g1 running 1.6 and the sim running 2.2 Ti Mobile sdk
      1.5.0.02c264<br>
      test cases listed below:</p>
      <p>run time error on xhr xml data test case<br>
      1.Platform>XHR>XML Data</p>
      <p>results:<br>
      E/KrollCallback( 8248): (kroll$5) [3002,228480] ECMA Error
      evaluating source, invocation: [callMethod
      Network.HTTPClient.(anonymous)
      org.appcelerator.titanium.kroll.KrollCallback@43937c30], message:
      TypeError: Cannot call method "getElementsByTagName" of undefined
      (app://examples/xhr_xml.js#6)<br>
      E/KrollCallback( 8248): org.mozilla.javascript.EcmaError:
      TypeError: Cannot call method "getElementsByTagName" of undefined
      (app://examples/xhr_xml.js#6)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)<br>
      E/KrollCallback( 8248): at script(app://examples/xhr_xml.js:6)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)<br>
      E/KrollCallback( 8248): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)<br>
      E/KrollCallback( 8248): at
      org.appcelerator.titanium.kroll.KrollCallback$1.run(Unknown
      Source)<br>
      E/KrollCallback( 8248): at
      android.os.Handler.handleCallback(Handler.java:587)<br>
      E/KrollCallback( 8248): at
      android.os.Handler.dispatchMessage(Handler.java:92)<br>
      E/KrollCallback( 8248): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/KrollCallback( 8248): at
      org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
      Source)<br>
      I/Process ( 8248): Sending signal. PID: 8248 SIG: 9<br>
      regression</p>
      <hr>
      <p>XML Dom genrates runtime errors<br>
      1.Platform>XML DOM</p>
      <p>results:<br>
      D/dalvikvm( 8551): GC freed 4970 objects / 256152 bytes in
      158ms<br>
      E/KrollContext( 8551): (kroll$9) [2657,78802] ECMA Error evaluating
      source: TypeError: Cannot call method "getElementsByTagName" of
      undefined (app://examples/xml_dom.js#21)<br>
      E/KrollContext( 8551): org.mozilla.javascript.EcmaError: TypeError:
      Cannot call method "getElementsByTagName" of undefined
      (app://examples/xml_dom.js#21)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)<br>
      E/KrollContext( 8551): at script(app://examples/xml_dom.js:21)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)<br>
      E/KrollContext( 8551): at
      org.mozilla.javascript.Context.evaluateReader(Context.java:1142)<br>
      E/KrollContext( 8551): at
      org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
      Source)<br>
      E/KrollContext( 8551): at
      org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
      Source)<br>
      E/KrollContext( 8551): at
      org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
      Source)<br>
      E/KrollContext( 8551): at
      android.os.Handler.dispatchMessage(Handler.java:95)<br>
      E/KrollContext( 8551): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/KrollContext( 8551): at
      org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
      Source)</p>
      <p>regression</p>
      <hr>
      <p>SOAP Mashup - runtime error (getElementsByTagName)<br>
      1.Mashups>SOAP<br>
      2.wait a few seconds</p>
      <p>/KrollCallback( 8824): (kroll$9) [1652,217927] ECMA Error
      evaluating source, invocation: [callMethod
      Network.HTTPClient.(anonymous)
      org.appcelerator.titanium.kroll.KrollCallback@43ad2a70], message:
      TypeError: Cannot call method "getElementsByTagName" of undefined
      (app://examples/soap.js#26) E/KrollCallback( 8824):
      org.mozilla.javascript.EcmaError: TypeError: Cannot call method
      "getElementsByTagName" of undefined (app://examples/soap.js#26)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3805)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)<br>
      E/KrollCallback( 8824): at script(app://examples/soap.js:26)<br>
      E/KrollCallback( 8824): at
      script(file:///android_asset/Resources/examples/suds.js:149)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)<br>
      E/KrollCallback( 8824): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)<br>
      E/KrollCallback( 8824): at
      org.appcelerator.titanium.kroll.KrollCallback$1.run(Unknown
      Source)<br>
      E/KrollCallback( 8824): at
      android.os.Handler.handleCallback(Handler.java:587)<br>
      E/KrollCallback( 8824): at
      android.os.Handler.dispatchMessage(Handler.java:92)<br>
      E/KrollCallback( 8824): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/KrollCallback( 8824): at
      org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
      Source)<br>
      D/dalvikvm( 8878): GC freed 6051 objects / 380744 bytes in
      310ms</p>
      <p>--</p>
      <p>XML RSS test case genrates unexpected alert<br>
      1.Platform>XML RSS<br>
      2.results: an alert appears, wording is "Cannot call method
      "getElementsByTagName" of undefined</p>
      <p>regression</p></div>{html}

        Attachments

          Activity

            People

            • Assignee:
              dthorp Don Thorp
              Reporter:
              thomashuelbert Thomas Huelbert
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-1845
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration