Yes, i will check that out. Thank you. But, if I catch the RevisionAlreadyExistException and call content.store() instead of create, should that not update the the existing revision?
I am still not sure why that subsequent update returns RevisionNotFoundException when it is in the catch block of a RevisionAlreadyExistException. -----Original Message----- From: Datta, Neela [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 4:50 PM To: 'Slide Users Mailing List' Subject: RE: Both RevisionAlreadyExist and RevisionNotFoundException? 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
