java.lang.RuntimeException: Unable to start activity ComponentInfo{siphe.androidapp/siphe.androidapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.sql.Statement java.sql.Connection.createStatement()' on a null object reference

Stack Overflow | Siphe Mbude | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    My jdts driver is giving me an error for my android studio sql server connection

    Stack Overflow | 7 months ago | Siphe Mbude
    java.lang.RuntimeException: Unable to start activity ComponentInfo{siphe.androidapp/siphe.androidapp.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.sql.Statement java.sql.Connection.createStatement()' on a null object reference

    Root Cause Analysis

    1. java.lang.NullPointerException

      Attempt to invoke interface method 'java.sql.Statement java.sql.Connection.createStatement()' on a null object reference

      at siphe.androidapp.MainActivity$override.GetListViewValue()
    2. siphe.androidapp
      MainActivity.onCreate
      1. siphe.androidapp.MainActivity$override.GetListViewValue(MainActivity.java:87)
      2. siphe.androidapp.MainActivity$override.access$dispatch(MainActivity.java)
      3. siphe.androidapp.MainActivity.GetListViewValue(MainActivity.java:0)
      4. siphe.androidapp.MainActivity$override.onCreate(MainActivity.java:57)
      5. siphe.androidapp.MainActivity$override.access$dispatch(MainActivity.java)
      6. siphe.androidapp.MainActivity.onCreate(MainActivity.java:0)
      6 frames
    3. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5990)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
      5. android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3947)
      6. android.app.ActivityThread.access$900(ActivityThread.java:151)
      7. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
      8. android.os.Handler.dispatchMessage(Handler.java:102)
      9. android.os.Looper.loop(Looper.java:135)
      10. android.app.ActivityThread.main(ActivityThread.java:5254)
      10 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:372)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
      2 frames