Hi,

The java & domain.xml code was copied from slide
"version" example. I added several lines to the java
file, which try to write the content to each
noderevision.

On the first run, I got exception "java.io.IOException
--- Too many bytes read". As a response, I then added
a line of code (line #103):
revisionDescriptor.setContentLength(-1).

I tried running again, and I got
"org.apache.slide.content.RevisionAlreadyExistException:
Revision 1.1 already exists on object /test"....

I then tried to run in debug mode, I set several
breakpoints, right before content.create(...) method
is called.... that gave me chances to delete "/test"
before content.create(...) is called. The result: I
didn't see that RevisionAlreadyExistException again...
But this is really weird, and I don't think it's right
(having to delete the file, before writing new
revision for that file).

What have I missed here?

Thanks in advance,
Raka (http://www.freeroller.net/page/donraka)

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com
<?xml version="1.0"?>

<slide>
  
  <namespace name="version">
    
    <definition>
      
      <store name="memory">
        <contentstore name="file" 
         classname="slidestore.file.FileContentStoreNoVersioning">
          <parameter name="rootpath">files</parameter>
        </contentstore>
      </store>
      
      <scope match="/" store="memory" />
      
    </definition>
    
    <configuration>
      <default-action>/actions</default-action>
      <userspath>/users</userspath>
      <filespath></filespath>
      <parameter name="dav">true</parameter>
      <parameter name="standalone">true</parameter>
    </configuration>
    
    <data>
      
      <objectnode classname="org.apache.slide.structure.SubjectNode" uri="/">
        
        <permission action="/actions" subject="/users/root"/>
        
        <!-- /users represents the unauthenticated user -->
        
        <objectnode classname="org.apache.slide.structure.SubjectNode" 
         uri="/users">
          
          <!-- /users/root represents the administrator -->
          
          <objectnode classname="org.apache.slide.structure.SubjectNode" 
           uri="/users/root">
          </objectnode>
          
          <!-- /users/guest represents an authenticated guest user -->
          
          <objectnode classname="org.apache.slide.structure.SubjectNode" 
           uri="/users/guest">
          </objectnode>
          
        </objectnode>
        
        <objectnode classname="org.apache.slide.structure.ActionNode" 
         uri="/actions">
        </objectnode>
        
      </objectnode>
      
    </data>
    
  </namespace>
  
</slide>
java.io.IOException: Too many bytes read
        at 
slidestore.file.FileContentStoreNoVersioning.createRevisionContent(FileContentStoreNoVersioning.java:280)
        at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1225)
        at 
org.apache.slide.store.StandardStore.createRevisionContent(StandardStore.java:653)
        at org.apache.slide.content.ContentImpl.create(ContentImpl.java:528)
        at net.siskomlabs.latihanslide1.TestRevision.main(TestRevision.java:104)
org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error 
: Too many bytes read
        at 
slidestore.file.FileContentStoreNoVersioning.createRevisionContent(FileContentStoreNoVersioning.java:293)
        at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1225)
        at 
org.apache.slide.store.StandardStore.createRevisionContent(StandardStore.java:653)
Closing data sources
        at org.apache.slide.content.ContentImpl.create(ContentImpl.java:528)
        at net.siskomlabs.latihanslide1.TestRevision.main(TestRevision.java:104)
----------------------------------------------
org.apache.slide.content.RevisionAlreadyExistException: Revision 1.1 already exists on 
object /test
        at 
slidestore.file.FileContentStoreNoVersioning.createRevisionContent(FileContentStoreNoVersioning.java:249)
        at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1225)
        at 
org.apache.slide.store.StandardStore.createRevisionContent(StandardStore.java:653)
        at org.apache.slide.content.ContentImpl.create(ContentImpl.java:528)
        at net.siskomlabs.latihanslide1.TestRevision.main(TestRevision.java:117)
org.apache.slide.common.ServiceAccessException: Service [EMAIL PROTECTED] access error 
: Revision 1.1 already exists on object /test
        at 
slidestore.file.FileContentStoreNoVersioning.createRevisionContent(FileContentStoreNoVersioning.java:296)
        at 
org.apache.slide.store.AbstractStore.createRevisionContent(AbstractStore.java:1225)
        at 
org.apache.slide.store.StandardStore.createRevisionContent(StandardStore.java:653)
        at org.apache.slide.content.ContentImpl.create(ContentImpl.java:528)
        at net.siskomlabs.latihanslide1.TestRevision.main(TestRevision.java:117)

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

Reply via email to