Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
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.
Mr.Sea
2013-07-27 01:23:10
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
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 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.
Re:Re:NullPointerException during connect.
Mr.Sea
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.

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

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap