Android Question [JRDC] SocketTimeoutException: failed to connect to

T201016

Active Member
Licensed User
Hello!
The following error occurs during testing:

--------- beginning of main
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
** Service (httputils2service) Start **
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to /xxx.xxx.x.xxx (port XXXXX) after 30000ms, Response:
ResponseError. Reason: java.net.SocketTimeoutException: failed to connect to /xxx.xxx.x.xxx (port XXXXX) after 30000ms, Response:
ERROR (2): java.net.SocketTimeoutException: failed to connect to /xxx.xxx.x.xxx (port XXXXX) after 30000ms
ERROR (1): java.net.SocketTimeoutException: failed to connect to /xxx.xxx.x.xxx (port XXXXX) after 30000ms
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **

RemoteServer is running (08/06/2020 14:38:03)
Connection successful.

PC-Phone connection via WiFi is OK.
IP Address PC (or Router) - is OK
B4A-Bridge: Connected = is OK
Port XXXXX open in the firewall - is OK

Where else can you look for the cause? 🥵
Thanks in advance for any ideas ...
 

T201016

Active Member
Licensed User
Welcome back,
Well, when I try to open in the browser on the phone, giving the correct IP, no data is downloaded from the database. Although I admit that it used to work.

I think the DNS Server is to blame. I'm just changing the configuration of the Ethernet - Router, maybe it will help.

No less thank you Erel for paying attention
Best regards.
 
Upvote 0

T201016

Active Member
Licensed User
(ClassNotFoundException) java.lang.ClassNotFoundException: b4j.example.edittable$_dbcommand
Command: , took: 3ms, client= ...

Hi,
The above problems resulted from the wrong choice of DNS servers and Fireware settings, but another problem emerged along the way, namely:

I'd like to ask the experts
because I do not know if I am right, but when creating a B4A application, both the DBCommand and DBRequest types have to be UNConditionally declared in Proccess_Globals, i.e. in the main activity? Not in any other activity / class / service module.

Best regards.
 
Upvote 0
Top