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 | 5 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 | 5 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.

    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