com.sleepycat.dbxml.XmlException: Error: Cannot perform operation on document from a different container. The XmlDocument is from container container.dbxml, and this container is C:\home\DB_HOME\container.dbxml, errcode = INVALID_VALUE

Oracle Community | 747876 | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Error deleting document from berkeley db xml database

    Oracle Community | 7 years ago | 747876
    com.sleepycat.dbxml.XmlException: Error: Cannot perform operation on document from a different container. The XmlDocument is from container container.dbxml, and this container is C:\home\DB_HOME\container.dbxml, errcode = INVALID_VALUE

    Root Cause Analysis

    1. com.sleepycat.dbxml.XmlException

      Error: Cannot perform operation on document from a different container. The XmlDocument is from container container.dbxml, and this container is C:\home\DB_HOME\container.dbxml, errcode = INVALID_VALUE

      at com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_deleteDocumentInternal__SWIG_0()
    2. com.sleepycat.dbxml
      XmlContainer.deleteDocument
      1. com.sleepycat.dbxml.dbxml_javaJNI.XmlContainer_deleteDocumentInternal__SWIG_0(Native Method)
      2. com.sleepycat.dbxml.XmlContainer.deleteDocumentInternal(XmlContainer.java:924)
      3. com.sleepycat.dbxml.XmlContainer.deleteDocument(XmlContainer.java:398)
      3 frames
    3. dmi.search
      TestDocumentManager.testAddDocument
      1. dmi.search.DocumentManager.deleteDocument(DocumentManager.java:488)
      2. dmi.search.TestDocumentManager.testAddDocument(TestDocumentManager.java:75)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    5. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    6. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
      2. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      6. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      6 frames