Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.150
  HXTT Cobol 5.0.150
  HXTT DBF 7.1.151
  Buy Now
  HXTT Excel 6.1.154
  HXTT Json 1.0.122
  HXTT Paradox 7.1.150
  HXTT PDF 2.0.150
  HXTT Text(CSV) 7.1.150
  HXTT Word 1.1.150
  HXTT XML 4.0.151
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)

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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap