Hi there!

I've got one more problem during the migration from 2.0 Beta to 2.0 Release.
When I turned on auto-versioning:

Domain.xml:
        <parameter name="auto-version-control">true</parameter>
slide.properties:
        # Use version control (DeltaV)
        # Default: true
        org.apache.slide.versioncontrol=true

 I can not create a new version of any resource. I.e., first I copy a file
to the store - everything is OK:

TP-Processor4, 28-Jul-2004 00:02:27, root, HEAD, 404 "Not Found", 32 ms,
/files/Programs/1.txt
TP-Processor3, 28-Jul-2004 00:02:27, root, PUT, 201 "Created", 1250 ms,
/files/Programs/1.txt

Then I try to overwrite it with a new version and the following exception
occurs:

TP-Processor2, 28-Jul-2004 00:03:38, root, HEAD, 200 "OK", 16 ms,
/files/Programs/1.txt
java.lang.NullPointerException
        at
org.apache.slide.content.NodeRevisionDescriptor.setProperty(NodeRevisionDesc
riptor.java:397)
        at
org.apache.slide.webdav.util.VersioningHelper.checkin(VersioningHelper.java:
1228)
        at
org.apache.slide.webdav.method.PutMethod.executeRequest(PutMethod.java:286)
        at
org.apache.slide.webdav.method.AbstractWebdavMethod.run(AbstractWebdavMethod
.java:343)
        at
org.apache.slide.webdav.WebdavServlet.service(WebdavServlet.java:165)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.slide.webdav.filter.LogFilter.doFilter(LogFilter.java:139)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:213)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:553)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
        at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
        at java.lang.Thread.run(Thread.java:536)
TP-Processor3, 28-Jul-2004 00:03:39, root, PUT, 500 "Internal Server Error",
375 ms, /files/Programs/1.txt

I've noticed that many important propeties including checkout-fork &
checkin-fork (which cause the exception) are missing in the corresponding
VHR's descriptor:

<?xml version="1.0" encoding="UTF-8"?>
<data>
  <objectnode classname="org.apache.slide.structure.SubjectNode"
uri="/history/3">
    <children>
      <child name="1.0" uuri="/history/3/1.0" />
    </children>
    <parents>
      <parent name="3" uuri="/history" />
    </parents>
    <links />
  </objectnode>
  <permissions />
  <locks />
  <revisionsHistory initialRevision="1.0" useVersioning="true">
    <branches>
      <branch name="main" lastestRevision="1.0" />
    </branches>
    <revisions>
      <branch start="1.0" />
    </revisions>
  </revisionsHistory>
  <descriptor>
    <revisions branchName="main" number="1.0">
      <labels />
      <properties>
        <property name="getetag" namespace="DAV:"
value="2b8e3965e27918eaa04544fddbf71359" type="" protected="true">
          <permissions />
        </property>
        <property name="predecessor-set" namespace="DAV:" value="" type=""
protected="true">
          <permissions />
        </property>
        <property name="source" namespace="DAV:" value="" type=""
protected="true">
          <permissions />
        </property>
        <property name="owner" namespace="DAV:" value="root" type=""
protected="true">
          <permissions />
        </property>
        <property name="comment" namespace="DAV:" value="INITIAL VERSION. "
type="" protected="false">
          <permissions />
        </property>
        <property name="getcontentlanguage" namespace="DAV:" value="en"
type="" protected="false">
          <permissions />
        </property>
        <property name="getlastmodified" namespace="DAV:" value="Wed, 28 Jul
2004 04:02:28 GMT" type="" protected="true">
          <permissions />
        </property>
        <property name="resourcetype" namespace="DAV:"
value="&lt;collection/&gt;" type="" protected="true">
          <permissions />
        </property>
        <property name="version-name" namespace="DAV:" value="1.0" type=""
protected="true">
          <permissions />
        </property>
        <property name="getcontentlength" namespace="DAV:" value="8" type=""
protected="true">
          <permissions />
        </property>
        <property name="getcontenttype" namespace="DAV:" value="text/plain"
type="" protected="false">
          <permissions />
        </property>
        <property name="modificationdate" namespace="DAV:"
value="2004-07-28T04:02:28Z" type="" protected="true">
          <permissions />
        </property>
        <property name="creationdate" namespace="DAV:"
value="2004-07-28T04:02:28Z" type="" protected="true">
          <permissions />
        </property>
        <property name="modificationuser" namespace="DAV:" value="root"
type="" protected="true">
          <permissions />
        </property>
        <property name="displayname" namespace="DAV:" value="3" type=""
protected="false">
          <permissions />
        </property>
        <property name="creationuser" namespace="DAV:" value="root" type=""
protected="true">
          <permissions />
        </property>
      </properties>
    </revisions>
    <revisions branchName="backup" number="0.0">
      <labels />
      <properties>
        <property name="getetag" namespace="DAV:"
value="62bde19e1d174fb1773a412963024ae8" type="" protected="true">
          <permissions />
        </property>
        <property name="owner" namespace="DAV:" value="root" type=""
protected="true">
          <permissions />
        </property>
        <property name="comment" namespace="DAV:" value="" type=""
protected="false">
          <permissions />
        </property>
        <property name="creator-displayname" namespace="DAV:" value="root"
type="" protected="false">
          <permissions />
        </property>
        <property name="getcontentlanguage" namespace="DAV:" value="en"
type="" protected="false">
          <permissions />
        </property>
        <property name="getlastmodified" namespace="DAV:" value="Wed, 28 Jul
2004 04:02:28 GMT" type="" protected="true">
          <permissions />
        </property>
        <property name="version-set" namespace="DAV:" value="&lt;D:href
xmlns:D=&quot;DAV:&quot;&gt;/history/3/1.0&lt;/D:href&gt;" type=""
protected="true">
          <permissions />
        </property>
        <property name="resourcetype" namespace="DAV:"
value="&lt;D:version-history xmlns:D=&quot;DAV:&quot; /&gt;&lt;D:collection
xmlns:D=&quot;DAV:&quot; /&gt;" type="" protected="true">
          <permissions />
        </property>
        <property name="getcontentlength" namespace="DAV:" value="0" type=""
protected="true">
          <permissions />
        </property>
        <property name="modificationdate" namespace="DAV:"
value="2004-07-28T04:02:28Z" type="" protected="true">
          <permissions />
        </property>
        <property name="creationdate" namespace="DAV:"
value="2004-07-28T04:02:28Z" type="" protected="true">
          <permissions />
        </property>
        <property name="modificationuser" namespace="DAV:" value="root"
type="" protected="true">
          <permissions />
        </property>
        <property name="creationuser" namespace="DAV:" value="root" type=""
protected="true">
          <permissions />
        </property>
        <property name="displayname" namespace="DAV:" value="3" type=""
protected="false">
          <permissions />
        </property>
      </properties>
    </revisions>
  </descriptor>
</data>


Seems that something is going wrong during the creation of the VHR... but
what?

Any help would be really appreciated.

Yours sincerely,
Andrey.


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

Reply via email to