AnsweredAssumed Answered

Rule creation in Share Internal Server Error

Question asked by dsupina on Aug 23, 2012
Hello,

please help on problem when I want to create simple rule in Share. When i select folder->Manage Rules->Create Rule, I got Internal Server Error with stack trace bellow.
I have two separate servers, one Alfresco 3.4.b on Windows 2008, Jboss 4.2 stack, a and other same installation on Centos 6.2, Jboss 4.2 stack, and this error is only tracked on CentOS stack. On Windows stack is working fine. Please help!

Stack Trace:

15:22:55,015 1531296 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] (http-0.0.0.0-443-14:) Exception from executeScript - redirecting to status template error: 07230001 Failed to load script 'classpath*:alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js': 07230000 TypeError: Cannot find function elements. (file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js#20)
org.springframework.extensions.webscripts.WebScriptException: 07230001 Failed to load script 'classpath*:alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js': 07230000 TypeError: Cannot find function elements. (file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js#20)
        at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:195)
        at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:982)
        at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
        at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
        at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:203)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
        at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:99)
        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
        at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:195)
        at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:159)
        at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:141)
        at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:90)
        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:417)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at hr.abit.ecm.alfresco.CasAuthenticationFilter.doFilter(CasAuthenticationFilter.java:131)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
        at org.jasig.cas.client.authentication.AuthenticationFilter.doFilter(AuthenticationFilter.java:111)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jasig.cas.client.validation.AbstractTicketValidationFilter.doFilter(AbstractTicketValidationFilter.java:167)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at hr.abit.ecm.filter.share.CustomFilter.doFilter(CustomFilter.java:62)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        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:230)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.jboss.web.rewrite.RewriteValve.invoke(RewriteValve.java:451)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.extensions.webscripts.WebScriptException: 07230004 TypeError: Cannot find function elements. (file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js#20)
        at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:323)
        at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:191)
        … 57 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function elements. (file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js#20)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
        at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
        at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
        at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
        at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
        at org.mozilla.javascript.gen.c44._c1(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js:20)
        at org.mozilla.javascript.gen.c44.call(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)
        at org.mozilla.javascript.gen.c44._c6(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js:152)
        at org.mozilla.javascript.gen.c44.call(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js)
        at org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
        at org.mozilla.javascript.gen.c44._c0(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js:160)
        at org.mozilla.javascript.gen.c44.call(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.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.c44.call(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js)
        at org.mozilla.javascript.gen.c44.exec(file:/usr/local/abit-ecm/abit-ecm_1_2/server/default/deploy/deploy.last/share.war/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/rules/config/rule-config-type.get.js)
        at org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:313)

Outcomes