B4J Question jRDC2 and Wait For close the connection

Alexander Stolte

Expert
Licensed User
Longtime User
Hello,

i have a problem in my jRDC2 project, i modify the project so i can call my API via HttpJob and the response i put in one of my sql parameter in the rdc.

The problem is:
B4X:
Dim j As HttpJob
j.Initialize("", Me)
j.Download("https://www.google.com")
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
   Log(j.GetString)
End If
j.Release

on this line: Wait For (j) JobDone(j As HttpJob)
the client become this response from the query:
B4X:
Error reading response: (EOFException) java.io.EOFException: Unexpected end of ZLIB input stream

If i now want to execute my sql statement then comes this error on my rdc:
B4X:
(Exception) java.lang.Exception:  java.sql.SQLException: You can't operate on a closed Connection!!!


is this not possible to call a webservice in the rdc?
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top