Thanks Alex, Would you or anyone else who has encountered it be able to throw some light on the following exception state that I am currently getting:
2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) javax.jcr.RepositoryException: /: cannot save a new item. 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at org.apache.jackrabbit.core.ItemImpl.getTransientStates(ItemImpl.java:334 ) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at org.apache.jackrabbit.core.ItemImpl.save(ItemImpl.java:1069) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at org.apache.jackrabbit.core.SessionImpl.save(SessionImpl.java:818) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at com.intuit.internal.objectstore.IStoreObjectImpl.persist(IStoreObjectImp l.java:223) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at java.lang.reflect.Method.invoke(Method.java:597) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at com.sun.xml.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.jav a:246) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146) 2009-11-16 09:59:47,771 ERROR [STDERR] (http-0.0.0.0-8080-1) at com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHan dler.java:257) Thanks Anit -----Original Message----- From: Alexander Klimetschek [mailto:[email protected]] Sent: Monday, November 16, 2009 4:26 AM To: [email protected] Subject: Re: Invalid item state exception 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]
