I'm moving everything to this new service ... And so far everything has worked correctly I have several queries working correctly, but in this specific one I get an error that I do not know exactly where it comes from. If the query gives me a result without data it works correctly but if it gives results I skip the error of the log.
(log)
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 java.lang.RuntimeException: Object should first be initialized (JavaObject).</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> java.lang.RuntimeException: Object should first be initialized (JavaObject).</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
(b4a)
Really thx
(log)
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 java.lang.RuntimeException: Object should first be initialized (JavaObject).</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> java.lang.RuntimeException: Object should first be initialized (JavaObject).</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
(b4a)
B4X:
Sub Login_Click
Dim login_ok As Boolean
ProgressDialogShow2("Espere..",True)
Dim req As DBRequestManager = CreateRequest
Dim cmd As DBCommand = CreateCommand("select_login",Array(num_serie.Text,login_pass.text))
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(x As HttpJob)
If x.Success Then (error in this line)
req.HandleJobAsync(x, "req")
Wait For (req) req_Result(res As DBResult)
For Each row() As Object In res.Rows
login_ok=True
Next
Else
Msgbox("ERROR: " & x.ErrorMessage,"yo")
End If
x.Release
ProgressDialogHide
If login_ok =True Then
Msgbox("LOGIN CORRECTO","INFORMACIÓN")
Else
Msgbox("LOGIN INCORRECTO","INFORMACIÓN")
End If
End Sub
Really thx
Last edited: