I'm trying to access and migrate one our oldest database under Paradox. The most complete JDBC for this dbis not free. I found an open source alternative but when I try with the simplest code I get the above exception. This is my code.
GIT Project
Any hint will be welcomed.
GIT Project
CODE:
sql1.Initialize("com.googlecode.paradox.Driver", "jdbc:paradox:/E:/A2015_2016")
Dim RS As ResultSet = sql1.ExecQuery("SELECT * FROM Paie")
Do While RS.NextRow
Log(RS.GetString("col1"))
Loop
RS.Close
FULL STACK:
main._appstart (java line: 60)
java.sql.SQLException: No Prepared Statement
at com.googlecode.paradox.ParadoxConnection.prepareStatement(ParadoxConnection.java:517)
at cm.jahswant.paradox.SQL.ExecQuery2(SQL.java:134)
at b4j.example.main._appstart(main.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
at b4j.example.main.start(main.java:37)
at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$166(LauncherImpl.java:863)
at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$179(PlatformImpl.java:326)
at com.sun.javafx.application.PlatformImpl.lambda$null$177(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$178(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$152(WinApplication.java:177)
at java.lang.Thread.run(Thread.java:748)
Any hint will be welcomed.