Hi guys,
I have an Android application to connect via jRDC2 to Ubuntu Server.
Application runs OK, until I use it on new server.
Here are the codes in B4A to connect to database
Error Messages are :
ResponseError. Reason: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable(), Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable()</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable()</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
</html>
Java version on old Server that runs OK is Oracle Java 1.8.0_171.
Java version that raised error on new server is OpenJdk 17.0.12.
Could it be the error cause by different Java version?
I have an Android application to connect via jRDC2 to Ubuntu Server.
Application runs OK, until I use it on new server.
Here are the codes in B4A to connect to database
B4X:
Sub Process_Globals
Private reqM As DBRequestManager
Public PUB_SVR_SYS As String = "http://123.456.789.001:17000/rdc"
End Sub
Sub Try2connect
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "connect"
cmd.Parameters = Array As Object("abc","123")
reqM.Initialize(Me,PUB_SVR_SYS) 'this line cause an error'
End Sub
Error Messages are :
ResponseError. Reason: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable(), Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable()</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@5b5cba25 -- timeout at awaitAvailable()</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
</html>
Java version on old Server that runs OK is Oracle Java 1.8.0_171.
Java version that raised error on new server is OpenJdk 17.0.12.
Could it be the error cause by different Java version?
Last edited: