Hello Everyone,
I am having a java.lang.NullPointerException thrown when using HttpUtils2, from the HttpJob class line 62. (CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)) I have sucessfully run the demo of this library, and can't find a reason for this. The logs are:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (fetchxml) Create **
** Service (fetchxml) Start **
httpjob_download (B4A line: 61)
CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)
java.lang.NullPointerException
at wowzamon.km.httpjob._download(httpjob.java:100)
at wowzamon.km.fetchxml._refreshtimer_tick(fetchxml.java:385)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.keywords.Common$4.run(Common.java:879)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:126)
at android.app.ActivityThread.main(ActivityThread.java:3997)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
I am trying to call the HttpJob.download function to download an xml file when a timer_tick event occurs in a background service. i checked the local variables and can't find anything out of place. I have tried using and emulator and my phone, and have the same result. Any help or hints in the right direction would be much appreciated.
-Kirby
I am having a java.lang.NullPointerException thrown when using HttpUtils2, from the HttpJob class line 62. (CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)) I have sucessfully run the demo of this library, and can't find a reason for this. The logs are:
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (fetchxml) Create **
** Service (fetchxml) Start **
httpjob_download (B4A line: 61)
CallSubDelayed2(HttpUtils2Service, "SubmitJob", Me)
java.lang.NullPointerException
at wowzamon.km.httpjob._download(httpjob.java:100)
at wowzamon.km.fetchxml._refreshtimer_tick(fetchxml.java:385)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
at anywheresoftware.b4a.keywords.Common$4.run(Common.java:879)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:126)
at android.app.ActivityThread.main(ActivityThread.java:3997)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:491)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
at dalvik.system.NativeStart.main(Native Method)
I am trying to call the HttpJob.download function to download an xml file when a timer_tick event occurs in a background service. i checked the local variables and can't find anything out of place. I have tried using and emulator and my phone, and have the same result. Any help or hints in the right direction would be much appreciated.
-Kirby