check in your files directory maybe you already have a versioned file from
the previous execution time.

--Neela

-----Original Message-----
From: Robert Priest [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 11:53 AM
To: 'Slide Users Mailing List'
Subject: Both RevisionAlreadyExist and RevisionNotFoundException?


Can anyone tell me how it is possible that I
call content.create(), receive a RevisionAlreadyExistException, catch it and
call content.store() to update rather than create;
and produce the following error:

org.apache.slide.content.RevisionDescriptorNotFoundException: No revision
descriptor found on object.




Here is my code:

 try
   {
   content.create(slideToken, uri, revisionDescriptor, revisionContent);
   }
 catch(RevisionAlreadyExistException raee)
   {
   System.out.println(" Revision Already created calling content.store()");
   content.store(slideToken, uri, revisionDescriptor, revisionContent);
   }

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

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

Reply via email to