cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with content rules

ajv
Champ in-the-making
Champ in-the-making
Hi,
I have a problem that I don't know how to resolve and to be afraid that it is a bug of the tool.
I have a space template in Data dictionary whit content rules that executes an script for all the inbound content.

When I create an space from that template, and I add content…the script don't execute!
And when I go to edit the rule for view their parameters, I found this error:

16:58:30,140 ERROR [[localhost].[/alfresco].[Faces Servlet]] Servlet.service() para servlet Faces Servlet lanzó excepción
java.lang.NullPointerException
   at org.alfresco.web.bean.actions.handlers.ScriptHandler.prepareForEdit(ScriptHandler.java:68)
   at org.alfresco.web.bean.rules.EditRuleWizard.init(EditRuleWizard.java:133)
   at org.alfresco.web.bean.wizard.WizardManager.setCurrentWizard(WizardManager.java:123)
   at org.alfresco.web.app.AlfrescoNavigationHandler.handleWizardOpen(AlfrescoNavigationHandler.java:636)
   at org.alfresco.web.app.AlfrescoNavigationHandler.handleNavigation(AlfrescoNavigationHandler.java:118)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:82)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Thread.java:595)

I'm using alfresco 2.1 enterprise.

Please help me!! and sorry for my english.
Thanks in advance.
3 REPLIES 3

stondini
Champ in-the-making
Champ in-the-making
Hello,

I have the same problem.
I exported a space template which contains a rule that executes a script.
I then re-import the package (*.acp). The space and the rule are imported but when I try to edit the rule, the exception above occurs.

I'm using Alfresco 4.2.c.

mitpatoliya
Star Collaborator
Star Collaborator
that is because alfresco is not able to find the script file related to that rule.
You need to remove that rule during export and import script file in new setup and create rule again after import of space template in new setup.

stondini
Champ in-the-making
Champ in-the-making
Thank you Mits.
But the script exists in the dictionary/scripts space.
My goal is to import the script and the space (with its rule) during the bootstrap process.

I don't find an example to do that.