iOS Question [Solved] Connect to JRDC2

yves67

Active Member
Licensed User
Longtime User
Hello
From an Ipad I am trying to connect to JRDC2 server and I got this error :

Class not found: _dbcommand, trying: b4j.example.main$_dbcommand
(RuntimeException) java.lang.RuntimeException: Cannot serialize object: 2017-01-
31 11:50:36.0
Command: , took: 343ms, client=78.208.0.37

My client code is :

Sub Connection_Click
Log("Bouton Connection_Click pressed")
Dim xyz As DBCommand
xyz.Initialize
xyz.Name = "select_contrats"
reqManager.ExecuteQuery(xyz, 0, Null)
End Sub

from Client side I received an Error 500

Thanks for any help

Regards
Yves
 

yves67

Active Member
Licensed User
Longtime User
If I write this code :

Sub Connection_Click
Log("Bouton Connection_Click pressed")
Dim cmd As DBCommand
cmd.Initialize
cmd.Name = "select_contrats"
reqManager.ExecuteQuery(cmd, 0, Null)
End Sub

I have an error on the line Dim cmd As DBCommand : cmd is not a valid identifier

I suppose I should use cmd, but why it is not a valid identifier ?
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
on JRDC2 I am using jRandomAccessFiles (version 2.20)
and on my client I am using iRandomAccessFile (version 1.71)
 
Upvote 0

yves67

Active Member
Licensed User
Longtime User
AH AH ....
I have found my problem, it is related with the TimeStamp....
I did a SELECT * FROM contrats
and in the contrats table there is a TimeStamp...

OK I close this post....
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…