Problem in HTTPUtils

Kevin

Well-Known Member
Licensed User
Longtime User
I've been seeing the following lately in my dev console. Not sure why this would suddenly be a problem though, as it seems to be a problem getting DirInternalCache....

java.lang.RuntimeException: Unable to create service com.cognitial.directvremote.httputilsservice: java.lang.RuntimeException: java.lang.NullPointerException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:1959)
at android.app.ActivityThread.access$2500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:989)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:172)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:127)
at com.cognitial.directvremote.httputilsservice.onCreate(httputilsservice.java:38)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:1949)
... 10 more
Caused by: java.lang.NullPointerException
at anywheresoftware.b4a.objects.streams.File.getDirInternalCache(File.java:56)
at com.cognitial.directvremote.httputilsservice._service_create(httputilsservice.java:268)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:143)
... 13 more
 

Kevin

Well-Known Member
Licensed User
Longtime User
The crash reports don't tell me which device it happened on and as usual, the notes people left are not helpful.

What would be the best way to work around? Can I pop up a message box from a service? I guess uninstalling then reinstalling sometimes fixes it.
 
Upvote 0

Kevin

Well-Known Member
Licensed User
Longtime User
Digging up an old thread here, but I had made the changes as suggested which seemed to stop those errors completely.

Then I saw this new one today. I don't know what device it is on, but apparently this one can't locate DirInternal either. :sign0094:

What's left to try after those two? DirExternal? :D

java.lang.RuntimeException: Unable to create service com.cognitial.directvremote.httputilsservice: java.lang.RuntimeException: java.lang.NullPointerException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:1959)
at android.app.ActivityThread.access$2500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:989)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:172)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:127)
at com.cognitial.directvremote.httputilsservice.onCreate(httputilsservice.java:38)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:1949)
... 10 more
Caused by: java.lang.NullPointerException
at anywheresoftware.b4a.objects.streams.File.getDirInternal(File.java:49)
at com.cognitial.directvremote.httputilsservice._service_create(httputilsservice.java:288)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:143)
... 13 more
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0
Top