Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2081] Android: setRightNavButton runtime errors

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, android_refactor, error, regression, runtime
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:09:54.000+0000
Updated2011-04-17T01:58:02.000+0000

Description

g1 running 1.6 and the sim running 2.2 Ti Mobile sdk 1.5.0.02c264.

test cases and failures below:

1.Platform>XHR>cookies
results:runtime error

E/KrollContext( 8388): (kroll$6) [297,86105] ECMA Error evaluating source: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/xhr_cookie.js#43)
E/KrollContext( 8388): org.mozilla.javascript.EcmaError: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/xhr_cookie.js#43)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollContext( 8388): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollContext( 8388): at script(app://examples/xhr_cookie.js:43)
E/KrollContext( 8388): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollContext( 8388): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollContext( 8388): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollContext( 8388): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollContext( 8388): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollContext( 8388): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollContext( 8388): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)
E/KrollContext( 8388): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)
E/KrollContext( 8388): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)
E/KrollContext( 8388): at android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollContext( 8388): at android.os.Looper.loop(Looper.java:123)
E/KrollContext( 8388): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)

regression


Runtime error on foursquare mashup

1.Mashups>foursquare
results:runtime error on load

D/KrollContext( 8587): (kroll$10) [6,3895457] Running evaluated script: app://examples/foursquare.js
D/TiApplication( 8587): (kroll$10) [202,3895659] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [2,3895661] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [42,3895703] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [2,3895705] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [44,3895749] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [3,3895752] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [137,3895889] delegating to TiStylesheet for style properties
D/TiApplication( 8587): (kroll$10) [2,3895891] delegating to TiStylesheet for style properties
E/KrollContext( 8587): (kroll$10) [31,3895922] ECMA Error evaluating source: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/foursquare.js#44)
E/KrollContext( 8587): org.mozilla.javascript.EcmaError: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/foursquare.js#44)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollContext( 8587): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollContext( 8587): at script(app://examples/foursquare.js:44)
E/KrollContext( 8587): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollContext( 8587): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollContext( 8587): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollContext( 8587): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollContext( 8587): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollContext( 8587): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollContext( 8587): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)
E/KrollContext( 8587): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)
E/KrollContext( 8587): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)
E/KrollContext( 8587): at android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollContext( 8587): at android.os.Looper.loop(Looper.java:123)
E/KrollContext( 8587): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)

regression


runtime error loading test case "table search"
1.BaseUI>Views>Table Views>Table search
results: runtime error

E/KrollContext( 8938): org.mozilla.javascript.EcmaError: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/table_view_api_search.js#70)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollContext( 8938): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollContext( 8938): at script(app://examples/table_view_api_search.js:70)
E/KrollContext( 8938): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollContext( 8938): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollContext( 8938): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollContext( 8938): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollContext( 8938): at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/KrollContext( 8938): at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/KrollContext( 8938): at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)
E/KrollContext( 8938): at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)
E/KrollContext( 8938): at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)
E/KrollContext( 8938): at android.os.Handler.dispatchMessage(Handler.java:95)
E/KrollContext( 8938): at android.os.Looper.loop(Looper.java:123)
E/KrollContext( 8938): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)

regression

--

Facebook mashup - runtime error (setRightnavButton) on query test

Comments

  1. Don Thorp 2011-04-15

    Test defect assigning to Ralf for now.

  2. Marshall Culpepper 2011-04-15

    (from [bf1cfadac7ef7d9a02ac5bfd26a4d9fbf23e7a31]) check for iPhone before setting/adding a rightNavButton in various KS tests [#2081 state:fixed-in-qa] http://github.com/appcelerator/titanium_mobile/commit/bf1cfadac7ef7d9a02ac5bfd26a4d9fbf23e7a31"> http://github.com/appcelerator/titanium_mobile/commit/bf1cfadac7ef7...

  3. Thomas Huelbert 2011-04-15

    1.5.0.70ce98 g2 running 2.2

JSON Source