Android Developer Console: Error Reports (NullPointerException)

Kevin

Well-Known Member
Licensed User
Longtime User
Splitting out my questions on error reports into separate threads per Erel's request. Also Erel, if you think other might have similar questions I suppose you could consider a separate sub-forum for the sole purpose of others troubleshooting or interpreting these reports if you think it might be worth it.

(Original thread)


NullPointerException: I have no idea where to even begin wondering how this error happened or what it really means. I just saw this one for the first time today (1 report).
B4X:
java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:145)
at anywheresoftware.b4a.BA$1.run(BA.java:210)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4914)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at com.cognitial.directvremote.httputilsservice._processnexttask(httputilsservice.java:188)
at com.cognitial.directvremote.httputilsservice._hc_responseerror(httputilsservice.java:127)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:105)
... 10 more
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
com.cognitial.directvremote.httputilsservice._processnexttask(httputilsservice.java:188)
The error happens in ProcessNextTask.
You didn't include the "debug information" so it is impossible to know the actual line that caused it without opening the generated Java source code. Open httputilsservice.java and post line number 188.
 
Upvote 0

Kevin

Well-Known Member
Licensed User
Longtime User
This should be it. I appreciate all of your help!

B4X:
(188)  if mostCurrent._httputils._working==anywheresoftware.b4a.keywords.Common.False) { 
(189)  //BA.debugLineNum = 58;BA.debugLine="StopService(\"\")";
(190)  anywheresoftware.b4a.keywords.Common.StopService(processBA,(Object)(""));
(191)  };


Edit to add: One thing that confuses me on these error logs is (for example) the following:

B4X:
at com.cognitial.directvremote.httputilsservice._processnexttask(httputilsservice.java:188)
at com.cognitial.directvremote.httputilsservice._hc_responseerror(httputilsservice.java:127)

To me in this case it is unclear whether the crash happened in processnexttask or hc_responserror.
 
Last edited:
Upvote 0

Kevin

Well-Known Member
Licensed User
Longtime User
Just wondering if anyone has any ideas on this one. I took measures to prevent the others today and would like to prevent this one if possible too.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…