Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5803] android application not working

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2018-08-12T19:02:40.000+0000
Affected Version/sAppcelerator Studio 4.3.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
Reporterrohit@ccomsys.net
AssigneeShak Hossain
Created2018-07-13T07:38:14.000+0000
Updated2018-10-10T21:43:33.000+0000

Description

Android application not working. TableViewRowProxy: (main) [6180,6180] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [5,6185] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [11,6196] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [10,6206] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [9,6215] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [10,6225] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [15,6240] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [9,6249] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [9,6258] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [10,6268] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [8,6276] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [14,6290] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [9,6299] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [9,6308] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [4,6312] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [6,6318] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [7,6325] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [7,6332] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : TableViewRowProxy: (main) [6,6338] selectedBackgroundColor is deprecated, use backgroundSelectedColor instead [WARN] : W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference [WARN] : W/System.err: at org.appcelerator.titanium.proxy.ActionBarProxy.(ActionBarProxy.java:58) [WARN] : W/System.err: at org.appcelerator.titanium.proxy.ActivityProxy.getActionBar(ActivityProxy.java:258) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57) [WARN] : W/System.err: at org.appcelerator.kroll.runtime.v8.V8Function.call(V8Function.java:43) [WARN] : W/System.err: at ti.modules.titanium.TitaniumModule$Timer.run(TitaniumModule.java:147) [WARN] : W/System.err: at android.os.Handler.handleCallback(Handler.java:746) [WARN] : W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95) [WARN] : W/System.err: at android.os.Looper.loop(Looper.java:148) [WARN] : W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5443) [WARN] : W/System.err: at java.lang.reflect.Method.invoke(Native Method) [WARN] : W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728) [WARN] : W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618) {color:red}[ERROR] : TiExceptionHandler: (main) [1143,7481] ----- Titanium Javascript Runtime Error ----- [ERROR] : TiExceptionHandler: (main) [0,7481] - In ti:/titanium.js:226,24{color} {color:red}[ERROR] : TiExceptionHandler: (main) [0,7481] - Message: Uncaught Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference [ERROR] : TiExceptionHandler: (main) [0,7481] - Source: serialized[k] = this[k]; [ERROR] : V8Exception: Exception occurred at ti:/titanium.js:226: Uncaught Attempt to invoke virtual method 'void android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference [ERROR] : V8Exception: Attempt to invoke virtual method 'void {color}android.support.v7.app.ActionBar.setDisplayOptions(int)' on a null object reference

Attachments

FileDateSize
mytheme.xml2018-07-13T07:39:56.000+00001185
no_actionbar.xml2018-07-13T07:39:56.000+0000225
Screenshot_20180713-162427.png2018-07-13T10:56:33.000+000043891
styles_demo.xml2018-07-13T07:39:56.000+00004088
widget.js2018-07-14T07:39:19.000+000011437

Comments

  1. Hans Knöchel 2018-07-13

    It looks like you are trying to place a (top-level) <Window> instance next to views, which either need to be part of the window or be in a separate view that is require'd by another top-level window. The error itself suggests that there is no action bar to configure, so it fails. Also, unrelated, it seems like selectedBackgroundColor is marked as deprecated although it is not in the docs. [~bimmel] + [~ybanev] for the rescue!
  2. rohit@ccomsys.net 2018-07-14

    {color:red}Error:{color} {color:red}[ERROR] : TiExceptionHandler: (main) [1063,7161] ----- Titanium Javascript Runtime Error ----- [ERROR] : TiExceptionHandler: (main) [0,7161] - In /alloy/widgets/kr.yostudio.drawer/controllers/widget.js:158,20 [ERROR] : TiExceptionHandler: (main) [0,7161] - Message: Uncaught TypeError: this.topWindow.open is not a function [ERROR] : TiExceptionHandler: (main) [0,7161] - Source: this.topWindow.open(args); [ERROR] : V8Exception: Exception occurred at /alloy/widgets/kr.yostudio.drawer/controllers/widget.js:158: Uncaught TypeError: this.topWindow.open is not a function{color}
  3. rohit@ccomsys.net 2018-07-14

    [^widget.js]
  4. (deactived) Brian Immel 2018-07-16

    [~hknoechel], which document is that?
  5. rohit@ccomsys.net 2018-07-17

    Its an drawer which i used "kr.yostudio.drawer" js file
  6. rohit@ccomsys.net 2018-07-18

    I don't get any solution to fix it please help me to solve it or any alternative navigation drawer to use.
  7. Sharif AbuDarda 2018-07-18

    Hello [~rohit], "kr.yostudio.drawer" is this you created or a third party drawer? If it's third party drawer you should try reaching them. Thanks.
  8. Sharif AbuDarda 2018-08-07

    Hello [~rohit], What is the update of your issue? Can you get back to us on the previous comment?
  9. (deactived) Brian Immel 2018-08-14

    Created PR https://github.com/appcelerator/titanium_mobile/pull/10256 to add the deprecated notice to the selectedBackgroundColor property.
  10. Hans Knöchel 2018-08-14

    So this is a bit more complicated I assume. On iOS, it is not deprecated, on Android it is. We should find out why it was deprecated and how we should proceed. Reopening and moving to TIMOB for further investigation. *EDIT*: See TIMOB-26304 for further info.

JSON Source