Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  Buy Now
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

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

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.0
>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.0
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.0
>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


Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap