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
Paul HermansSubject: Berkeley DB XML integration
Author: Paul Hermans
Date: 17 Jul 2006 06:51 AM
I have a database environment with path "c:\xmldb"
Within this environment I have one container ("c:\xmldb\spil.dbxml").

Via the dbxml shell I can CRUD whatever I want.

The content of the BerkeleyDBXML file in the Stylus Environment

<dbxml validate="false" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BerkeleyDBXML.xsd">
<dbenv path="c:\xmldb"/>
</dbxml>

If I open however Berkeley DB XML in the File Explorer pane of Stylus, I get an overview of my filesystem with disks C:, D: and S:

I'm rather puzzled by this.


Paul

Postnext
(Deleted User) Subject: Berkeley DB XML integration
Author: (Deleted User)
Date: 17 Jul 2006 10:52 AM
Paul,

Our model allows you to browse your entire file system and access (read-only) any .dbxml container whether or not it is in a database environment.

If the container you select happens to be in a database environment listed in the BerkeleyDBXML file, then we will allow read/write access to the container.

Clyde Kessel

Postnext
Paul HermansSubject: Berkeley DB XML integration
Author: Paul Hermans
Date: 17 Jul 2006 11:12 AM
Clyde,

Thanks. This point is clear now. I can indeed navigate to the dbxml files and I'm able to see and open the indexed xml files.

However if I want to write a file back to the container in an environment included in the BerkeleyDBXML.xml I receive following error:

com.stylusstudio.sleepycat.dbxml.DBXMLException: Cannot write c:\dbxml\spil.dbxml/a.
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)

Thanks again for the help.

Paul

Postnext
(Deleted User) Subject: Berkeley DB XML integration
Author: (Deleted User)
Date: 17 Jul 2006 11:35 AM
Paul,

I'd like to troubleshoot this off line.
Can you please send a email to stylus-field-report?
Let us know which version of dbxml you are using.
If the files are not too large, can you attach copies of them?

Thanks very much,
Clyde Kessel

Posttop
(Deleted User) Subject: Berkeley DB XML integration
Author: (Deleted User)
Date: 19 Jul 2006 10:19 AM
For the record, Paul's Berkeley DB was created with transactions enabled, but locking disabled. Any attempt to update containers in this situation
will generate the error message from the Berkeley DB XML system.

com.stylusstudio.sleepycat.dbxml.DBXMLException: Cannot write...
...
...
DBcursor->get: the DB_DIRTY_READ, DB_DEGREE_2 and DB_RMW flags require locking.

To cure the problem, it is necessary to recreate the database with both
transactions and locking enabled.

Clyde

 
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.