This discussion is archived
0 Replies Latest reply: Mar 21, 2013 10:05 AM by 998372 RSS

Berkeley DB XML Error: ../src/dbxml/nodeStore/NsEventReader.cpp Line: 829,

998372 Newbie
Currently Being Moderated
Hi,
berkeley xml db version: dbxml-2.5.16

I currently have a job (in java) which creates a container and inserts anywhere between 1,000 - 25,000 documents while the container is open and then closes container.

I have 5-15 separate processes that kick off an instance this job and each job inserts documents into separate containers(ie pid1 - container A, pid2 - container B, pid3 - container C etc).
The problem occurs randomly to any process with any one of the below errors:
1) com.sleepycat.dbxml.XmlException: Error: No such file or directory, errcode = DATABASE_ERROR
2) com.sleepycat.dbxml.XmlException: Error: Permission denied File: ../src/dbxml/nodeStore/NsEventReader.cpp Line: 829, errcode = DATABASE_ERROR

The odd thing about receiving the above errors is that when the processes are kicked off again, it goes through fine.

a snippet of the environment configuration:
BerkeleyErrorHandler berkeleyerrorhandler = new BerkeleyErrorHandler();
EnvironmentConfig      environmentConfig = new EnvironmentConfig();
                                        environmentConfig.setErrorHandler(berkeleyerrorhandler);
                                        environmentConfig.setAllowCreate(true);
                                        environmentConfig.setInitializeCache(true);
                                        environmentConfig.setInitializeLocking(true);
                                        environmentConfig.setCacheSize(255 * 1024 * 1024);
                                        environmentConfig.setThreaded(true);

Insertion of document:
String xmlDocument
xmlContainer.putDocument(docName, xmlDocument);

Java heap size: -Xmx2g
Ram: 256G
O.S.: SunOS 5.10

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points