Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2161] Android: Facebook query/properites runtime error (setrightnavbutton)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:17.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M01
ComponentsAndroid
Labelsandroid, android_refactor, facebook, mashup, regression
ReporterThomas Huelbert
AssigneeDon Thorp
Created2011-04-15T03:12:24.000+0000
Updated2011-04-17T01:58:17.000+0000

Description

1.Mashups> Facebook
2.Log in, then do the query test or properties test

results: runtime error:
E/KrollCallback(17712): (kroll$6) [97,58043] ECMA Error evaluating source, invocation: [callMethod UI.Button.UI.Button:event:click null], message: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/facebook_query.js#36)
E/KrollCallback(17712): org.mozilla.javascript.EcmaError: TypeError: Cannot find function setRightNavButton in object [Ti.UI.Window]. (app://examples/facebook_query.js#36)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3761)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3739)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3767)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3786)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3850)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2343)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
E/KrollCallback(17712): at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1524)
E/KrollCallback(17712): at script.runQuery(app://examples/facebook_query.js:36)
E/KrollCallback(17712): at script(app://examples/facebook_query.js:129)
E/KrollCallback(17712): at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/KrollCallback(17712): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/KrollCallback(17712): at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/KrollCallback(17712): at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/KrollCallback(17712): at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:162)
E/KrollCallback(17712): at org.appcelerator.titanium.kroll.KrollCallback$1.run(KrollCallback.java:97)
E/KrollCallback(17712): at android.os.Handler.handleCallback(Handler.java:587)
E/KrollCallback(17712): at android.os.Handler.dispatchMessage(Handler.java:92)
E/KrollCallback(17712): at android.os.Looper.loop(Looper.java:123)
E/KrollCallback(17712): at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:73)
D/PowerManagerService( 1435): New lightsensor value:320, lcdValue:160
D/PowerManagerService( 1435): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3
D/dalvikvm(16206): GC_EXPLICIT freed 9810 objects / 879184 bytes in 807ms
D/dalvikvm( 1533): GC_EXPLICIT freed 718 objects / 89928 bytes in 1246ms
D/dalvikvm( 1532): GC_FOR_MALLOC freed 10543 objects / 525160 bytes in 112ms
D/dalvikvm( 1600): GC_EXPLICIT freed 474 objects / 121056 bytes in 819ms
D/dalvikvm( 2472): GC_EXPLICIT freed 4 objects / 112 bytes in 595ms
D/PowerManagerService( 1435): New lightsensor value:160, lcdValue:160
D/PowerManagerService( 1435): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3
D/PowerManagerService( 1435): New lightsensor value:320, lcdValue:160
D/PowerManagerService( 1435): lightSensorChangedLocked, buttonValue >= 0, mPowerState = 3

Comments

  1. Don Thorp 2011-04-15

    This is a KitchenSink test problem.

  2. Don Thorp 2011-04-15

    (from [9fba2f7d838dc27e5994dabe38cc943ee8470709]) [#2161 state:fixed-in-qa] wrapped iPhone only features. Removed old code for ImageView because Android supports the image property now. Also limited the query to 20 results. If you have a big facebook account it takes forever to get through them all. https://github.com/appcelerator/titanium_mobile/commit/9fba2f7d838dc27e5994dabe38cc943ee8470709"> https://github.com/appcelerator/titanium_mobile/commit/9fba2f7d838d...

  3. Thomas Huelbert 2011-04-15

    1.5.0.fb4b340. G2 (2.2) 2.1 emulator

JSON Source