[bdbxml] Error doing a document delete.
Jim Endicott <[email protected]> Thu, 25 Aug 2005 14:37:57 +0000 (UTC)
| Newsgroups | gmane.comp.db.dbxml.general |
|---|---|
| Message-ID | <[email protected]> |
I am getting this error:
Transaction specified for a DB handle opened outside a transaction
java.lang.Exception: com.sleepycat.dbxml.XmlException: Error: Db::get: Invalid
argument, errcode = DATABASE_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_deleteDocument__SWIG_3(Native
Method)
at com.sleepycat.dbxml.XmlContainer.deleteDocument(XmlContainer.java:357)
at
com.vizible.xdb.bxdb.BDBXdbConnection.storeXmlResource(BDBXdbConnection.java:114)
Here is the code used to do the open:
EnvironmentConfig envConf = new EnvironmentConfig();
envConf.setAllowCreate(true);
envConf.setInitializeCache(true);
envConf.setInitializeLocking(true);
envConf.setInitializeLogging(true);
envConf.setTransactional(true);
envConf.setMaxLockers(65000);
envConf.setMaxLocks(65000*5);
envConf.setMaxLockObjects(65000*5);
myEnv = new Environment(envHome, envConf);
theMgr = new XmlManager(myEnv, new XmlManagerConfig());
XmlContainerConfig config = new XmlContainerConfig();
config.setTransactional(true);
config.setAllowCreate(true);
openedContainer = theMgr.openContainer(name, config);
Prior to this I had opened the same container with no transactions specified.
Could that previous open affect the second one? Does the manager just return the
same object when a second open is done?
Jim
------------------------------------------
To remove yourself from this list, send an
email to [email protected]