Android Question ResponseError. Reason: java.io.IOException:

SHOLA KUKU

Member
Licensed User
ResponseError. Reason: java.io.IOException: unexpected end of stream on okhttp3.Address@aed07cd8, Response:

Greetings all,

Am getting the above error:

Additional jar entry:
AdditionalJar: jtds-1.3.1.jar
config.properties entry:
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://192.168.8.1xx/pdata
User=con
Password=con123
ServerPort=1433

Sub routine:
Sub GetRecord ()
Dim req As DBRequestManager = CreateRequest
Dim cmd As DBCommand = CreateCommand("selectbranches", Null)
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
Log(j.Success)
If j.Success Then
req.HandleJobAsync(j, "req")
Wait For (req) req_Result(res As DBResult)
'work with result
req.PrintTable(res)
Else
Log("ERROR: " & j.ErrorMessage)
End If
j.Release
End Sub


Any suggestions.
 
Last edited:

OliverA

Expert
Licensed User
Longtime User
Are you getting that error message on the jRDC server or on the client?
 
Upvote 0

SHOLA KUKU

Member
Licensed User
Here is the output from the logs:

upload_2019-10-23_19-34-47.png
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Run the server (the jRDC2 program) in B4J in debug mode and copy the logs showing us what happens server side (on the jRDC2 program) when this error happens on the B4A client side.
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
How are you currently running the jRDC2 server? What link did you use for your information to run it? Are you running the current version found here (https://www.b4x.com/android/forum/t...-rdc-remote-database-connector.61801/#content) or an older one? If it is an older one, you need to run the new version. According to your screen shot, you have something (hopefully the jRDC2 server) running on the machine with IP address 192.168.8.101 at port 1433.
 
Upvote 0
Top