You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Cokorda Raka Angga Jananuraga <do...@yahoo.com> on 2003/06/02 16:16:16 UTC

Problem with versioning (newbie)

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

Re: Problem with versioning (newbie)

Posted by Cokorda Raka Angga Jananuraga <do...@yahoo.com>.
Hi,

Does it mean, because the versioning will be using
DeltaV, our application must interact with Slide via
WebDav?

Btw: that example worked with no problem before I
added some lines of code to write contents to the
nodes created. But when I added those lines, the
problem I reported occurs. What have I did wrong? I
was expecting something like one file for each
revision will be created, but I got that exception.

Thanks in advance,
Raka

--- Andreas Probst <an...@gmx.net> wrote:
> Hi,
> 
> just a short remark: The versioning you look at is
> the 
> versioning which should be working fine when you're
> using the 
> Slide API. However, this is not how versioning works
> with 
> DeltaV, the versioning extensions to WebDAV. If you
> are 
> interested in this, you better read the RFC 3253. 
> http://www.ietf.org/rfc/rfc3253.txt
> 
> Regards.
> 
> Andreas
> 
> 
> On 2 Jun 2003 at 7:22, Cokorda Raka Angga Jananuraga
> wrote:
> 
> > Hi, I forgot the introductory paragraph :P
> > 
> > I'm trying to learn how versioning work in Slide.
> So,
> > I did some little things with "version" example in
> > slide dist... and I ran into a little trouble....
> > Please help.
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> slide-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Problem with versioning (newbie)

Posted by Andreas Probst <an...@gmx.net>.
Hi,

just a short remark: The versioning you look at is the 
versioning which should be working fine when you're using the 
Slide API. However, this is not how versioning works with 
DeltaV, the versioning extensions to WebDAV. If you are 
interested in this, you better read the RFC 3253. 
http://www.ietf.org/rfc/rfc3253.txt

Regards.

Andreas


On 2 Jun 2003 at 7:22, Cokorda Raka Angga Jananuraga wrote:

> Hi, I forgot the introductory paragraph :P
> 
> I'm trying to learn how versioning work in Slide. So,
> I did some little things with "version" example in
> slide dist... and I ran into a little trouble....
> Please help.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org


Re: Problem with versioning (newbie)

Posted by Cokorda Raka Angga Jananuraga <do...@yahoo.com>.
Hi, I forgot the introductory paragraph :P

I'm trying to learn how versioning work in Slide. So,
I did some little things with "version" example in
slide dist... and I ran into a little trouble....
Please help.

--- Cokorda Raka Angga Jananuraga
<do...@yahoo.com> wrote:
> 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
> slidestore.file.FileContentStoreNoVersioning@ba6c83
> 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
> slidestore.file.FileContentStoreNoVersioning@ba6c83
> 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:
> slide-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
slide-user-help@jakarta.apache.org


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-user-help@jakarta.apache.org