java.lang.RuntimeException: Unable to instantiate service com.example.quotes.LocalService: java.lang.NullPointerException

Stack Overflow | Lisa Anne | 4 years ago
  1. 0

    NullPointerException when instantiating Messenger in Bound Service

    Stack Overflow | 4 years ago | Lisa Anne
    java.lang.RuntimeException: Unable to instantiate service com.example.quotes.LocalService: java.lang.NullPointerException
  2. 0

    NullPointerException when trying to instanciate a Messenger in onServiceConnected()

    Stack Overflow | 8 months ago | Alejandro Castilla
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
  3. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors
    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.NullPointerException

      No message provided

      at android.os.Binder.queryLocalInterface()
    2. Android Platform
      Messenger.<init>
      1. android.os.Binder.queryLocalInterface(Binder.java:230)
      2. android.os.IMessenger$Stub.asInterface(IMessenger.java:27)
      3. android.os.Messenger.<init>(Messenger.java:139)
      3 frames
    3. com.example.quotes
      LocalService.<init>
      1. com.example.quotes.LocalService.<init>(LocalService.java:21)
      1 frame
    4. Java RT
      Class.newInstance
      1. java.lang.Class.newInstanceImpl(Native Method)
      2. java.lang.Class.newInstance(Class.java:1319)
      2 frames
    5. Android Platform
      ActivityThread.main
      1. android.app.ActivityThread.handleCreateService(ActivityThread.java:2344)
      2. android.app.ActivityThread.access$1600(ActivityThread.java:130)
      3. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1277)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:137)
      6. android.app.ActivityThread.main(ActivityThread.java:4745)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame