AnsweredAssumed Answered

Problems launching script

Question asked by rcortesr on Dec 18, 2006
Latest reply on Oct 17, 2007 by ivanmiha
Hi,

I would like to test the javascript backup.js.
I have created a button for lauch this script.
My web-client-config-custom.xml is the following:
<config> 
<actions>
<!– Launch Test Javascript Dialog –>
<action id="test_js">
<label>Test Javascript</label>
<image>/images/icons/add.gif</image>
<script>/Company Home/Data Dictionary/backup.js</script>
</action>

<!– Add action to more actions menu for each space –>
<action-group id="document_browse">
<action idref="test_js" />
</action-group>
</actions>
</config>

When I execute the script appears to me the following error:
org.alfresco.error.AlfrescoRuntimeException: Error during command servlet processing: Unable to resolve item Path: /Company Home/Data Dictionary/backup.js 
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:176)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.IllegalArgumentException: Unable to resolve item Path: /Company Home/Data Dictionary/backup.js
at org.alfresco.web.app.servlet.BaseServlet.resolveNamePath(BaseServlet.java:315)
at org.alfresco.web.app.servlet.command.ScriptCommandProcessor.validateArguments(ScriptCommandProcessor.java:72)
at org.alfresco.web.app.servlet.CommandServlet.service(CommandServlet.java:128)
… 15 more

What is the problem??
I think that the path is correct.

Another question: Is it possible to create an action only for a single user?

Thanks.

Outcomes