java.lang.RuntimeException: Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.

Appcelerator JIRA | Aminul Islam | 8 months ago
  1. 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 | 8 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.
  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 | 8 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

    All comments on Material Design Navigation Drawer Part 3: Android Tutorials [HD 1080p] - YouTube

    youtube.com | 1 year ago
    java.lang.RuntimeException: Unable to start activity ComponentInfo{carlosromero.example.com.floatbutton/carlosromero.example.com.floatbutton.MainActivity}: android.view.InflateException: Binary XML file line #28: Error inflating class fragment
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    android browse images failure delivering result error

    Stack Overflow | 5 years ago | jonny
    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/73 }} to activity {ianco.test.andrei/ianco.test.andrei.BrowsePicture}: java.lang.NullPointerException 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.deliverResults(ActivityThread.java:2553) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.handleSendResult(ActivityThread.java:2595) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread.access$2000(ActivityThread.java:121) 12-24 14:19:40.537: E/AndroidRuntime(5892): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:973)

  1. mhicauber 2 times, last 2 weeks ago
  2. dealloc 1 times, last 2 weeks ago
  3. Indri Yunita 16 times, last 4 days ago
  4. bmacedo 1 times, last 3 weeks ago
  5. Alexandru Popa 91 times, last 3 weeks ago
76 more registered users
19 unregistered visitors
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.RuntimeException

    Unable to start activity ComponentInfo{ch.inaffect.legi/org.appcelerator.titanium.TiActivity}: Unexpected CallbackManager, please use the provided Factory.

    at android.app.ActivityThread.performLaunchActivity()
  2. Android Platform
    ActivityThread.main
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2411)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2474)
    3. android.app.ActivityThread.access$800(ActivityThread.java:144)
    4. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1359)
    5. android.os.Handler.dispatchMessage(Handler.java:102)
    6. android.os.Looper.loop(Looper.java:155)
    7. android.app.ActivityThread.main(ActivityThread.java:5696)
    7 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1029)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:824)
    2 frames