[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

Reply via email to