Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
  Buy Now
  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
Heng Xin Tian Tai Ltd. of Beijing City (abbr, HXTT)

NullPointerException on executeQuery
2008-01-18 01:38:46.0
I'm developing a little dbf reader, querying some files in a multi-threaded environment. During the query process I'm getting this exception on some files:

java.lang.Exception: SQLException java.lang.NullPointerException
at Source)
at Source)
at com.hxtt.sql.ab.a(Unknown Source)
at Source)

If I retry uploading these files sometimes they do not thow the exception any more.
It seems to be an aleatory error, on certain files, but all the dbfs are generated by the same machine in the same way.
I'm using Hibernate to get the connection to the dbf file through a session, the same session is shared between threads. Each thread instantiates a connection to a different file, eventually in a different folder.
The Hibernate session is gotten from the father folder and then each connection to a subdir file is taken adding the path as specified in FAQ.
Can the multi-threaded environment cause this exception?
I think it's caused by certain dbf files, but after opening them with other tools or converting in csv they result similar to the ones without accessing errors.
Does anyone encountered this problem?
Thanks for your support!

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xin Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap