Android Question Attempt to write to field 'boolean anywheresoftware.b4a.samples.httputils2.httpjob._success' on a nu

TIMX

Member
Licensed User
When I'm trying to connect to remote server with Jrdc2, I get "ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to /192.168.68.20 (port 17178) after 30000ms, Response: " and the thread in the JobDone sub return "SUCCESS" = FALSE and everithing is ok, I work offline, However, an other module i get error like a post title, that cause to stop my App.

Attach complete trace error
 

Attachments

  • Captura.PNG
    28.2 KB · Views: 270

TIMX

Member
Licensed User
Hi Erel, it's activity module, I create a modRemDbClass to manage the conection, commands, and CRUD process. For each activity module that i need I call to initialize the RemoteServer connection like reqManager.Initialize(target,link), then when I call a Query starts a Service (httputils2service) then sometimes work fine, the thread return
"SUCCESS" = FALSE but the most times I get the Exception posted before,
 
Upvote 0

TIMX

Member
Licensed User
For temporal solution I create a timer for each intent to connect to remote server, after a 5 seconds I execute StopService(httputils2service) and it Work fine for now
 
Upvote 0

OliverA

Expert
Licensed User
Longtime User
Can you post the code?
For temporal solution
It still would be nice if you could post some code that could reproduce this. Looking at the error message, I think that error should not happen and you may have actually exposed a bug in the httputils2service library/a condition that httputils2service may not handle properly.
 
Upvote 0

TIMX

Member
Licensed User
Attach code, some libraries are required:
An presition, I declare "Dim reqManager As DBRequestManager" in every Activity Module in Sub Process_Globals, it can be affect or cause the issue.
I'm thinking declare once reqManager on my codeModule calls Utils and for each activity modulde initialize this.
 

Attachments

  • ToAttach.zip
    26.1 KB · Views: 226
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…