Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 DBF
NullPointerException on executeQuery
Lorenzo
2008-01-18 01:38:46.0
Hi,
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 com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.cy.executeQuery(Unknown 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




Google
 

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