Results 1 to 2 of 2
  1. #1

    NullPointerException GoogleCloudMessaging.register(Unknown Source)

    Hello,

    Does anybody know why I get the following exception. What I basically try to do is to load a map on a UI but I get this exception.
    Thanks.

    10-14 14:13:59.378 28217-30410/nableamea.prmapp W/InstanceID/Rpc: Failed to resolve REGISTER intent, falling back
    10-14 14:13:59.378 28217-30410/nableamea.prmapp W/InstanceID/Rpc: Both Google Play Services and legacy GSF package are missing
    10-14 14:13:59.382 28217-30410/nableamea.prmapp W/dalvikvm: threadid=17: thread exiting with uncaught exception (group=0xa6216908)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: java.lang.RuntimeException: An error occured while executing doInBackground()
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at android.os.AsyncTask$3.done(AsyncTask.java:299)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.FutureTask.finishCompletion(F utureTask.java:352)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.FutureTask.setException(Futur eTask.java:219)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.jav a:239)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTas k.java:230)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1080)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.lang.Thread.run(Thread.java:856)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: Caused by: java.lang.NullPointerException
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at com.google.android.gms.gcm.GoogleCloudMessaging.re gister(Unknown Source)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at com.cisco.cmx.network.CMXClient$1.doInBackground(C MXClient.java:510)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at com.cisco.cmx.network.CMXClient$1.doInBackground(C MXClient.java:506)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at android.os.AsyncTask$2.call(AsyncTask.java:287)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.FutureTask.run(FutureTask.jav a:234)
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTas k.java:230)*
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker( ThreadPoolExecutor.java:1080)*
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)*
    10-14 14:13:59.382 28217-30410/nableamea.prmapp E/AndroidRuntime: at java.lang.Thread.run(Thread.java:856)*
    10-14 14:13:59.406 28217-28217/nableamea.prmapp W/EGL_genymotion: eglSurfaceAttrib not implemented

  2. #2
    A little more code would help... How do you retrieve the gcm instance? It expects the ApplicationContext???



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •