Android Question B4A v.7.01 - Sub jobdone was not found.

FrankBerra

Active Member
Licensed User
Longtime User
After upgrading to B4A version 7.01 i receive this error in debug mode:
java.lang.Exception: Sub jobdone was not found.

while in relase mode (#BridgeLogger: True) i receive this error:
B4X:
java.lang.Exception: Sub jobdone was not found.
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:192)
    at anywheresoftware.b4a.keywords.Common$11.run(Common.java:1144)
    at android.os.Handler.handleCallback(Handler.java:751)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6290)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Anyone have suggestions on how to fix it?
 

FrankBerra

Active Member
Licensed User
Longtime User
The exception is rised for every httpjob. For example:
B4X:
    Dim OttieniEmail As HttpJob
    OttieniEmail.Initialize("OttieniEmail", "")
    OttieniEmail.PostString(Starter.IndirizzoServer & "/Email.php", "user=" & Funzioni.ImpostazioniGET("user") & "&token=" & Funzioni.ImpostazioniGET("token"))

B4X:
Sub JobDone (Job As HttpJob)

If Job.JobName="OttieniEmail" Then
   If Job.Success = True Then
   Dim result As String

   
      If result = "X" Then
            .....
     
    Else If result = "Y" Then
        ....
     
   
    Else
     
                .....
 
    End If
   Else
            .....
 
   End If
.....
Job.Release
End If
End Sub
 
Upvote 0
Top