Hi there
I hope someone can help me with the challenge of passing a list in config.properties file.
My b4j code:
I'm getting this error:
Error from nohup in VPS
When I pass 3 objects it works:
Thank you in advance
I hope someone can help me with the challenge of passing a list in config.properties file.
config.properties string:
sql.mark_orders_pushed_to_dashboard=UPDATE orderSummary_Table SET Pushed_To_Dashboard = 1 WHERE Order_ID IN (#)
My b4j code:
B4X:
Public Sub Echo_Test
Dim orderIDs As List
orderIDs.Initialize
orderIDs.AddAll(Array As String("ORD_SHOP001_1463", "ORD_SHOP002_9851", "ORD_SHOP003_5781"))
Dim params(orderIDs.Size) As Object
For i = 0 To orderIDs.Size - 1
params(i) = orderIDs.Get(i)
Next
Dim cmd As DBCommand = CreateCommand("mark_orders_pushed_to_dashboard", Array As Object(params))
Dim req As DBRequestManager
req.Initialize(Me, rdcLink)
req.ExecuteCommand(cmd, Null)
Wait For JobDone(j As HttpJob)
If j.Success Then
Log("✅ Update successful")
Else
Log("❌ Update failed: " & j.ErrorMessage)
End If
j.Release
End Sub
I'm getting this error:
B4X:
❌ Update failed: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 org.eclipse.jetty.io.EofException: Closed</title>
</head>
<body><h2>HTTP ERROR 500 org.eclipse.jetty.io.EofException: Closed</h2>
<table>
<tr><th>URI:</th><td>/rdc</td></tr>
<tr><th>STATUS:</th><td>500</td></tr>
<tr><th>MESSAGE:</th><td>org.eclipse.jetty.io.EofException: Closed</td></tr>
<tr><th>SERVLET:</th><td>anywheresoftware.b4j.object.JServlet-4e08711f</td></tr>
</table>
<hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 11.0.9</a><hr/>
</body>
</html>
Error from nohup in VPS
B4X:
(SQLException) java.sql.SQLException: No value specified for parameter 2
(EofException) org.eclipse.jetty.io.EofException: Closed
Command: , took: 10ms, client=105.209.231.27
When I pass 3 objects it works:
B4X:
Dim cmd As DBCommand = CreateCommand("mark_orders_pushed_to_dashboard", Array As Object( _
orderIDs.Get(0), orderIDs.Get(1), orderIDs.Get(2)))
Thank you in advance