B4J Question java.lang.reflect.InvocationTargetException if to make CallSub2

peacemaker

Expert
Licensed User
Longtime User
Hi, All

A class has internal HTTP requests and with callbacks:
B4X:
Sub handleRequestUploadPath(Job As HttpJob, res As String)
    Dim parser As JSONParser
    parser.Initialize(res)
    Dim root As Map = parser.NextObject
    root.Put("Tag", Job.Tag)
    If SubExists(Me, "meyadisk_RequestUploadPath") Then
        CallSub2(Me, "meyadisk_RequestUploadPath", root)    'ME - it's the class itself
    End If
End Sub

And in DEBUG mode sometimes i have error in this CallSub2 line:

Mostly all works OK.
But sometimes is this error, what does it mean ? The class itself always exists...
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…