Kevin Well-Known Member Licensed User Longtime User Sep 13, 2011 #1 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). Code: Copy 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
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). Code: Copy 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 Sep 14, 2011 #2 com.cognitial.directvremote.httputilsservice._processnexttask(httputilsservice.java:188) Click to expand... 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
com.cognitial.directvremote.httputilsservice._processnexttask(httputilsservice.java:188) Click to expand... 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.
Kevin Well-Known Member Licensed User Longtime User Sep 15, 2011 #3 This should be it. I appreciate all of your help! Code: Copy (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: Code: Copy 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: Sep 15, 2011 Upvote 0
This should be it. I appreciate all of your help! Code: Copy (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: Code: Copy 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.
Kevin Well-Known Member Licensed User Longtime User Sep 17, 2011 #4 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
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.
Erel B4X founder Staff member Licensed User Longtime User Sep 18, 2011 #5 The crash happened in processnexttask. The logs show the complete stack of methods. I think that the error happened in a different line than the one you posted. When you change your B4A code then the Java line numbers also change. Upvote 0
The crash happened in processnexttask. The logs show the complete stack of methods. I think that the error happened in a different line than the one you posted. When you change your B4A code then the Java line numbers also change.