pillais1 / share-extras

Automatically exported from code.google.com/p/share-extras
0 stars 0 forks source link

ExecuteScriptAction can't load template #103

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. copy the execute-script-action-2.1.jar in shared/libs
2. edit the share-config-custom.xml
3. run the Execute Script action

I have installed the alfresco community 4.0.d. I used the standard-installation 
with a tomcat port: 9090.

i use the ie 8 for the test.

When i try to run the action, i got this message in a popup:
"Could not load dialog template from 
'/share/service/extras/modules/documentlibrary/execute-script'."

in the log i get this message:
09:06:35,575 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] 
Exception from executeScript - redirecting to status template error: 09290006 
Wrapped Exception (with status template): 09290020 Failed to execute script 
'classpath*:alfresco/templates/webscripts/org/sharextras/documentlibrary/actions
/list-scripts.get.js': 09290019 Failed to execute search: 
PATH:"/app:company_home/app:dictionary/app:scripts/*" AND TYPE:"cm:content"
org.springframework.extensions.webscripts.WebScriptException: 09290006 Wrapped 
Exception (with status template): 09290020 Failed to execute script 
'classpath*:alfresco/templates/webscripts/org/sharextras/documentlibrary/actions
/list-scripts.get.js': 09290019 Failed to execute search: 
PATH:"/app:company_home/app:dictionary/app:scripts/*" AND TYPE:"cm:content"
    at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:970)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:171)
    at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:400)
    at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:388)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:462)
    at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:500)
    at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:316)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
    at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
    at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)
    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.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58)
    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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    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:298)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
    at java.lang.Thread.run(Thread.java:662)
Caused by: org.alfresco.scripts.ScriptException: 09290020 Failed to execute 
script 
'classpath*:alfresco/templates/webscripts/org/sharextras/documentlibrary/actions
/list-scripts.get.js': 09290019 Failed to execute search: 
PATH:"/app:company_home/app:dictionary/app:scripts/*" AND TYPE:"cm:content"
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:195)
    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:1193)
    at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
    ... 25 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 09290019 Failed to 
execute search: PATH:"/app:company_home/app:dictionary/app:scripts/*" AND 
TYPE:"cm:content"
    at org.alfresco.repo.jscript.Search.query(Search.java:821)
    at org.alfresco.repo.jscript.Search.query(Search.java:687)
    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:597)
    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.c13._c1(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js:3)
    at org.mozilla.javascript.gen.c13.call(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js)
    at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
    at org.mozilla.javascript.gen.c13._c0(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js:6)
    at org.mozilla.javascript.gen.c13.call(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js)
    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
    at org.mozilla.javascript.gen.c13.call(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js)
    at org.mozilla.javascript.gen.c13.exec(jar:file:/C:/Alfresco/tomcat/shared/lib/execute-script-action-2.1.jar!/alfresco/templates/webscripts/org/sharextras/documentlibrary/actions/list-scripts.get.js)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:483)
    at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:191)
    ... 30 more
Caused by: org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 
09290018 
    at org.alfresco.repo.search.impl.solr.SolrQueryHTTPClient.executeQuery(SolrQueryHTTPClient.java:364)
    at org.alfresco.repo.search.impl.solr.SolrQueryLanguage.executeQuery(SolrQueryLanguage.java:49)
    at org.alfresco.repo.search.impl.solr.SolrSearchService.query(SolrSearchService.java:348)
    at org.alfresco.repo.search.SearcherComponent.query(SearcherComponent.java:78)
    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:597)
    at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:65)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy13.query(Unknown Source)
    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:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:147)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    at $Proxy13.query(Unknown Source)
    at org.alfresco.repo.jscript.Search.query(Search.java:801)
    ... 49 more

Original issue reported on code.google.com by ra.ale...@gmail.com on 29 Oct 2012 at 8:17

GoogleCodeExporter commented 9 years ago

Original comment by will.abson on 1 Nov 2012 at 2:32