This is a part of my stacktrace :

[...]
org.nuxeo.ecm.core.api.WrappedException

Exception: org.nuxeo.ecm.core.api.ClientException. message: Failed to 
check in document 434c7b11-785f-4743-b66a-a3bcece3494c

org.nuxeo.ecm.core.api.AbstractSession.checkIn(AbstractSession.java:1639)
org.nuxeo.ecm.core.api.AbstractSession.createDocumentSnapshot(AbstractSession.java:1423)
org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1316)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
[...]


org.nuxeo.ecm.core.api.WrappedException

Exception: org.nuxeo.ecm.core.api.DocumentException. message: Unable to 
perform versioning operation on non versionable node: 
/default-domain/workspaces/mon-workspace/mon-dossier/mon-mega-doc

org.nuxeo.ecm.core.versioning.custom.CustomVersioningService.checkVersionable(CustomVersioningService.java:375)
org.nuxeo.ecm.core.versioning.custom.CustomVersioningService.checkin(CustomVersioningService.java:101)
org.nuxeo.ecm.core.versioning.custom.CustomVersioningService.checkin(CustomVersioningService.java:61)
org.nuxeo.ecm.core.repository.jcr.JCRDocument.checkIn(JCRDocument.java:340)
org.nuxeo.ecm.core.api.AbstractSession.checkIn(AbstractSession.java:1630)
org.nuxeo.ecm.core.api.AbstractSession.createDocumentSnapshot(AbstractSession.java:1423)
org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1316)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[...]





Olivier Grisel <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
05/11/2007 11:10

To
[email protected]
cc

Subject
[Ecm] Re: Versioning problem






[EMAIL PROTECTED] a écrit :
> 
> Hello,
> 
> I want to make the Sample type versionable.
> 
> I added this to my sample.xsd schema file :
> 
> <xs:element name = “uid” type=”xs:String” />
> <xs:element name=”major_version” type=”xs:int” />
> <xs:element name=”minor_version” type=”xs:int” />
> 
> and this to my TypeService extension :
> 
> <facet name="Versionable" />
> 
> Then, I created a versioningrules-contrib.xml in OSGI-INF folder and
> added it in the manifest :
> 
[...]
> 
> When I modified a Sample document to increment the version, I had this
> error :
> 
> org.nuxeo.ecm.core.api.ClientException
> 
> org.nuxeo.ecm.core.api.WrappedException: Exception:
> org.nuxeo.ecm.core.api.ClientException. message: Failed to check in
> document 434c7b11-785f-4743-b66a-a3bcece3494c
> 
> 
org.nuxeo.ecm.platform.ui.web.shield.NuxeoErrorInterceptor.invokeAndWrapExceptions(NuxeoErrorInterceptor.java:94)
> 
> sun.reflect.GeneratedMethodAccessor189.invoke(Unknown Source)
> 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 
> java.lang.reflect.Method.invoke(Method.java:585)
> 
org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
> 
> 
org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:37)
> 

This part of the stacktrace does not show the true cause of the problem.

Anyway I would suggest you to reuse the default uid.xsd schema for your 
document
type in case there are some hardcoded reference to that schema in the 
code.

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm


_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to