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

Android: Properties test case generates a runtime error

    Details

      Description

      {html}<div><p>g1 running 1.6 and the sim running 2.2 Ti Mobile sdk
      1.5.0.02c264</p>
      <p>1.Platform>Properties API</p>
      <p>results:<br>
      D/TiApplication( 8513): (kroll$4) [2,14199] delegating to
      TiStylesheet for style properties<br>
      D/TiAPI ( 8513): (kroll$4) [23,14222] Bool: Test Success<br>
      D/TiAPI ( 8513): (kroll$4) [8,14230] Double: Test Success<br>
      D/TiAPI ( 8513): (kroll$4) [5,14235] int: Test Success<br>
      D/TiAPI ( 8513): (kroll$4) [6,14241] String: Test Success<br>
      E/KrollMethod( 8513): (kroll$4) [7,14248] Exception calling kroll
      method getList<br>
      E/KrollMethod( 8513): java.lang.ClassCastException:
      [Ljava.lang.Object;<br>
      E/KrollMethod( 8513): at
      org.appcelerator.titanium.util.TiConvert.toStringArray(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      ti.modules.titanium.app.properties.PropertiesModule.getList(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      ti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      org.appcelerator.kroll.KrollMethod.call(Unknown Source)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)<br>
      E/KrollMethod( 8513): at
      org.mozilla.javascript.Context.evaluateReader(Context.java:1142)<br>
      E/KrollMethod( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
      Source)<br>
      E/KrollMethod( 8513): at
      android.os.Handler.dispatchMessage(Handler.java:95)<br>
      E/KrollMethod( 8513): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/KrollMethod( 8513): at
      org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
      Source)<br>
      E/KrollContext( 8513): (kroll$4) [32,14280] Error evaluating
      source: Wrapped java.lang.ClassCastException: [Ljava.lang.Object;
      (app://examples/properties.js#51)<br>
      E/KrollContext( 8513): org.mozilla.javascript.WrappedException:
      Wrapped java.lang.ClassCastException: [Ljava.lang.Object;
      (app://examples/properties.js#51)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1781)<br>
      E/KrollContext( 8513): at
      org.appcelerator.kroll.KrollMethod.call(Unknown Source)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)<br>
      E/KrollContext( 8513): at
      script(app://examples/properties.js:51)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)<br>
      E/KrollContext( 8513): at
      org.mozilla.javascript.Context.evaluateReader(Context.java:1142)<br>
      E/KrollContext( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      android.os.Handler.dispatchMessage(Handler.java:95)<br>
      E/KrollContext( 8513): at
      android.os.Looper.loop(Looper.java:123)<br>
      E/KrollContext( 8513): at
      org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown
      Source)<br>
      E/KrollContext( 8513): Caused by: java.lang.ClassCastException:
      [Ljava.lang.Object;<br>
      E/KrollContext( 8513): at
      org.appcelerator.titanium.util.TiConvert.toStringArray(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      ti.modules.titanium.app.properties.PropertiesModule.getList(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      ti.modules.titanium.app.properties.PropertiesModuleBindingGen$10.invoke(Unknown
      Source)<br>
      E/KrollContext( 8513): at
      org.appcelerator.kroll.KrollMethod.call(Unknown Source)<br>
      E/KrollContext( 8513): ... 13 more</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-1847
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration