XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Darek DzingielewskiSubject: berkeley db xml container update from stylus studio problem
Author: Darek Dzingielewski
Date: 05 Jun 2006 05:24 AM
hi, I got
1. Stytus Studio 2006 Enterprise Edition Build 501e
2. Berkeley DB XML 2.2.13

When
1)I'm trying to update document in container created directly using berkeley db java api in my app or
2)I'm trying to create new document in the same container or

i got message:
com.stylusstudio.sleepycat.dbxml.DBXMLException: Cannot write d:\Study\eclipse\imuba\workplace\database\containers\user.dbxml/test.xml.
java.lang.RuntimeException: com.sleepycat.dbxml.XmlException: Error: Invalid argument, errcode = DATABASE_ERROR
at com.stylusstudio.sleepycat.dbxml.DocWrapper.processThrow(DocWrapper.java:33)
at com.stylusstudio.sleepycat.dbxml.v2Container.doUpdate(v2Container.java:179)
at com.stylusstudio.sleepycat.dbxml.DBXMLFile$XMLMember.writeData(DBXMLFile.java:471)
at com.stylusstudio.sleepycat.dbxml.DBXMLFile$XMLMember.copyFromFile(DBXMLFile.java:584)
at com.stylusstudio.sleepycat.dbxml.DBXMLFile.copyFromFile(DBXMLFile.java:107)

And in the output window I got message:
"DBcursor->get: the DB_DIRTY_READ, DB_DEGREE_2 and DB_RMW flags require locking"


does anybody know what's the point ?

thanks for any help

best regards
dziku

Posttop
Darek DzingielewskiSubject: berkeley db xml container update from stylus studio problem
Author: Darek Dzingielewski
Date: 05 Jun 2006 05:36 AM
ok, i've found
it just should have been locking on in db environment:

EnvironmentConfig ec = new EnvironmentConfig();
ec.setInitializeLocking(true);

dziku

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.