AnsweredAssumed Answered

Editing Email-notify-rules fails w/ ClassCastException

Question asked by kniffte on Oct 29, 2008
Hello!

I'm using Alfresco 3 B Rel. 3194.
When somebody has set up a space-rule, that a user needs to be notified, if somebody adds content to a space, Alfresco the thread crashes w/ the following ClassCastException:

11:59:49,776 User:stsc ERROR [[localhost].[/alfresco].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassCastException: java.lang.String
        at org.alfresco.web.bean.actions.handlers.MailHandler.prepareForEdit(MailHandler.java:119)
        at org.alfresco.web.bean.rules.EditRuleWizard.init(EditRuleWizard.java:135)
        at org.alfresco.web.bean.wizard.WizardManager.setCurrentWizard(WizardManager.java:137)
        at org.alfresco.web.app.AlfrescoNavigationHandler.handleWizardOpen(AlfrescoNavigationHandler.java:667)
        at org.alfresco.web.app.AlfrescoNavigationHandler.handleNavigation(AlfrescoNavigationHandler.java:120)
        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.NTLMAuthenticationFilter.doFilter(NTLMAuthenticationFilter.java:352)
        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)

This only happens when editing email-notify-rules. There are some other rules in a number of spaces, those can be edited w/o any problems (they work, too :) ).

Note: This rule does not only fail when editing it. It also fails to send the mail defined by the rule. I've opened another issue here on Jira. Please see bug report #2027 (https://issues.alfresco.com/jira/browse/ALFCOM-2027).
Note 2: This problem is also available on jira. Please see bug report #2028 (https://issues.alfresco.com/jira/browse/ALFCOM-2028).

Can somebody help me out, please?

Bye,
Stefan

Outcomes