java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.madhu.samplec/com.example.madhu.samplec.mtcresult}: java.lang.IllegalStateException: BusDataManager is not initialized, call initializeInstance(..) method first.

Stack Overflow | madhushri | 6 months 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

    IllegalStateException: unable to start Activity ComponentInfo

    Stack Overflow | 6 months ago | madhushri
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.madhu.samplec/com.example.madhu.samplec.mtcresult}: java.lang.IllegalStateException: BusDataManager is not initialized, call initializeInstance(..) method first.
  2. 0

    android crash exception with no root point

    Stack Overflow | 4 years ago | and_dev
    java.lang.IllegalStateException: Could not find a method onTabClicked(View) in the activity class att.uc.ui.screen.NewHomeTabActivity for onClick handler on view class android.widget.RelativeLayout with id 'tab_dialer' 01-07 13:39:33.138: W/System.err(12350): at android.view.View$1.onClick(View.java:3085) 01-07 13:39:33.143: W/System.err(12350): at android.view.View.performClick(View.java:3620) 01-07 13:39:33.143: W/System.err(12350): at android.view.View$PerformClick.run(View.java:14292) 01-07 13:39:33.143: W/System.err(12350): at android.os.Handler.handleCallback(Handler.java:605) 01-07 13:39:33.148: W/System.err(12350): at android.os.Handler.dispatchMessage(Handler.java:92) 01-07 13:39:33.148: W/System.err(12350): at android.os.Looper.loop(Looper.java:137) 01-07 13:39:33.148: W/System.err(12350): at android.app.ActivityThread.main(ActivityThread.java:4507)

    Root Cause Analysis

    1. java.lang.IllegalStateException

      BusDataManager is not initialized, call initializeInstance(..) method first.

      at com.example.madhu.samplec.BusDataManager.getInstance()
    2. com.example.madhu
      mtcresult.onCreate
      1. com.example.madhu.samplec.BusDataManager.getInstance(BusDataManager.java:26)
      2. com.example.madhu.samplec.Bus_StageRepo.getStage(Bus_StageRepo.java:60)
      3. com.example.madhu.samplec.mtcresult.displaylistview(mtcresult.java:537)
      4. com.example.madhu.samplec.mtcresult.onCreate(mtcresult.java:293)
      4 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5231)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2243)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2329)
      5. android.app.ActivityThread.access$800(ActivityThread.java:145)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1265)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5214)
      9 frames
    4. Java RT
      Method.invokeNative
      1. java.lang.reflect.Method.invokeNative(Native Method)
      1 frame