cancel
Showing results for 
Search instead for 
Did you mean: 

Can not edit document

baikal
Champ in-the-making
Champ in-the-making

Another day, another problem.) I can not edit one of my documents (and no one else can), when I open it in MS Word it's accessable only for reading, when I try to upload a new version I get an "Unexpected error occured during upload of new content ", I cannot open file via webdav\cifs, and it's Edit properties page says "An error occurred when the form was about to be displayed". I can't copy this file to another location but I can move it.

alfresco.log:

2016-12-22 10:49:48,869 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-80-exec-95] Exception from executeScript - redirecting to status template error: 11220053 Wrapped Exception (with status template): 11220653 Ошибка во время обработки шаблона (Error during template processing) 'Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

The failing instruction:
==> #if node.isLocked || node.hasAspect("... [in template "org/alfresco/repository/comments/comments.get.json.ftl" at line 6, column 4]'. Обратитесь к системному администратору. (Contact your system administrator)
org.springframework.extensions.webscripts.WebScriptException: 11220053 Wrapped Exception (with status template): 11220653 Ошибка во время обработки шаблона (Error during template processing) 'Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

It's also the first time I see any errors being displaied in Russian.

Alfresco version is 5.2.0

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/googledocs/2.0

You node has a sharedInGoogle aspect ,but I seems googledocs-model.xml was removed from your repository which lead to http://www.alfresco.org/model/googledocs/2.0  namespace unrecognized.

You have two options
1. deploy googledocs-model.xml model to alfreco
2. delete this node's sharedInGoogle aspect in db.

View answer in original post

8 REPLIES 8

kaynezhang
World-Class Innovator
World-Class Innovator

The exception is threw when getting aspects of the node.Maybe there is something wrong with one of aspects of this node.
Please visit this url http://localhost:8080/alfresco/s/admin/admin-nodebrowser and login with admin accout.
select noderef in the drop down list and input your noderef workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081 and click execute ,then paste the snapshot here.

baikal
Champ in-the-making
Champ in-the-making

There is some "permissions" line. I deleted it (was I wrong?), nothing changed. Here is a screenshot:

kaynezhang
World-Class Innovator
World-Class Innovator

It seems this node is ok from this screenshot , are there any other  exception trace information in alfresco.log

baikal
Champ in-the-making
Champ in-the-making

Nope, here is an error with more details, maybe it will clarify something

2016-12-23 10:20:02,775 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-80-exec-24] Exception from executeScript - redirecting to status template error: 11230004 Wrapped Exception (with status template): 11230079 Ошибка во время обработки шаблона 'Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

The failing instruction:
==> #if node.isLocked || node.hasAspect("... [in template "org/alfresco/repository/comments/comments.get.json.ftl" at line 6, column 4]'. Обратитесь к системному администратору.
org.springframework.extensions.webscripts.WebScriptException: 11230004 Wrapped Exception (with status template): 11230079 Ошибка во время обработки шаблона 'Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

The failing instruction:
==> #if node.isLocked || node.hasAspect("... [in template "org/alfresco/repository/comments/comments.get.json.ftl" at line 6, column 4]'. Обратитесь к системному администратору.
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:505)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.repo.webdav.auth.BaseSSOAuthenticationFilter.doFilter(BaseSSOAuthenticationFilter.java:167)
at sun.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy287.doFilter(Unknown Source)
at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.WebScriptSSOAuthenticationFilter.doFilter(WebScriptSSOAuthenticationFilter.java:114)
at sun.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:112)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy287.doFilter(Unknown Source)
at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.WebscriptCookieAuthenticationFilter.doFilter(WebscriptCookieAuthenticationFilter.java:59)
at sun.reflect.GeneratedMethodAccessor418.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:125)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy287.doFilter(Unknown Source)
at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2466)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2455)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.alfresco.service.cmr.repository.TemplateException: 11230079 Ошибка во время обработки шаблона 'Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

The failing instruction:
==> #if node.isLocked || node.hasAspect("... [in template "org/alfresco/repository/comments/comments.get.json.ftl" at line 6, column 4]'. Обратитесь к системному администратору.
at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:227)
at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:967)
at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
... 67 more
Caused by: freemarker.template.TemplateModelException: Method "public boolean org.alfresco.repo.template.BaseContentNode.hasAspect(java.lang.String)" threw an exception when invoked on org.alfresco.repo.template.TemplateNode object "Node Type: {http://www.alfresco.org/model/content/1.0}content\tNode Ref: workspace://SpacesStore/163d3319-d030-48e6-bed3-9d7408766081". See cause exception.

The failing instruction:
==> #if node.isLocked || node.hasAspect("... [in template "org/alfresco/repository/comments/comments.get.json.ftl" at line 6, column 4]
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135)
at freemarker.core.MethodCall._eval(MethodCall.java:98)
at freemarker.core.Expression.eval(Expression.java:111)
at freemarker.core.Expression.evalToBoolean(Expression.java:143)
at freemarker.core.OrExpression.evalToBoolean(OrExpression.java:68)
at freemarker.core.IfBlock.accept(IfBlock.java:82)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.MixedContent.accept(MixedContent.java:93)
at freemarker.core.Environment.visit(Environment.java:265)
at freemarker.core.Environment.process(Environment.java:243)
at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:223)
... 70 more
Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/googledocs/2.0
at org.alfresco.service.namespace.QName.toPrefixString(QName.java:417)
at org.alfresco.repo.template.BaseContentNode.hasAspect(BaseContentNode.java:345)
at sun.reflect.GeneratedMethodAccessor919.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:912)
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:107)
... 80 more

kaynezhang
World-Class Innovator
World-Class Innovator

Caused by: org.alfresco.service.namespace.NamespaceException: A namespace prefix is not registered for uri http://www.alfresco.org/model/googledocs/2.0

You node has a sharedInGoogle aspect ,but I seems googledocs-model.xml was removed from your repository which lead to http://www.alfresco.org/model/googledocs/2.0  namespace unrecognized.

You have two options
1. deploy googledocs-model.xml model to alfreco
2. delete this node's sharedInGoogle aspect in db.

baikal
Champ in-the-making
Champ in-the-making

Yep, I did unistalled google docs integration recently. 

Thanks, it's clear now.

baikal
Champ in-the-making
Champ in-the-making

One more question: is there a way to find all docs with "sharedInGoogle" aspect?

kaynezhang
World-Class Innovator
World-Class Innovator

visit http://localhost:8080/alfresco/s/admin/admin-nodebrowser and login with admin accout.
On left panel click node browser

an select fts-alfresco in the drop down list ,and input  ASPECT:'gd2:sharedInGoogle' in right input  and click execute

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.