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 | 4 months ago
  1. 0

    IllegalStateException: unable to start Activity ComponentInfo

    Stack Overflow | 4 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
    The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.
  3. 0
    Execute mvn dependency:tree from your project's root directory.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    In cause your problem comes because of mediastore, you have to try changing Albums.ALBUM_ID, to Albums._ID
  6. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").

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