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

Appcelerator JIRA | Ishan Singh | 3 days ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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

    Appcelerator JIRA | 3 days ago | Ishan Singh
    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
  2. 0

    Hi, Facebook module with latest SDK throwing error in Alloy on android. I tested this using the SDK 5..2.1 , Facbook Module 5.0.0 , alloy 1.8.2 and android 5.0.2. Facebook module working fine in classic project. This is an alloy issue. app/alloy.js: {code} Alloy.Globals.Facebook = require('facebook'); {code} app/views/index.xml: {code} <Alloy> <Window backgroundColor="white"> <LoginButton id="fbLogin" module="facebook" top="25" /> <LikeButton id="fbLike" module="facebook" top="100" /> </Window> </Alloy> {code} app/controllers/index.js: {code} $.fbLike.objectID = "http://www.facebook.com/appcelerator"; if (OS_ANDROID) { $.index.fbProxy = Alloy.Globals.Facebook.createActivityWorker({lifecycleContainer: $.index}); } $.index.open(); {code} Error Log : {code} [ERROR] : TiApplication: (main) [14,644] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.1,2016/03/18 22:51,23e1c7d [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474) [ERROR] : TiApplication: at android.app.ActivityThread.access$800(ActivityThread.java:144) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:155) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5696) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824) [ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at com.facebook.login.LoginManager.registerCallback(LoginManager.java:128) [ERROR] : TiApplication: at com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445) [ERROR] : TiApplication: at facebook.LoginButtonView.<init>(LoginButtonView.java:40) [ERROR] : TiApplication: at facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [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.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:5958) [ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129) [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) {code} *Environment:* 1. Android Devices: Nexus 7 (android 6.0) ,HTC (android 5.0.2) 2. Facebook 5.0.0 3. Operating System: Mac OS X, Version 10.10.5 4. Node.js Version 0.10.37 5. Titanium SDK Version 5.2.1.GA Thanks

    Appcelerator JIRA | 11 months ago | Aminul Islam
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.
  3. 0

    Hi, Facebook module with latest SDK throwing error in Alloy on android. I tested this using the SDK 5..2.1 , Facbook Module 5.0.0 , alloy 1.8.2 and android 5.0.2. Facebook module working fine in classic project. This is an alloy issue. app/alloy.js: {code} Alloy.Globals.Facebook = require('facebook'); {code} app/views/index.xml: {code} <Alloy> <Window backgroundColor="white"> <LoginButton id="fbLogin" module="facebook" top="25" /> <LikeButton id="fbLike" module="facebook" top="100" /> </Window> </Alloy> {code} app/controllers/index.js: {code} $.fbLike.objectID = "http://www.facebook.com/appcelerator"; if (OS_ANDROID) { $.index.fbProxy = Alloy.Globals.Facebook.createActivityWorker({lifecycleContainer: $.index}); } $.index.open(); {code} Error Log : {code} [ERROR] : TiApplication: (main) [14,644] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.; Titanium 5.2.1,2016/03/18 22:51,23e1c7d [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411) [ERROR] : TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474) [ERROR] : TiApplication: at android.app.ActivityThread.access$800(ActivityThread.java:144) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:155) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5696) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824) [ERROR] : TiApplication: Caused by: Unexpected CallbackManager, please use the provided Factory. [ERROR] : TiApplication: at com.facebook.login.LoginManager.registerCallback(LoginManager.java:128) [ERROR] : TiApplication: at com.facebook.login.widget.LoginButton.registerCallback(LoginButton.java:445) [ERROR] : TiApplication: at facebook.LoginButtonView.<init>(LoginButtonView.java:40) [ERROR] : TiApplication: at facebook.LoginButtonProxy.createView(LoginButtonProxy.java:34) [ERROR] : TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492) [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.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:5958) [ERROR] : TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129) [ERROR] : TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2364) {code} *Environment:* 1. Android Devices: Nexus 7 (android 6.0) ,HTC (android 5.0.2) 2. Facebook 5.0.0 3. Operating System: Mac OS X, Version 10.10.5 4. Node.js Version 0.10.37 5. Titanium SDK Version 5.2.1.GA Thanks

    Appcelerator JIRA | 11 months ago | Aminul Islam
    java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to reproduce: # make new alloy project # add the following files: ** controllers/index.js {code} $.index.open(); $.contentView.add(Alloy.createController('list').getView()); {code} ** controllers/list.js (empty) ** controllers/test.js (empty) ** views/index.xml {code} <Alloy> <Window id="index"> <View id="contentView" /> </Window> </Alloy> {code} ** views/list.xml {code} <Alloy> <Require src="test" /> </Alloy> {code} ** views/test.xml {code} <Alloy> <View/> </Alloy> {code} Same problem exists when doing this inside a Widget with <Widget> and Widget.createController(). This code causes the following crash on starting the app on Android. {code} [ERROR] TiApplication: (main) [316,316] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy; Titanium 3.4.1,2014/11/13 13:33,5982e8f [ERROR] TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy [ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211) [ERROR] TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) [ERROR] TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:141) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] TiApplication: Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy [ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.setActivity(TiViewProxy.java:976) [ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.setActivity(TiViewProxy.java:977) [ERROR] TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:175) [ERROR] TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32) [ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:442) [ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:524) [ERROR] TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18) [ERROR] TiApplication: at android.app.Activity.performCreate(Activity.java:5133) [ERROR] TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) [ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) [ERROR] TiApplication: ... 11 more {code}

    Appcelerator JIRA | 2 years ago | Stefan Schüller
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy
  6. 0

    How to reproduce: # make new alloy project # add the following files: ** controllers/index.js {code} $.index.open(); $.contentView.add(Alloy.createController('list').getView()); {code} ** controllers/list.js (empty) ** controllers/test.js (empty) ** views/index.xml {code} <Alloy> <Window id="index"> <View id="contentView" /> </Window> </Alloy> {code} ** views/list.xml {code} <Alloy> <Require src="test" /> </Alloy> {code} ** views/test.xml {code} <Alloy> <View/> </Alloy> {code} Same problem exists when doing this inside a Widget with <Widget> and Widget.createController(). This code causes the following crash on starting the app on Android. {code} [ERROR] TiApplication: (main) [316,316] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy; Titanium 3.4.1,2014/11/13 13:33,5982e8f [ERROR] TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy [ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211) [ERROR] TiApplication: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) [ERROR] TiApplication: at android.app.ActivityThread.access$600(ActivityThread.java:141) [ERROR] TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) [ERROR] TiApplication: at android.os.Handler.dispatchMessage(Handler.java:99) [ERROR] TiApplication: at android.os.Looper.loop(Looper.java:137) [ERROR] TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5103) [ERROR] TiApplication: at java.lang.reflect.Method.invokeNative(Native Method) [ERROR] TiApplication: at java.lang.reflect.Method.invoke(Method.java:525) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737) [ERROR] TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) [ERROR] TiApplication: at dalvik.system.NativeStart.main(Native Method) [ERROR] TiApplication: Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy [ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.setActivity(TiViewProxy.java:976) [ERROR] TiApplication: at org.appcelerator.titanium.proxy.TiViewProxy.setActivity(TiViewProxy.java:977) [ERROR] TiApplication: at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:175) [ERROR] TiApplication: at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:32) [ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:442) [ERROR] TiApplication: at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:524) [ERROR] TiApplication: at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18) [ERROR] TiApplication: at android.app.Activity.performCreate(Activity.java:5133) [ERROR] TiApplication: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) [ERROR] TiApplication: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175) [ERROR] TiApplication: ... 11 more {code}

    Appcelerator JIRA | 2 years ago | Stefan Schüller
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: java.util.HashMap cannot be cast to org.appcelerator.titanium.proxy.TiViewProxy

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.String cannot be cast to java.util.HashMap

      at ti.modules.titanium.ui.widget.TiUIText.processProperties()
    2. ti.modules.titanium
      TiUIText.processProperties
      1. ti.modules.titanium.ui.widget.TiUIText.processProperties(TiUIText.java:219)
      1 frame
    3. org.appcelerator.kroll
      KrollProxy.setModelListener
      1. org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1173)
      1 frame
    4. org.appcelerator.titanium
      TiViewProxy.add
      1. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:507)
      2. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
      3. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
      4. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
      5. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
      6. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
      7. org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:514)
      8. org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:498)
      9. org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:476)
      10. org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:677)
      11. org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:571)
      11 frames
    5. ti.modules.titanium
      WindowProxy.windowCreated
      1. ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:262)
      1 frame
    6. org.appcelerator.titanium
      TiActivity.onCreate
      1. org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
      2. org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:559)
      3. org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:673)
      4. org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
      4 frames
    7. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:6876)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1135)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3207)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3350)
      5. android.app.ActivityThread.access$1100(ActivityThread.java:222)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1795)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:158)
      9. android.app.ActivityThread.main(ActivityThread.java:7229)
      9 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
      2 frames