[AC-4797] Requiring Text field crashing in android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-02-28T18:57:17.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | TextField |
Reporter | Ishan Singh |
Assignee | Shak Hossain |
Created | 2017-02-17T05:43:29.000+0000 |
Updated | 2017-02-28T18:57:17.000+0000 |
Description
I am requiring a view inside a window , view contains some buttons and a textfields. when i run the app its crashing, and when i run the app after commenting the textfield, its working fine.
Below is the log
TiApplication: (main) [372,372] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap; Titanium 6.0.1,2016/12/19 16:51,undefined
[ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254)
[ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
[ERROR] : TiApplication: at android.app.ActivityThread.access$1100(ActivityThread.java:222)
[ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:158)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:7229)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[ERROR] : TiApplication: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap
[ERROR] : TiApplication: at ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:219)
[ERROR] : TiApplication: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1173)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:677)
[ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:571)
[ERROR] : TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:262)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:559)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:673)
[ERROR] : TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : TiApplication: at android.app.Activity.performCreate(Activity.java:6876)
[ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
[ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
[ERROR] : TiApplication: ... 9 more
[ERROR] : AndroidRuntime: FATAL EXCEPTION: main
[ERROR] : AndroidRuntime: Process: com.ishan.pushnotifications, PID: 6867
[ERROR] : AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.ishan.pushnotifications/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap
[ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3254)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.access$1100(ActivityThread.java:222)
[ERROR] : AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
[ERROR] : AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] : AndroidRuntime: at android.os.Looper.loop(Looper.java:158)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7229)
[ERROR] : AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
[ERROR] : AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
[ERROR] : AndroidRuntime: Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.HashMap
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:219)
[ERROR] : AndroidRuntime: at org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1173)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:677)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:571)
[ERROR] : AndroidRuntime: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:262)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:559)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:673)
[ERROR] : AndroidRuntime: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] : AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6876)
[ERROR] : AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
[ERROR] : AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
[ERROR] : AndroidRuntime: ... 9 more
[ERROR] : D/[ACT]:S ( 7023): Registering hardware receiver
[ERROR] : D/[ACT]:S ( 7023): Loading the transmission policy
[ERROR] : E/android.os.Debug( 3515): ro.product_ship = true
[ERROR] : E/android.os.Debug( 3515): ro.debug_level = 0x4f4c
[ERROR] : E/android.os.Debug( 3515): sys.mobilecare.preload = false
[ERROR] : D/[ACT]:W ( 7023): Reading offline kvp file.
[ERROR] : D/[ACT]:ao( 7023): startProcessingWithTransmitCondition : UNMETERED_AC, profile: REAL_TIME
[ERROR] : D/ ( 3515): ro.exynos.dss isEnabled: 0
[ERROR] : D/Launcher.HomeView( 4387): onResume
[ERROR] : I/[ACT]:H ( 7076): initialize|context:com.microsoft.office.word.WordApplication@8dec4d2|tenantToken:0f7e2d7f1132433b82c0b49a3e7da349-48b984f1-c586-4e69-9a6b-c3cb9597e0bc-7008
[ERROR] : I/[ACT]:H ( 7076): initialize|context:com.microsoft.office.word.WordApplication@8dec4d2|tenantToken:0f7e2d7f1132433b82c0b49a3e7da349-48b984f1-c586-4e69-9a6b-c3cb9597e0bc-7008|configuration:null
[ERROR] : D/[ACT]:S ( 7076): Registering hardware receiver
[ERROR] : D/[ACT]:S ( 7076): Loading the transmission policy
[ERROR] : D/[ACT]:W ( 7076): Reading offline kvp file.
[ERROR] : D/[ACT]:ao( 7076): startProcessingWithTransmitCondition : UNMETERED_AC, profile: REAL_TIME
[ERROR] : D/[ACT]:ao( 7023): processing priority = HIGH
[ERROR] : W/System.err( 7023): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.powerpoint/files/aria/offlinestoragehigh.db
[ERROR] : W/System.err( 7023): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.powerpoint/files/aria/offlinestoragehigh.db
[ERROR] : W/System.err( 7023): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.powerpoint/files/aria/offlinestoragenormal.db
[ERROR] : W/System.err( 7023): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.powerpoint/files/aria/offlinestoragelow.db
[ERROR] : W/System.err( 7096): mkdir failed: EEXIST (File exists) : /data/user/0/com.google.android.apps.plus/files/tiktok
[ERROR] : I/AASAservice-TokenRule( 7123): parseToken()
[ERROR] : E/AASAservice-TokenRule( 7123): parseToken() : TokenFile is null
[ERROR] : D/AASAservice-UpdateReceiver( 7123): AASAUpdateReceiver : android.intent.action.PACKAGE_ADDED, package = com.ishan.pushnotifications, uid = -1
[ERROR] : D/AASAservice-AASABinder( 7123): getManagedSharedPkgList() : packageName - com.ishan.pushnotifications, uid - -1
[ERROR] : D/AASAservice-RuleManager( 7123): IsSharedUID() : pkgname - com.ishan.pushnotifications, mSharedUserId - null
[ERROR] : D/AASAservice-UpdateReceiver( 7123): AASAUpdateReceiver : check SharedUID package.
[ERROR] : E/AASAservice-UpdateReceiver( 7123): AASAUpdateReceiver : myrule is null.
[ERROR] : D/[ACT]:ao( 7076): processing priority = HIGH
[ERROR] : W/System.err( 7076): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.word/files/aria/offlinestoragehigh.db
[ERROR] : W/System.err( 7076): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.word/files/aria/offlinestoragehigh.db
[ERROR] : W/System.err( 7076): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.word/files/aria/offlinestoragenormal.db
[ERROR] : W/System.err( 7076): stat failed: ENOENT (No such file or directory) : /data/user/0/com.microsoft.office.word/files/aria/offlinestoragelow.db
[ERROR] : I/BNRClientProivder, VERSION : 1.7.8( 7206): register - started.
[ERROR] : I/BNRClientProivder, VERSION : 1.7.8( 7206): register - xml6 quick_backup : SVOICESETTING, bLEmzxKOex, com.samsung.voiceserviceplatform.SCloudBackUp
[ERROR] : I/VoiceServicePlatformApp:main( 7206): : VSP::SvoiceApp Oncreate()
[ERROR] : I/AppSessionManager:main( 7206): : VSP::init() Update from sharedpref
[ERROR] : I/AppSessionManager:main( 7206): : VSP::init() Update from sharedpref
[ERROR] : I/SVFSettings:main( 7206): : VSP::shared preference language is en_US
[ERROR] : I/skwskw:main( 7206): : VSP::############################125 value : en_US
[ERROR] : I/UploadDatabase: svoicelocal DB( 7224): main : PLM :: mUploadDBManager is null , creating new one !!
[ERROR] : I/SVFSettings:main( 7206): : VSP::Neither language is present in DB not already set
[ERROR] : W/System.err( 3515): remove failed: ENOENT (No such file or directory) : /data/system/recent_tasks/1061_task.xml.bak
[ERROR] : I/skwskw:main( 7206): : VSP::############################126 value : en_US
[ERROR] : I/skwskw:main( 7206): : VSP::############################127 value : en_US
[ERROR] : I/skwskw:main( 7206): : VSP::############################152 value : FASDFDASFDAFASDF
[ERROR] : I/skwskw:main( 7206): : VSP::############################140 value : en_US
[ERROR] : D/SettingsValueDB:UpdateLocale( 7206): : VSP:: match for uri : content://com.samsung.voiceserviceplatform.database.SettingsValueDB/SettingsvalueTb is : -1
[ERROR] : D/SettingsValueDB:UpdateLocale( 7206): : VSP::URI didnt match
[ERROR] : I/N66_CommonHandler:main( 7206): : VSP::Current configured server is interaction-us2.samsung-svoice.com
[ERROR] : I/N66_CommonHandler:main( 7206): : VSP::Current configured server port is 443
[ERROR] : D/SettingsValueDB:main( 7206): : VSP:: match for uri : content://com.samsung.voiceserviceplatform.database.SettingsValueDB/SettingsvalueTb is : -1
[ERROR] : D/SettingsValueDB:main( 7206): : VSP::URI didnt match
[ERROR] : D/SettingsValueDB:main( 7206): : VSP:: match for uri : content://com.samsung.voiceserviceplatform.database.SettingsValueDB/SettingsvalueTb is : -1
[ERROR] : D/SettingsValueDB:main( 7206): : VSP::URI didnt match
[ERROR] : D/SettingsValueDB:main( 7206): : VSP:: match for uri : content://com.samsung.voiceserviceplatform.database.SettingsValueDB/language is : 3
[ERROR] : D/SettingsValueDB:main( 7206): : VSP::lang from content values is en_US
[ERROR] : I/skwskw:main( 7206): : VSP::############################122 value : en_US
[ERROR] : I/skwskw:main( 7206): : VSP::############################123 value : en_US
[ERROR] : I/N66_CommonHandler:main( 7206): : VSP:: rowUpdated : 1
[ERROR] : D/SVClient:main( 7206): : VSP::Creating new object for SVClient!
[ERROR] : D/SVClient:main( 7206): : VSP::SVClient initialization with applicationContext : com.samsung.voiceserviceplatform.VoiceServicePlatformApp@a8524a0
[ERROR] : I/SamsungHTTPClient:main( 7206): : VSP::MY THREAD ID UI : 1
[ERROR] : I/sessionThread:main( 7206): : VSP::LOG_LEVEL is set as 4
[ERROR] : I/sessionThread:SessionThread( 7206): : VSP::Inside processTask while loop; task is empty so sleeping :
[ERROR] : I/VoiceFrameworkService:main( 7206): : VSP::Oncreate() of Service
[ERROR] : I/VoiceFrameworkServiceHandler:main( 7206): : VSP::VoiceFrameworkServiceHandler() Start
[ERROR] : I/VoiceFrameworkServiceHandler:main( 7206): : VSP::MyHandlerThread
[ERROR] : I/VoiceFrameworkServiceHandler:main( 7206): : VSP::VoiceFrameworkServiceHandler() end
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::Nagalat checkMPermissions
[ERROR] : I/VoiceFrameworkServiceHandler:VoiceFrameworkServiceHandler MyHandlerThread( 7206): : VSP::MyHandlerThread run
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::checkMPermissions all permission not granted
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::onStartCommand
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::Nagalat checkMPermissions
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::checkMPermissions all permission not granted
[ERROR] : D/VoiceFrameworkService:main( 7206): : VSP::onDestroy
[ERROR] : I/RecognitionManager:main( 7206): : VSP::created RecognitionManager
[ERROR] : I/SV_SpeechDetector:main( 7206): : VSP:: getInstance
[ERROR] : I/SV_SpeechDetector:main( 7206): : VSP:: Constructor
[ERROR] : E/SV_SpeechDetector:main( 7206): : VSP::There is error to initialize VoiceEngineControl
[ERROR] : I/RecognitionManager:main( 7206): : VSP::unregisterRecognitionEngine
[ERROR] : I/RecognitionManager:main( 7206): : VSP::unregisterRecognitionEngine
[ERROR] : I/RecognitionManager:main( 7206): : VSP::unregisterRecognitionEngine
[ERROR] : I/RecognitionManager:main( 7206): : VSP::destroy
[ERROR] : I/Recorder:main( 7206): : VSP::release
[ERROR] : I/Recorder:main( 7206): : VSP::setState
[ERROR] : I/EmbeddedFrameworkManager:main( 7206): : VSP::destroy
[ERROR] : I/VoiceFrameworkServiceHandler:main( 7206): : VSP::onDestroy
[ERROR] : I/SV_TTSPlayer:main( 7206): : VSP::locale is: en_US
[ERROR] : V/ApplicationReceiver:onReceive(23810): 2017-03-18 17:52:01-null-Application install message is received ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive(23810): 2017-03-18 17:52:01-null-ApplicationReceiver detectes the installation of package:com.ishan.pushnotifications ver:1.2.0
[ERROR] : D/[SAUI] ( 7343): Global::recovered::false
[ERROR] : V/ApplicationReceiver:onReceive( 7403): 2017-03-18 17:52:02-null-Application install message is received ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 7403): 2017-03-18 17:52:02-null-ApplicationReceiver detectes the installation of package:com.ishan.pushnotifications ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 7023): 2017-03-18 17:52:02-null-Application install message is received ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 7023): 2017-03-18 17:52:02-null-ApplicationReceiver detectes the installation of package:com.ishan.pushnotifications ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 7076): 2017-03-18 17:52:02-null-Application install message is received ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 7076): 2017-03-18 17:52:02-null-ApplicationReceiver detectes the installation of package:com.ishan.pushnotifications ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 5973): 2017-03-18 17:52:02-null-Application install message is received ver:1.2.0
[ERROR] : V/ApplicationReceiver:onReceive( 5973): 2017-03-18 17:52:02-null-ApplicationReceiver detectes the installation of package:com.ishan.pushnotifications ver:1.2.0
[ERROR] : E/0:4006816048( 7403): platstubs.cpp,Line#89:GetVersionExW NOTIMPL
[ERROR] : E/0:4006816048( 7403): platstubs.cpp,Line#89:GetVersionExW NOTIMPL
[ERROR] : W/System.err( 7041): remove failed: ENOENT (No such file or directory) : /data/user/0/com.google.android.apps.docs/databases/ClientFlag.db
[ERROR] : W/System.err( 7041): remove failed: ENOENT (No such file or directory) : /data/user/0/com.google.android.apps.docs/databases/ClientFlag.db-journal
[ERROR] : W/System.err( 7041): remove failed: ENOENT (No such file or directory) : /data/user/0/com.google.android.apps.docs/databases/ClientFlag.db-shm
[ERROR] : W/System.err( 7041): remove failed: ENOENT (No such file or directory) : /data/user/0/com.google.android.apps.docs/databases/ClientFlag.db-wal
Attachments
Hello, Please attach the sample code as "index.xml", "index.js" and such. Also, you haven't provide any SDK version. We need to test the issue before pass if for a fix. Thanks.
Hi, This is for sdk 6.0.1.GA and there is no .js code yet only the xml code.
Hello, Send a sample project that we can test to validate the issue. Thanks.