Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.243
  HXTT Cobol 5.0.242
  Buy Now
  HXTT DBF 7.1.243
  HXTT Excel 6.1.246
  HXTT Json 1.0.214
  HXTT Paradox 7.1.242
  HXTT PDF 2.0.242
  HXTT Text(CSV) 7.1.242
  HXTT Word 1.1.242
  HXTT XML 4.0.243
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
Heng Xing Tian Tai Lab of Xi'an City (abbr, HXTT)

HXTT Cobol
NullPointerException during connect.
2013-07-27 01:23:10

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(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$
at java.util.concurrent.Executors$ Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$
... 6 more
Caused by: java.lang.NullPointerException
at Source)
at com.hxtt.sql.cobol.EmbeddedDriver.connect(Unknown Source)
at 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(
at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(
... 8 more
Re:NullPointerException during connect.
HXTT Support
2013-07-27 01:37:35
>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 Source)
It seems that HXTT Cobol met unexpected data blank clause in your data structure defination file. Please email us your sample.
Re:Re:NullPointerException during connect.
2013-07-27 01:59:40
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.

Re:Re:Re:NullPointerException during connect.
HXTT Support
2013-07-27 02:30:10
>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 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.

Search Key   Search by Last 50 Questions


Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap