Hi:
I'm testing jrdc2 and I'm having next issue
My config.properties
My jrdc.b4j
If I test in chrome: http://localhost:17178/semi I get a successful connection.
My b4a project:
When I run the b4a project and press BtLogin I get the error:
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Error reading response: (ZipException) java.util.zip.ZipException: incorrect header check
I've checked the forum, I've found a similar thread and I've tried the solutions: update the SDK files, and checked I'm using latest versions of jrdc2 and DBRequestManager.
Thanks in advance¡
I'm testing jrdc2 and I'm having next issue
My config.properties
B4X:
#DATABASE CONFIGURATION
DriverClass=com.mysql.jdbc.Driver
JdbcUrl=jdbc:mysql://localhost/semi?characterEncoding=utf8
User=root
Password=*****
#Java server port
ServerPort=17178
.
.
.
sql.login=SELECT * FROM usuarios WHERE usuario=? AND password=md5(?)
My jrdc.b4j
B4X:
'change based on the jdbc jar file
#AdditionalJar: mysql-connector-java-5.1.44-bin
'#AdditionalJar: postgresql-9.4.1207
...
Sub AppStart (Args() As String)
srvr.Initialize("")
...
srvr.AddHandler("/semi", "TestHandler", False)
...
End Sub
If I test in chrome: http://localhost:17178/semi I get a successful connection.
My b4a project:
B4X:
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("login")
reqManager.Initialize(Me, "http://192.168.1.60:17178/semi") 'my local computer with the b4j project running
End Sub
Sub BtLogin_Click
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "login"
reqManager.ExecuteQuery(cmd, 0, Null)
End Sub
Sub ReqManager_Result(result As DBResult)
Dim Record() As Object
Record = result.Rows.Get(0) ' The First Record,
ToastMessageShow( Record(result.Columns.Get("usuario")) , False )
'ToastMessageShow( Record(result.Columns.Get("name")) , False )
End Sub
When I run the b4a project and press BtLogin I get the error:
*** Service (httputils2service) Create ***
** Service (httputils2service) Start **
Error reading response: (ZipException) java.util.zip.ZipException: incorrect header check
I've checked the forum, I've found a similar thread and I've tried the solutions: update the SDK files, and checked I'm using latest versions of jrdc2 and DBRequestManager.
Thanks in advance¡