AnsweredAssumed Answered

cmis alfresco

Question asked by braguzz on Apr 10, 2014
Latest reply on Apr 11, 2014 by braguzz
dopo mesi di utilizzo di Alfresco come repository e accesso via cmis, mi sembra che il server stia dando dei problemi di cedimento.

mi si e' gia 'piantato' un paio di volte e non riesco a capire il motivo di questi piantamanti.

vedo comunque tutta una serie di errori che allego e che sembrano collegati all'accesso via cmis in quanto dalla parte 'client' vedo errori di questo genere

errore client APACHE
—————————————-
[Thu Apr 10 17:42:10 2014] [error] [client 172.16.31.2] http://10.10.103.146/ - Core: Exception handler (WEB): Uncaught TYPO3 Exception: #404
: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html xmlns="http://www.w3.o
rg/1999/xhtml">\n   <head>\n      <title>Web Script Status 404 - Not Found</title>\n      <link rel="stylesheet" href="/alfresco/css/webscrip
ts.css" type="text/css" />\n   </head>\n   <body>\n      <div>\n         <table>\n            <tr>\n               <td><img src="/alfresco/im
ages/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>\n               <td><span class="title">Web Script Status 404 - Not Found</span></td>\n
           </tr>\n         </table>\n         <br/>\n         <table>\n            <tr><td>The Web Script <a href="%2Falfresco%2Fservice%2Fcm
is%2Farg%2Fn%3Fnoderef%3Dworkspace%3A%2F%2FSpacesStore%2F2a1be7aa-553e-409d-9717-05672a1cb9a6%26filter%3D%26includeAllowableActions%3D%26incl
udePolicyIds%3D%26includeRelationships%3D%26includeACL%3D%26renditionFilter%3D*">/alfresco/service/cmis/arg/n</a> has responded with a status
of 404 - Not Found.</td></tr>\n         </table>\n         <br/>\n         <table>\n            <tr><td><b>404 Description:</b></td><td> Req
uested resource is not available.</td></tr>\n            <tr><td> </td></tr>\n            <tr><td><b>Message:</b></td><td>03100033 Unabl
e to find object workspace://SpacesStore/2a1be7aa-553e-409d-9717-05672a1cb9a6</td></tr>\n            <tr><td></td><td> </td></tr>\n   <t
r><td><b>Exception:</b></td><td>org.alfresco.cmis.CMISObjectNotFoundException - Unable to find object workspace://SpacesStore/2a1be7aa-553e-4
09d-9717-05672a1cb9a6</td></tr>\n   <tr><td></td><td> </td></tr>\n         <tr><td></td><td>org.alfresco.cmis.mapping.CMISServicesImpl.g
etObject(CMISServicesImpl.java:1353)</td></tr>\n         <tr><td></td><td>org.alfresco.cmis.mapping.CMISServicesImpl.getReadableObject(CMISSe
rvicesImpl.java:1431)</td></tr>\n         <tr><td></td><td>org.alfresco.repo.cmis.reference.ObjectIdReference.getNodeRef(ObjectIdReference.ja
va:59)</td></tr>\n         <tr><td></td><td>org.alfresco.repo.cmis.rest.CMISScript.getNode(CMISScript.java:362)</td></tr>\n         <tr><td><
/td><td>sun.reflect.GeneratedMethodAccessor863.invoke(Unknown Source)</td></tr>\n         <tr><td></td><td>sun.reflect.DelegatingMethodAccess
orImpl.invoke(DelegatingMethodAccessorImpl.java:43)</td></tr>\n         <tr><td></td><td>java.lang.reflect.Method.invoke(Method.java:606)</td
></tr>\n         <tr><td></td><td>org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)</td></tr>\n         <tr><td></td><td>org.mozill
a.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.optimizer.OptRuntim
e.call1(OptRuntime.java:66)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.gen.c2._c1(file:/opt/alfresco/tomcat/webapps/alfresco
/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js:14)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.
gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)</td></tr>
\n         <tr><td></td><td>org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)</td></tr>\n         <tr><td></td><td>o
rg.mozilla.javascript.gen.c2._c4(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/i
tem.get.js:82)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/cla
sses/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.optimizer.OptRu
ntime.callName0(OptRuntime.java:108)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.gen.c2._c0(file:/opt/alfresco/tomcat/webapps
/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js:86)</td></tr>\n         <tr><td></td><td>org.mozilla.ja
vascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)<
/td></tr>\n         <tr><td></td><td>org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)</td></tr>\n         <tr><td></t
d><td>org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)</td></tr>\n         <tr><td></td><td>org.mozilla.javascript.gen
.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/item.get.js)</td></tr>\n
        <tr><td></td><td>org.mozilla.javascript.gen.c2.exec(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/web
scripts/org/alfresco/cmis/item.get.js)</td></tr>\n         <tr><td></td><td>org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(
RhinoScriptProcessor.java:502)</td></tr>\n         <tr><td></td><td>org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcess
or.java:200)</td></tr>\n         <tr><td></td><td>org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)</td></tr>
\n         <tr><td></td><td>org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)</td></tr>\n         <tr><
td></td><td>org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)</td></tr>\n         <t

ecc….
—————————————-


errore tomcat

—————————————-
16:46:58,025 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error:$
org.springframework.extensions.webscripts.WebScriptException: 03100021 workspace:/SpacesStore/37a8e3fa-0c72-4085-b4b5-870ee8f4d1d2 is not an object$
        at org.alfresco.repo.cmis.reference.ObjectIdReference.getNodeRef(ObjectIdReference.java:63)
        at org.alfresco.repo.cmis.rest.CMISScript.getNode(CMISScript.java:362)
        at sun.reflect.GeneratedMethodAccessor863.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
        at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
        at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)
        at org.mozilla.javascript.gen.c2._c1(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/$
        at org.mozilla.javascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco$
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c2._c4(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/$
        at org.mozilla.javascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco$
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c2._c0(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/$
        at org.mozilla.javascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco$
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c2.call(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco$
        at org.mozilla.javascript.gen.c2.exec(file:/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco$
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:502)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:200)
        at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174)
        at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102)
        at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
        at org.alfresco.repo.cmis.rest.CMISWebScript.executeScript(CMISWebScript.java:46)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:439)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:447)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:508)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:546)

….

17:09:09,492 ERROR [freemarker.runtime] Template processing error: "get(properties) failed on instance of org.alfresco.repo.template.TemplateNode"

get(properties) failed on instance of org.alfresco.repo.template.TemplateNode
The problematic instruction:
———-
==> ${node.properties.creator!""} [on line 49, column 15 in org/alfresco/cmis/lib/atomentry.lib.atom.ftl]
in user-directive entry [on line 48, column 1 in org/alfresco/cmis/lib/atomentry.lib.atom.ftl]
in user-directive entryLib.document [on line 13, column 3 in org/alfresco/cmis/item.get.atomentry.ftl]
———-

Java backtrace for programmers:
———-
freemarker.template.TemplateModelException: get(properties) failed on instance of org.alfresco.repo.template.TemplateNode
        at freemarker.ext.beans.BeanModel.get(BeanModel.java:224)
….
—————————————-

Grazie in anticipo,
PB

Outcomes