We are working with the Slide 2.0 code base downloaded today and cannot get
versioning to work, using the client library, no matter what configuration
we try on the Domain.xml file.  Here are the configurations we have tried
so far, all producing the error at the end of this message:

Domain configuration (taken from output):
------------------------------------------------------------
org.apache.slide.lock=true,     org.apache.slide.versioncontrol=true,
org.apache.slide.debug=false,     org.apache.slide.search=true,
org.apache.slide.security=true,
org.apache.slide.domain=common/lib/Domain.xml

Domain parameters (taken from output):
----------------------------------------------------------
auto-version=checkout-checkin,     historypath=/history,
checkin-fork=forbidden,     workingresourcepath=/workingresource,
workspacepath=/workspace,      default=slide,
auto-version-control=true,
logger=org.apache.slide.util.logger.SimpleLogger,
checkout-fork=forbidden

Auto-versioning Test
-------------------------------
Stores:  JDBCDescriptorsStore & JDBCContentStore
<Domain parameter auto-version-control = true>
<Using Slide Client library>
WebdavResource connection = new WebdavResource
("http://root:root@localhost:8080/slide/files";);
connection.putMethod(connection.getPath() + "/test.xml", "<document>First
Version</document>");
connection.putMethod(connection.getPath() + "/test.xml", "<document>Next
Version</document>");    {causes error}

java.lang.NullPointerException
        at
org.apache.slide.webdav.util.VersioningHelper.checkin(VersioningHelpe
r.java:1203)
        at
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.jav
a:285)

Manual Versioning Test
------------------------------------
Stores:  JDBCDescriptorsStore & JDBCContentStore
<Domain parameter auto-version-control = false>
<Using Slide Client library>
connection.putMethod(connection.getPath() + "/test2.xml", "<document>First
Version</document>");
connection.versionControlMethod(connection.getPath() + "/test2.xml");
connection.checkoutMethod(connection.getPath() + "/test2.xml");
connection.putMethod(connection.getPath() + "/test2.xml", "<document>Next
Version</document>");
connection.checkinMethod(connection.getPath() + "/test2.xml");     {causes
error}

java.lang.NullPointerException
        at
org.apache.slide.webdav.util.VersioningHelper.checkin(VersioningHelpe
r.java:1203)
        at
org.apache.slide.webdav.util.VersioningHelper.checkin(VersioningHelpe
r.java:1060)
        at
org.apache.slide.webdav.method.CheckinMethod.executeRequest(CheckinMe
thod.java:167)


So, in both cases of versioning, the error occurs in the same place in the
VersioningHelper class.  Has anyone been able to get versioning working
through the Webdav client library??  We would appreciate any feedback on
this matter.  We hope its just a configuration issue, but we have tried
just about everything.  We are able to reproduce this error with a
(JDBCDescriptorsStore + FileContentStore) configuration and a
(XMLFileDescriptorsStore + FileContentStore) configuration as well...




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to