AnsweredAssumed Answered

J'ai un problème sur Alfresco 2.0 (Linux Red hat,...

Question asked by alexist on Apr 5, 2007
Latest reply on Sep 24, 2007 by michaelh
J'ai un problème sur Alfresco 2.0 (Linux Red hat, Jboss4.0.5) avec les workflows avancés. J'arrive sans problème à lancer un workflow avancé sur un document. Par contre, par la suite, lorsque alfresco tente d'acceder à l'instance de ce workflow , par exemple  dans l'onglet Todo task, ou bien sur la partie worflow du détail d'un document, j'ai une ClassCastException.
Cette exception survient dans le classe JBPMEngine, ligne 2036 : JBPMNode initiator = (JBPMNode)instance.getContextInstance().getVariable("initiator");

Voici la stack trace

2007-04-05 09:59:17,854 ERROR [org.alfresco.web.ui.common.Utils] Failed to get to do tasks: java.lang.ClassCastException: java.lang.String
java.lang.ClassCastException: java.lang.String
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowInstance(JBPMEngine.java:2036)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowPath(JBPMEngine.java:1952)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowTask(JBPMEngine.java:2093)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$16.doInJbpm(JBPMEngine.java:804)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$16.doInJbpm(JBPMEngine.java:1)
        at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:365)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:333)
        at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.getAssignedTasks(JBPMEngine.java:783)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.getAssignedTasks(WorkflowServiceImpl.java:303)
        at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.alfresco.repo.audit.AuditComponentImpl.auditImpl(AuditComponentImpl.java:219)
        at org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:165)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
        at $Proxy74.getAssignedTasks(Unknown Source)
        at org.alfresco.web.bean.workflow.WorkflowBean.getTasksToDo(WorkflowBean.java:146)
        at sun.reflect.GeneratedMethodAccessor385.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:400)
        at org.apache.myfaces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:71)
        at org.apache.myfaces.el.ELParserHelper$MyPropertySuffix.evaluate(ELParserHelper.java:532)
        at org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145)
        at org.apache.commons.el.UnaryOperatorExpression.evaluate(UnaryOperatorExpression.java:156)
        at org.apache.myfaces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:378)
        at javax.faces.component.UIComponentBase.isRendered(UIComponentBase.java:822)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:413)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
        at javax.faces.component.UIForm.processValidators(UIForm.java:68)
        at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:417)
        at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:142)
        at org.apache.myfaces.lifecycle.LifecycleImpl.processValidations(LifecycleImpl.java:240)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
        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.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
        at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
        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:869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
        at java.lang.Thread.run(Thread.java:595)




La variable "initiator" est une String  au lieu d'un JBPMNode !!!!


J'ai ajouté une log pour voir ce qu'il y avait dans cette variable. 
initiator = workspace://SpacesStore/90af3518-e2b9-11db-9d2d-577d89155ae0




Pour tester, j'ai récuperé le war, la configuration, et j'ai deployé sur un JBoss 4.0.5  tournant sous Windows. Et tout fonctionne correctement.


Avez vous déja rencontré ca  ?

Outcomes