el siguiente codigo funcionaba sin problema
the following code worked without problem
pero ahora, despues de descargar algunas actualizaciones recomendadas, me aparece el siguiente mensaje
but now, after downloading some recommended updates, I get the following message
Does anyone have any idea why this may be happening?
the following code worked without problem
B4X:
Public Sub GetArticulos
Try
bdLocal
Dim bandera As Boolean
Dim strquery As String
Dim req As DBRequestManager = CreateRequest
Dim cmd As DBCommand = CreateCommand("get_all_articulos", Null)
Log("Paso2")
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
Log("paso3")
bandera= False
If j.Success Then
req.HandleJobAsync(j, "req")
Wait For (req) req_Result(res As DBResult)
'' req.PrintTable(res)
If db.IsInitialized = False Then
db.Initialize(ruta , "siscom.db", True)
End If
' createArticulos
' evito duplicados
strquery = "delete from ARTICULOS"
db.AddNonQueryToBatch(strquery,Null)
Dim SenderFilter As Object = db.ExecNonQueryBatch("sql")
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
For Each row() As Object In res.Rows
strquery = "insert into ARTICULOS values (?,?,?)"
' Log(strquery)
bandera= True
db.AddNonQueryToBatch(strquery,Array(row(0),row(1),row(2)))
Next
Dim SenderFilter As Object = db.ExecNonQueryBatch("sql")
Wait For (SenderFilter) SQL_NonQueryComplete (Success As Boolean)
Log("NonQuery: " & Success)
tt.msgAlert("Sincronizando catalogos","Se ha actualizado el catalogo de Articulos",1)
db.ExecNonQuery("insert into bitacora select date('now'),'sincroniza','Articulos ok'")
Else
Log("ERROR: " & j.ErrorMessage)
tt.msgAlert("Sincronizando catalogos","Ocurrio un problema, no se pudo sincronizar el catalogo de articulos",1)
db.ExecNonQuery("insert into bitacora select date('now'),'sincroniza','Articulos fail'")
End If
j.Release
If bandera Then
Log("Articulos ok")
End If
Catch
db.ExecNonQuery("insert into bitacora select date('now'),'log','Fallo algo al importar articulos'")
Log(LastException)
End Try
End Sub
pero ahora, despues de descargar algunas actualizaciones recomendadas, me aparece el siguiente mensaje
but now, after downloading some recommended updates, I get the following message
Alguien tiene alguna idea por la cual puede estar ocurriendo estoPaso2
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
ResponseError. Reason: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'null'., Response: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'null'.</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'null'.</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
</html>
paso3
ERROR: <html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 500 com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'null'.</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /rdc. Reason:
<pre> com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'null'.</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.z-SNAPSHOT</a><hr/>
</body>
Does anyone have any idea why this may be happening?