History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-749
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Georges Racinet
Reporter: George Lefter
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

exception when deleting a document in Search results

Created: 07/03/07 16:26   Updated: 13/08/07 17:44
Component/s: Query / Search
Affects Version/s: 5.1.RC
Fix Version/s: 5.1.0.GA

Time Tracking:
Not Specified

Issue Links:
Dependency
 

Resolution Date: 13/08/07 17:44
Require Callback: No
Participants: George Lefter, Georges Racinet, Solen Guitter and Thierry Delprat
Date of First Response: 23/04/07 13:05
Tags:


 Description  « Hide
- create a document
- click "Search"
- try to delete the document

Result: 2007-03-07 17:21:30,020 ERROR [org.nuxeo.ecm.core.api.ClientException] ClientException created...
org.nuxeo.ecm.core.api.ClientException: Failed to get parent documents: 43eeaa77-336f-4eb2-8230-911b908a6b11
    at org.nuxeo.ecm.core.api.AbstractSession.getParentDocuments(AbstractSession.java:716)
    at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
    at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
    at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
    at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:167)
    at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:100)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
    at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
....
Caused by: org.nuxeo.ecm.core.model.NoSuchDocumentException: No such document: No such document width uuid: b619ffc6-88d2-45bd-b51e-6cc408047925
    at org.nuxeo.ecm.core.jcr.JCRSession.getDocumentByUUID(JCRSession.java:250)
    at org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:66)
    at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:266)
    at org.nuxeo.ecm.core.api.AbstractSession.getCurrentLifeCycleState(AbstractSession.java:1402)
    ... 339 more
Caused by: javax.jcr.ItemNotFoundException: b619ffc6-88d2-45bd-b51e-6cc408047925
    at org.apache.jackrabbit.core.ItemManager.createItemInstance(ItemManager.java:467)
    at org.apache.jackrabbit.core.ItemManager.getItem(ItemManager.java:323)
    at org.apache.jackrabbit.core.SessionImpl.getNodeById(SessionImpl.java:460)
    at org.apache.jackrabbit.core.SessionImpl.getNodeByUUID(SessionImpl.java:437)
    at org.apache.jackrabbit.core.SessionImpl.getNodeByUUID(SessionImpl.java:763)
    at org.nuxeo.ecm.core.jcr.JCRSession.getDocumentByUUID(JCRSession.java:247)


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Thierry Delprat - 23/04/07 13:05
Selection table in result list need to be totally reworked.

Solen Guitter - 20/06/07 17:04
Georges, can you take a look at this and give a status ?

Georges Racinet - 26/06/07 20:41
looks like the deletion is correclty performed but the page isn't properly refreshed.
In most cases relaunching the search clears the problem. Might be caching of the SelectModel, but I'm not sure at all.

Also one can't expect it to really work if indexing is asynchronous, which is the case in default app right now.

Georges Racinet - 29/06/07 13:44
just retested: doc is not deleted at all

Georges Racinet - 09/08/07 15:28
One first bug if not all: if you were in the context of the deleted document before calling the search, you still are in this context while requesting deletion (check breadcrumb). Now after deletion, you get redirected to a place that doesnt exist any more. First call to the core (here climb up parents to infer the superspace) fails.


Georges Racinet - 09/08/07 16:30
Even before the SuperSpace thing, the Seam events get called for the context document model, which works only if one is deleting from a workspace contents view, and can produce error as above

Georges Racinet - 10/08/07 14:02
Also a minor Core problem

Georges Racinet - 13/08/07 17:44
Should be ok now