cancel
Showing results for 
Search instead for 
Did you mean: 

Edit online/offline not working after upgrade to 3Stable

chemeddl
Champ in-the-making
Champ in-the-making
We have upgraded to Alfresco 3Stable from 3c. One problem we have is some existing content cannot be edited either online or offline. The content we cannot edit seems to be restricted to the Data Dictionary: Presentation Templates, Models, Web Client Extensions, and Web Scripts that we created and were able to edit both online and offline in 3c can no longer be edited in 3Stable. Data Dictionary content that we did not create can still be edited as can content outside the Data Dictionary that we have tried. Even though we cannot edit the content online or check it out for offline editing, the content is successfully downloaded and links/node references in the Details page of Explorer work and are valid.

The error we get when attempting to Edit Online using the Explorer Action icon indicates a missing node.
javax.faces.el.EvaluationException: Exception while invoking expression #{EditOnlineDialog.handleHttpEditing}
caused by:
org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/c22c83a7-0bc6-48fc-be95-6a522822d5a3
The node given above does not exist and it is not the same node indicated in the Details page for the content. For some reason the online editor is trying to access a node that is not the content node. One theory we have is that the editing handler is not able to create a node for a working copy or that it is asking Lucene for the node and is getting invalid information.

In attempting to fix the error we have tried rebuilding the Lucene indexes. We have done this in 3c before we do the upgrade and also in 3Stable after we have upgraded. Rebuilding the indexes in 3Stable does indicate 4 reindexing errors of the sort
16:28:47,162 ERROR [org.alfresco.repo.node.index.AbstractReindexComponent.threads] Reindexer     8 failed with error: null.
We would be grateful for any help offered to help fix this problem. I would be happy to supply additional information if needed. I have included Error details below. Thanks.

Jon

javax.faces.el.EvaluationException: Exception while invoking expression #{EditOnlineDialog.handleHttpEditing}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:156)
at javax.faces.component.UICommand.broadcast(UICommand.java:89)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
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:613)
Caused by: org.alfresco.service.cmr.repository.InvalidNodeRefException: Node does not exist: workspace://SpacesStore/c876f619-bdec-4d91-9b16-0c4b910d4475
at org.alfresco.repo.node.db.DbNodeServiceImpl.getNodePairNotNull(DbNodeServiceImpl.java:156)
at org.alfresco.repo.node.db.DbNodeServiceImpl.hasAspect(DbNodeServiceImpl.java:712)
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(SingleEntryTransactionResourceInterceptor.java:163)
at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntryTransactionResourceInterceptor.java:138)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.hasAspect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.hasAspect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:221)
at $Proxy8.hasAspect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor185.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:306)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.node.MLPropertyInterceptor.invoke(MLPropertyInterceptor.java:306)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:274)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.node.NodeRefPropertyMethodInterceptor.invoke(NodeRefPropertyMethodInterceptor.java:274)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy7.hasAspect(Unknown Source)
at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:88)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
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:166)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy31.getReader(Unknown Source)
at org.alfresco.web.bean.coci.EditOnlineDialog.handleHttpEditing(EditOnlineDialog.java:122)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
… 22 more
4 REPLIES 4

ikkyusan
Champ in-the-making
Champ in-the-making
Hi,

I have exactly the same problem after installing alfresco stable. Cannot edit xsl file in web form, using inline editing. While I can edit xsd file without problem !!!

Also, when I clik edit offline I can download the file but I get this:

Unable to check out Content Node due to system error:Transaction didn't commit: Found 1 integrity violations: The association parent multiplicity has been violated: Target Node: workspace://SpacesStore/1ca52724-6fd2-4a94-93b6-22fefd64f627 Association: Association[ class=ClassDef[name={http://www.alfresco.org/model/wcmappmodel/1.0}renderingenginetemplate], name={http://www.alfresco.org/model/wcmappmodel/1.0}renditionproperties, target class={http://www.alfresco.org/model/wcmappmodel/1.0}renditionproperties, source role={http://www.alfresco.org/model/wcmappmodel/1.0}capture, target role=null] Required parent Multiplicity: 0..1 Actual parent Multiplicity: 2

Do you, or someone else, have fixed this problem ?

thanks…

miiklay
Champ in-the-making
Champ in-the-making
Same problem here w/3.0.0 stable. Any insight would be appreciated.

A system error happened during the operation: Found 3 integrity violations: The association source multiplicity has been violated: Target Node: workspace://SpacesStore/0d21c8ea-9fe0-4ecb-95ae-5b744878612c Association: Association[ class=ClassDef[name={custom.model}pressrelease], name={custom.model}PRFiles, target class={http://www.alfresco.org/model/content/1.0}content, source role=null, target role=null] Required source Multiplicity: 1..1 Actual source Multiplicity: 2 The association source multiplicity has been violated: Target Node: workspace://SpacesStore/fcd7b78c-6ea5-4d31-b94d-8f858f74fdd6 Association: Association[ class=ClassDef[name={custom.model}pressrelease], name={custom.model}PRImage, target class={http://www.alfresco.org/model/content/1.0}content, source role=null, target role=null] Required source Multiplicity: 1..1 Actual source Multiplicity: 2 The association source multiplicity has been violated: Target Node: workspace://SpacesStore/4c06395c-ecb6-4b5f-a58a-93c182cddba5 Association: Association[ class=ClassDef[name={custom.model}pressrelease], name={custom.model}PRFiles, target class={http://www.alfresco.org/model/content/1.0}content, source role=null, target role=null] Required source Multiplicity: 1..1 Actual source Multiplicity: 2

miiklay
Champ in-the-making
Champ in-the-making
I was able to figure out the cause of my issue and want to share in hopes it may help others…

Within our custom content model definition (.xml file in /opt/Alfresco/tomcat/shared/classes/alfresco/extension/) we defined two associations:


  <associations>
    <association name="custom1:whatever1">
      <title>Title1</title>
      <target>
        <class>cm:content</class>
        <mandatory>false</mandatory>
        <many>false</many>
      </target>
    </association>
    <association name="custom1:whatever2">
      <title>Title2</title>
      <target>
        <class>cm:content</class>
        <mandatory>false</mandatory>
        <many>true</many>
      </target>
    </association>
  </associations>

We received errors any time we created content that utilized those associations UPON EDITING THEM online (100% reproducible), but not when we created content that did not utilize the associations. The resolution was to add <source> elements, in addition to the <target> elements:


  <associations>
    <association name="custom1:whatever1">
      <title>Title1</title>
      <source>
        <mandatory>false</mandatory>
        <many>true</many>
      </source>
      <target>
        <class>cm:content</class>
        <mandatory>false</mandatory>
        <many>false</many>
      </target>
    </association>
    <association name="custom1:whatever2">
      <title>Title2</title>
      <source>
        <mandatory>false</mandatory>
        <many>true</many>
      </source>
      <target>
        <class>cm:content</class>
        <mandatory>false</mandatory>
        <many>true</many>
      </target>
    </association>
  </associations>

Hope that helps someone, it was very frustrating. Kudos to Richard Im (Alfresco) for his assistance.

munwar
Champ in-the-making
Champ in-the-making
Associations….

Thanks for sharing the information. The problem exists with 3.1 Release as well.

Looks like the default values for <source> changed and we have to explicitely mention the <many>true</many> option.

I am updating the Alfresco book for 3.1 version (new book on Alfresco) and the Association example did not work and updated the content model and it works now.

I am glad to find the solution in Forums and SAVE A LOT OF TIME.

Thanks.