Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3429] While changing SDK version of existing project, i'm getting "NumberFormatException: Invalid int: "NONE"".

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2016-04-05T19:31:32.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, cli-5.2.1, sdk
ReporterSuraj Datta
AssigneeShak Hossain
Created2016-03-30T09:37:22.000+0000
Updated2016-04-05T19:31:32.000+0000

Description

While creating project i've selected SDK version 5.2.0, now if i select newer version of SDK(5.4.0 in my case) i'm getting following errors related to thread & NumberFormatException: Invalid int: "NONE".
[WARN] :   dalvikvm: threadid=1: thread exiting with uncaught exception (group=0x413729a8)
[ERROR] :  TiApplication: (main) [53462,59156] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.packagename.android/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"; Titanium 5.4.0,2016/03/30 00:10,cc8f170
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.packagename.android/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2358)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.access$600(ActivityThread.java:156)
[ERROR] :  TiApplication: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
[ERROR] :  TiApplication: 	at android.os.Handler.dispatchMessage(Handler.java:99)
[ERROR] :  TiApplication: 	at android.os.Looper.loop(Looper.java:153)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.main(ActivityThread.java:5297)
[ERROR] :  TiApplication: 	at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] :  TiApplication: 	at java.lang.reflect.Method.invoke(Method.java:511)
[ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
[ERROR] :  TiApplication: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
[ERROR] :  TiApplication: 	at dalvik.system.NativeStart.main(Native Method)
[ERROR] :  TiApplication: Caused by: java.lang.NumberFormatException: Invalid int: "NONE"
[ERROR] :  TiApplication: 	at java.lang.Integer.invalidInt(Integer.java:138)
[ERROR] :  TiApplication: 	at java.lang.Integer.parse(Integer.java:375)
[ERROR] :  TiApplication: 	at java.lang.Integer.parseInt(Integer.java:366)
[ERROR] :  TiApplication: 	at java.lang.Integer.parseInt(Integer.java:332)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:409)
[ERROR] :  TiApplication: 	at ti.modules.titanium.ui.widget.tableview.TiTableView.<init>(TiTableView.java:356)
[ERROR] :  TiApplication: 	at ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:111)
[ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1219)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:509)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication: 	at com.tripvi.drawerlayout.Drawer.getNativeView(Drawer.java:592)
[ERROR] :  TiApplication: 	at com.tripvi.drawerlayout.Drawer.processProperties(Drawer.java:419)
[ERROR] :  TiApplication: 	at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1219)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:509)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiVie
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
[ERROR] :  TiApplication: 	at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:258)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
[ERROR] :  TiApplication: 	at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] :  TiApplication: 	at android.app.Activity.performCreate(Activity.java:5147)
[ERROR] :  TiApplication: 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1081)
[ERROR] :  TiApplication: 	at android.app.ActivityThread.performLaunchActivity(Activity
After this my app crashes & thows "Unfortunately, myapp has stopped".

Comments

  1. Sharif AbuDarda 2016-03-30

    Hello, Please use latest GA release of SDK 5.2.1.GA for your development. SDK 5.4.0 is a beta release and has room for improvements. Please, try building your project in SDK 5.2.1.GA. Thanks.

JSON Source