On Sat, Nov 14, 2009 at 03:06, Phukan, Anit <[email protected]> wrote: > Has anyone encountered this type of exceptions in real time > environments.Please refer to stack trace below. > > It occurs when we keep on hitting the jackrabbit repository multiple > number of times in our application flow testing.Not sure if it's a > concurrency related issue. I am using transient repository. > > Please let me know if anyone has any suggestions or workarounds for > this. > > > 2009-11-13 17:52:03,811 SEVERE > [com.sun.xml.ws.server.sei.EndpointMethodHandler] (http-0.0.0.0-8080-5) > javax.jcr.InvalidItemStateException: /: the item cannot be saved because > it has been modified externally. > java.lang.RuntimeException: javax.jcr.InvalidItemStateException: /: the > item cannot be saved because it has been modified externally.
An ItemStateException is to be expected in the JCR API, whenever an item was modified by another Session in the meantime. Your code should handle that gracefully, eg. show the user an information about the conflict, simply try again, etc. Regards, Alex -- Alexander Klimetschek [email protected]
