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!
|