Hi
I try to make a connection with one MSSql Server
The Server run on a local network and I try to connect using my client computer.
When I run the Jrdc example I get the error
My jrdc example is modified like this
And my config.properties is like
I try to make a connection with one MSSql Server
The Server run on a local network and I try to connect using my client computer.
When I run the Jrdc example I get the error
B4X:
Waiting for debugger to connect...
Program started.
2019-06-19 11:30:46.802:INFO::main: Logging initialized @597ms to org.eclipse.jetty.util.log.StdErrLog
Ιουν 19, 2019 11:30:46 ΠΠcom.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
Ιουν 19, 2019 11:30:47 ΠΠcom.mchange.v2.c3p0.C3P0Registry
INFO: Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
2019-06-19 11:30:47.619:INFO:oejs.Server:main: jetty-9.4.z-SNAPSHOT; built: 2018-05-03T15:56:21.710Z; git: daa59876e6f384329b122929e70a80934569428c; jvm 1.8.0_172-b11
2019-06-19 11:30:47.673:INFO:oejs.session:main: DefaultSessionIdManager workerName=node0
2019-06-19 11:30:47.673:INFO:oejs.session:main: No SessionScavenger set, using defaults
2019-06-19 11:30:47.677:INFO:oejs.session:main: node0 Scavenging every 660000ms
2019-06-19 11:30:47.684:INFO:oejsh.ContextHandler:main: Started o.e.j.s.ServletContextHandler@e720b71{/,file:///C:/Users/malagrakism.LOGIOS/Desktop/jRDC2/jRDC/Objects/www,AVAILABLE}
2019-06-19 11:30:47.690:INFO:oejs.AbstractNCSARequestLog:main: Opened C:\Users\malagrakism.LOGIOS\Desktop\jRDC2\jRDC\Objects\logs\b4j-2019_06_19.request.log
2019-06-19 11:30:47.714:INFO:oejs.AbstractConnector:main: Started ServerConnector@2a70a3d8{HTTP/1.1,[http/1.1]}{0.0.0.0:17178}
2019-06-19 11:30:47.714:INFO:oejs.Server:main: Started @1511ms
Emulated network latency: 100ms
jRDC is running (version = 2.22)
My jrdc example is modified like this
B4X:
'Non-UI application (console / server application)
#Region Project Attributes
#CommandLineArgs:
#MergeLibraries: True
#End Region
'change based on the jdbc jar file
'#AdditionalJar: mysql-connector-java-5.1.27-bin
'#AdditionalJar: postgresql-9.4.1207
#AdditionalJar: sqljdbc42.jar
Sub Process_Globals
Public srvr As Server
Public rdcConnector1 As RDCConnector
Public const VERSION As Float = 2.22
Type DBCommand (Name As String, Parameters() As Object)
Type DBResult (Tag As Object, Columns As Map, Rows As List)
End Sub
Sub AppStart (Args() As String)
srvr.Initialize("")
rdcConnector1.Initialize
srvr.Port = rdcConnector1.serverPort
srvr.AddHandler("/test", "TestHandler", False)
srvr.AddHandler("/rdc", "RDCHandler", False)
srvr.Start
Log($"jRDC is running (version = $1.2{VERSION})"$)
StartMessageLoop
End Sub
And my config.properties is like
B4X:
#DATABASE CONFIGURATION
DriverClass=net.sourceforge.jtds.jdbc.Driver
JdbcUrl=jdbc:jtds:sqlserver://server:1443/MainDB
User=sa
Password=password1
#Java server port
ServerPort=17178