Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  Buy Now
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.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 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 Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap