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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Siphe Mbude
, 1 year ago
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
via Stack Overflow by Sudarshan sridhar
, 1 year ago
Unable to start activity ComponentInfo{com.learning.myandroidapp/com.learning.myandroidapp.WebSitesActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.CharSequence android.view.MenuItem.getTitle()' on a null object reference
via GitHub by xiyanglove
, 1 year ago
Unable to start activity ComponentInfo{com.rxjr.rxcd.beta/me.iwf.photopicker.PhotoPickerActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
via GitHub by lbillon
, 2 years ago
Unable to start activity ComponentInfo{com.insalyon.les24heures/com.insalyon.les24heures.DayActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Boolean com.insalyon.les24heures.view.CustomDrawerLayout.isDrawerVisible()' on a null object reference
via Stack Overflow by Takeshi
, 2 years ago
Unable to start activity ComponentInfo{com.example.yjhpractice1extend/com.example.yjhpractice1extend.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.media.MediaPlayer com.example.yjhpractice1extend.MediaService.getPlayer()' on a null object reference
via Stack Overflow by csal
, 11 months ago
Unable to start activity ComponentInfo{com.brzozowski.marcin.inzynierka/com.brzozowski.marcin.inzynierka.activities.ChooseGroupActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.widget.Filter android.widget.SimpleAdapter.getFilter()' on a null object reference
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(MainActivity.java:87)
at siphe.androidapp.MainActivity$override.access$dispatch(MainActivity.java)
at siphe.androidapp.MainActivity.GetListViewValue(MainActivity.java:0)
at siphe.androidapp.MainActivity$override.onCreate(MainActivity.java:57)
at siphe.androidapp.MainActivity$override.access$dispatch(MainActivity.java)
at siphe.androidapp.MainActivity.onCreate(MainActivity.java:0)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3947)
at android.app.ActivityThread.access$900(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.