Hello,
My first question;
We have ONLY .dat files (no Cobol Copybook file, no Cobol source program, no FB record) which created by RM/COBOL 85 on SCO Unix.
Does HXTT Cobol driver support reading .dat files alone?
If yes second question;
I have downloaded your HXTT Cobol demo driver and installed it to SQuirreL SQL Client 3.5.0 for testing.
My OS is Windows 7 64bit
My java version (which is used by SQuirreL SQL Client) is jre1.7.0_25 64bit.
You know there is a predefined "HXTT Cobol Embedded" driver definition in SQuirreL SQL Client "Drivers" tab. I have modified it and added Cobol_Embedded_JDBC41.jar to extra class path.
There are two .dat files in windows F:\_COBOL folder.
My URL is: jdbc:cobol:///F:/_COBOL
When I tried to test the connection it gives following exception;
What is the problem here? Thanks.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(OpenConnectionCommand.java:132)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(OpenConnectionCommand.java:45)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$2.run(OpenConnectionCommand.java:115)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:175)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(OpenConnectionCommand.java:45)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$1.run(OpenConnectionCommand.java:104)
... 6 more
Caused by: java.lang.NullPointerException
at com.hxtt.sql.cobol.am.(Unknown Source)
at com.hxtt.sql.cobol.EmbeddedDriver.connect(Unknown Source)
at com.hxtt.global.SQLState.getConnection(Unknown Source)
at com.hxtt.sql.HxttDriver.if(Unknown Source)
at com.hxtt.sql.HxttDriver.connect(Unknown Source)
at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133)
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:167)
... 8 more
|
>We have ONLY .dat files (no Cobol Copybook file, no Cobol source program, no FB
> record) which created by RM/COBOL 85 on SCO Unix.
>Does HXTT Cobol driver support reading .dat files alone?
Then those information are stored in your Colbol application. Whether you can find an .xfd file for it?
>Caused by: java.lang.NullPointerException
>at com.hxtt.sql.cobol.am.(Unknown Source)
It seems that HXTT Cobol met unexpected data blank clause in your data structure defination file. Please email us your sample.
|
Thank you for your fast reply.
We have only .COB runtime files no .xfd files.
Is it possible to read .dat files without .xfd files?
Please give me an email address to send you a .DAT file
which we are trying to read.
Thanks.
|
>We have only .COB runtime files no .xfd files.
HXTT Cobol can read .cob file, if it's source code.
You should email support at hxtt.com your sample for NullPointerException. I don't think that one .dat wich will result it, because it will through eror for no data structure file.
|