AnsweredAssumed Answered

View properties on past document versions

Question asked by anamanuel on Nov 13, 2009
Latest reply on Jun 7, 2010 by ragnaroek-hh
Hi!
I'm having an error when trying to view the properties of a past version of a document (clicking on the Properties link, in the version box of a document).
The error occurs in the class
org.alfresco.web.bean.repository.Node
function
getAssociations()
line
List<AssociationRef> assocs = getServiceRegistry().getNodeService().getTargetAssocs(this.nodeRef, RegexQNamePattern.MATCH_ALL);
and only for content with an association defined.
Is there any restriction to the use of versions on content with an association? Any ideas how to fix this?
Thanks

The error:
javax.faces.FacesException: java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.
caused by:
org.apache.jasper.JasperException: java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.
caused by:
java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.


javax.faces.FacesException: java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.apache.jasper.JasperException: java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
… 19 more
Caused by: java.lang.UnsupportedOperationException: This operation is not supported by a version store implementation of the node service.
at org.alfresco.repo.version.Node2ServiceImpl.getTargetAssocs(Node2ServiceImpl.java:208)
at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
at $Proxy8.getTargetAssocs(Unknown Source)
at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:306)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:306)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:274)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:274)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.getTargetAssocs(Unknown Source)
at sun.reflect.GeneratedMethodAccessor415.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.getTargetAssocs(Unknown Source)
at org.alfresco.web.bean.repository.Node.getAssociations(Node.java:141)
at org.alfresco.web.ui.repo.component.property.UIAssociationEditor.populateAssocationMaps(UIAssociationEditor.java:87)
at org.alfresco.web.ui.repo.component.property.BaseAssociationEditor.encodeBegin(BaseAssociationEditor.java:320)
at org.alfresco.web.ui.common.Utils.encodeRecursive(Utils.java:156)
at org.alfresco.web.ui.repo.renderer.property.PropertySheetItemRenderer.encodeChildren(PropertySheetItemRenderer.java:109)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:414)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
at org.apache.myfaces.shared_impl.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
at org.alfresco.web.ui.repo.component.property.UIPropertySheet.encodeEnd(UIPropertySheet.java:200)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:498)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:366)
at org.apache.jsp.jsp.content.versioned_002ddetails_jsp._jspx_meth_r_005fpropertySheetGrid_005f0(versioned_002ddetails_jsp.java:1614)
at org.apache.jsp.jsp.content.versioned_002ddetails_jsp._jspService(versioned_002ddetails_jsp.java:684)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
… 29 more

The model of one of the content types that are giving the error:
<?xml version='1.0' encoding='UTF-8'?>

<model name="kp_ra:kpraModel"
   xmlns="http://www.alfresco.org/model/dictionary/1.0">
   
   <description>Regulatory Affairs Content Model</description>
   <author>CSC</author>
   <version>1.0</version>
   
   <imports>
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>
   
   <namespaces>
      <namespace uri="kpra.model" prefix="kp_ra"/>
   </namespaces>
   <constraints>
      <!–
      Constraints for the aspect a_dossier
      –>
      <constraint name="kp_ra:t_license_owner_const"
         type="com.kern_pharma.contraints.combos.SingleCombo">
         <parameter name="queryType">
            <value> license </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_prod_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> products;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_api_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> api;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_dosage_form_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> dosage_form;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_dose_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> dose;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_prod_resp_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> prod_resp;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_coord_prod_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> coord_prod;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:t_prod_idbd_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> prod_idbd;'${kp_ra:t_prod}' </value>
         </parameter>
      </constraint>
      <!–
      Constraints for the type Document Dossier
      –>
      <constraint name="kp_ra:t_language_const"
         type="com.kern_pharma.contraints.combos.SingleCombo">
         <parameter name="queryType">
            <value> language </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:review_groups_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> groups </value>
         </parameter>
      </constraint>
      <constraint name="kp_ra:review_users_const"
         type="com.kern_pharma.contraints.combos.DossierDependentProperties">
         <parameter name="query">
            <value> users;'${kp_ra:t_review_groups}' </value>
         </parameter>
      </constraint>
   </constraints>
   
   <types>
      <!– **************** CONTENT TYPES*******************–>
      <!– DOCUMENT DOSSIER–>
      <type name="kp_ra:d_dossier">
         <parent>cm:content</parent>
         <properties>
            <property name="kp_ra:t_code">
               <type>d:text</type>
               <mandatory>true</mandatory>
            </property>
            <property name="kp_ra:i_edition">
               <type>d:int</type>
               <mandatory>false</mandatory>
            </property>
            <property name="kp_ra:t_language">
               <type>d:text</type>
               <mandatory>true</mandatory>
               <default>Spanish; Castilian</default>
               <constraints>
                  <constraint ref="kp_ra:t_language_const"/>
               </constraints>
            </property>
            <property name="kp_ra:d_creation">
               <type>d:date</type>
               <mandatory>false</mandatory>
            </property>
            <property name="kp_ra:t_notes">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
            <property name="kp_ra:t_review_groups">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
               <constraints>
                  <constraint ref="kp_ra:review_groups_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_review_users">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="kp_ra:review_users_const"/>
               </constraints>
            </property>
         </properties>
         <associations>
            <association name="kp_ra:as_parent_edition">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>kp_ra:d_dossier</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
         <mandatory-aspects>
            <aspect>kp_ra:a_dossier</aspect>
            <aspect>cm:versionable</aspect>
         </mandatory-aspects>
      </type>
   </types>
   <!– Custom aspects definitions –>
   <aspects>
      <!– ASPECTO DOSSIER–>
      <aspect name="kp_ra:a_dossier">
         <properties>
            <property name="kp_ra:t_prod">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="kp_ra:t_prod_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_api">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <constraints>
                  <constraint ref="kp_ra:t_api_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_dosage_form">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <constraints>
                  <constraint ref="kp_ra:t_dosage_form_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_dose">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="kp_ra:t_dose_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_license_owner">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>false</multiple>
               <constraints>
                  <constraint ref="kp_ra:t_license_owner_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_dossier_notes">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>
            <property name="kp_ra:t_prod_resp">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <constraints>
                  <constraint ref="kp_ra:t_prod_resp_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_coord_prod">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <constraints>
                  <constraint ref="kp_ra:t_coord_prod_const"/>
               </constraints>
            </property>
            <property name="kp_ra:t_prod_idbd">
               <type>d:text</type>
               <mandatory>false</mandatory>
               <multiple>true</multiple>
               <constraints>
                  <constraint ref="kp_ra:t_prod_idbd_const"/>
               </constraints>
            </property>
         </properties>
      </aspect>
   </aspects>
</model>

Version: 3.1 SP1
OS: RedHat CentOS 5.3
Database: Oracle 10
Application Server: Tomcat

Outcomes