Re: [bdbxml] Crash in dbxml_javaJNI.XmlResults_next__SWIG_0
George Feinberg <[email protected]> Thu, 8 Sep 2005 17:00:21 -0400
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
Thomas, I see one problem in the program. Your run() method is open/closing the manager and container upon each iteration. This will not work in the presence of threading, and is not recommended, in general. You should share a single XmlManager and open XmlContainer object among threads, and only close when the application is exiting. Regards, George > Hi, we are using dbxml from the Java interface in a multithreaded > environment. (Tomcat Servlet Container) > I am experiencing the problem that the Java JNI code crashes > at calling XmlResults.next() when there are some threads querying > concurrently on the same database. The database contains about > 3000 rather little documents. > I have extracted a test-case and the stacktrace of the crash, > available at: > ftp://ftp.suse.com/pub/people/freitag/dbxml/MutithreadingTestCase.java > ftp://ftp.suse.com/pub/people/freitag/dbxml/hs_err_pid9916.log > Dbxml version is 2.1.8. > Does anyone know something about this issue? > ------------------------------------------ To remove yourself from this list, send an email to [email protected]