Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3825] Android 3.0 Xoom: Exception calling kroll method seen on app launch

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-06-30T09:47:24.000+0000
Affected Version/sRelease 1.7.0
Fix Version/sSprint 2011-26
ComponentsAndroid
Labels3.0, android, exception, xoom
ReporterThomas Huelbert
AssigneeOpie Cyrus
Created2011-04-29T16:01:06.000+0000
Updated2011-06-30T09:47:24.000+0000

Description

1.launch KS and check adb output results: ResourceType( 3210): No package identifier when getting value for resource number 0x00000000 E/KrollMethod( 3210): (kroll$56: app://app.js) [1,599] Exception calling kroll method getString, invocation: null ] E/KrollMethod( 3210): android.content.res.Resources$NotFoundException: String resource ID #0x0 E/KrollMethod( 3210): at android.content.res.Resources.getText(Resources.java:242) E/KrollMethod( 3210): at android.content.res.Resources.getString(Resources.java:326) E/KrollMethod( 3210): at android.content.Context.getString(Context.java:204) E/KrollMethod( 3210): at ti.modules.titanium.locale.LocaleModule.getString(LocaleModule.java:91) E/KrollMethod( 3210): at ti.modules.titanium.locale.LocaleModuleBindingGen$12.invoke(LocaleModuleBindingGen.java:427) E/KrollMethod( 3210): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) E/KrollMethod( 3210): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) E/KrollMethod( 3210): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) E/KrollMethod( 3210): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) E/KrollMethod( 3210): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) E/KrollMethod( 3210): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) E/KrollMethod( 3210): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) E/KrollMethod( 3210): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142) E/KrollMethod( 3210): at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105) E/KrollMethod( 3210): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306) E/KrollMethod( 3210): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318) E/KrollMethod( 3210): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217) E/KrollMethod( 3210): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223) E/KrollMethod( 3210): at android.os.Handler.dispatchMessage(Handler.java:95) E/KrollMethod( 3210): at android.os.Looper.loop(Looper.java:126) E/KrollMethod( 3210): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) E/KrollContext( 3210): (kroll$56: app://app.js) [2,601] Error evaluating source: Wrapped android.content.res.Resources$NotFoundException: String resource ID #0x0 (file:///android_asset/Resources/app.js#332) E/KrollContext( 3210): org.mozilla.javascript.WrappedException: Wrapped android.content.res.Resources$NotFoundException: String resource ID #0x0 (file:///android_asset/Resources/app.js#332) E/KrollContext( 3210): at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786) E/KrollContext( 3210): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:85) E/KrollContext( 3210): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701) E/KrollContext( 3210): at script(file:///android_asset/Resources/app.js:332) E/KrollContext( 3210): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854) E/KrollContext( 3210): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164) E/KrollContext( 3210): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426) E/KrollContext( 3210): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177) E/KrollContext( 3210): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175) E/KrollContext( 3210): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142) E/KrollContext( 3210): at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105) E/KrollContext( 3210): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306) E/KrollContext( 3210): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318) E/KrollContext( 3210): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217) E/KrollContext( 3210): at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223) E/KrollContext( 3210): at android.os.Handler.dispatchMessage(Handler.java:95) E/KrollContext( 3210): at android.os.Looper.loop(Looper.java:126) E/KrollContext( 3210): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86) E/KrollContext( 3210): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x0 E/KrollContext( 3210): at android.content.res.Resources.getText(Resources.java:242) E/KrollContext( 3210): at android.content.res.Resources.getString(Resources.java:326) E/KrollContext( 3210): at android.content.Context.getString(Context.java:204) E/KrollContext( 3210): at ti.modules.titanium.locale.LocaleModule.getString(LocaleModule.java:91) E/KrollContext( 3210): at ti.modules.titanium.locale.LocaleModuleBindingGen$12.invoke(LocaleModuleBindingGen.java:427) E/KrollContext( 3210): at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51) E/KrollContext( 3210): ... 15 more E/TiJSError( 3210): (kroll$56: app://app.js) [2,603] ----- Titanium Javascript Runtime Error ----- E/TiJSError( 3210): (kroll$56: app://app.js) [1,604] - In file:///android_asset/Resources/app.js:332,0 E/TiJSError( 3210): (kroll$56: app://app.js) [0,604] - Message: Wrapped android.content.res.Resources$NotFoundException: String resource ID #0x0 (file:///android_asset/Resources/app.js#332) E/TiJSError( 3210): (kroll$56: app://app.js) [0,604] - Source: null

Comments

  1. Thomas Huelbert 2011-06-28

    neither Opie nor I could repro in 1.7.2 or master, closing
  2. Opie Cyrus 2011-06-28

    opened issue a second time in order to log time
  3. Don Thorp 2011-06-30

    Removed 1.7.2 label.

JSON Source