Android Question JobDone Error

Declan

Well-Known Member
Licensed User
Longtime User
I am receiving the following error:
B4X:
** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
IsDeviceAdmin=true
IsDeviceOwner=true
IsLockTaskPermitted=true
IsLocked=false
IsDeviceOwner=true
JAVA [Initialize] eventname = objWFI
Unexpected event (missing RaiseSynchronousEvents): objwfi_oninitialized
Check the unfiltered logs for the full stack trace.
[isConnectedToInternet]true
Connected to Internet
** Activity (main) Resume **
[objWFI_onInitialized]
Network WIFI connected
WifiAvailable:true
WifiConnected:true
Ping Host:www.google.com
Ping:0
MobileAvailable:true
BroadcastReceiver::onReceive::android.net.conn.CONNECTIVITY_CHANGE
WiFi Is Available: True
WiFi Is Connected: True
Mobile Is Available: True
Internet Is Connected: True
Splash Playing Complete
WiFi is Connected
Check User ID
GOT User ID: 8307185042008
Starting App Updating
---- AppUpdating.ReadCurVN
    Current Version: 1.01
---- AppUpdating.ReadWebVN
** Service (httputils2service) Create **
** Service (httputils2service) Start **
---- AppUpdating.JobDone --
    JobName = JobWebVNonly, Success = true
    Read while in JobWebVNonly: ver=1.00
    Web version number: 1.00
Updating Complete - No New Version
Checking Ads
java.lang.RuntimeException: java.lang.Exception: Sub jobdone was not found.
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:165)
    at anywheresoftware.b4a.BA$2.run(BA.java:328)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5637)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
Caused by: java.lang.Exception: Sub jobdone was not found.
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:140)
    ... 9 more

Sub JobDone(Job As HttpJob) does exsist.
 

fixit30

Active Member
Licensed User
Longtime User
Without seeing your code it is very difficult to say.

My GUESS is that the JobDone sub is in the wrong module.

Which target module did you specify when you initialized the Http job?
 
Upvote 0

pappicio

Active Member
Licensed User
Longtime User
as I can see, maybe you have no job initialize:
"Unexpected event (missing RaiseSynchronousEvents): objwfi_oninitialized"
so, maybe, or jobdone sub was not initialized in right module, or never initialized, I think!
 
Upvote 0

Declan

Well-Known Member
Licensed User
Longtime User
Sorry, let me explain further:
I am not using a HTTP library.
I am using the Library: AppUpdating (V1.30)
B4X:
www.b4x.com/android/forum/threads/appupdating-automate-apps-updating-from-a-webserver.37783/
This Library incorporates the okHttp 1.01 and okHttpUtils 2.20 Libraries.

The AppUpdating is initialized:
Sub Globals: Dim apkupdt As cl_appupdate
Sub Activity_Create(FirstTime As Boolean): apkupdt.Initialize(Me,"update")

All above is in "Main" Activity
 
Upvote 0

Declan

Well-Known Member
Licensed User
Longtime User
Thanks Guys, sorted.
I had to reqManager.Initialize in the same module that I was calling the RDC in.
I had it delcraed in the Starter Service.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…