I am new to Berkeley DB XML and have run into a problem. I am using Java 7 as my language and Netbeans 7.0.1 as my platform. I have reached the point where I can load documents into a container. I recently added a Dump function to display all of the documents in the container on the Output window of the platform. I used XmlContainer.getAllDocuments() and listed the XmlResults. That works fine. The problems is that when I next try to load any more documents into the container, the call to XmlContainer.putDocument() does not return. The platform hangs and I am forced to shut it down hard. This does not cause any corruption to the container. I can restart and add documents, but, if I try to dump again, I get the same behavior. The code that dumps is as follows:
What version of BDB XML are you using? When the call to XmlContainer.putDocument() does not return, please attach in the debugger. At that point, if the process is hung, what is the stack. If the process is spinning please get a couple of stacks to represent what is going on.