cancel
Showing results for 
Search instead for 
Did you mean: 

ToDo-List error when using advanced workflow

unknown-user
Champ on-the-rise
Champ on-the-rise
Hi folks.

My problem is as follows. When I use one of the default advanced workflow options, e.g. Review and Approve, the user who should do the review doesn't get a To-Do List on his "My Alfresco" site, but following error message.

To be honest with you, I'm not used to JavaScript and I don't see a solution to this error. What may be the reason for this failure?

An error occurred in one of the dashlets.
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode

If you need more information, I'll give it to you.

Thanks in advance,
Chris.
10 REPLIES 10

kevinr
Star Contributor
Star Contributor
Yes please can you provide more info so we can try and reproduce this. I assume you are using 2.0 community?

Thanks,

Kevin

unknown-user
Champ on-the-rise
Champ on-the-rise
Yep, this is correct.

We are using the tomcat 2.0 community edition on a RedHat-Server in co-operation with an Oracle database (vers9.2).

The actual 'alfresco.log' also includes this error-message:

09:00:02,964 ERROR [org.alfresco.web.ui.common.Utils] Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
        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:2091)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$16.doInJbpm(JBPMEngine.java:804)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$16.doInJbpm(JBPMEngine.java:819)
        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.GeneratedMethodAccessor824.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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 $Proxy22.getAssignedTasks(Unknown Source)
        at org.alfresco.web.bean.workflow.WorkflowBean.getTasksToDo(WorkflowBean.java:146)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        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)
"alfresco.log" 3590L, 320320C

The "to-do" or task overview is the only thing which doesn't work properly. The rest works really fine. Actually, I can't even find / grep this code mentioned above.

Do you need other or more information?

Thanks,
Chris.

unknown-user
Champ on-the-rise
Champ on-the-rise
After restarting the server, i received the following messages in the alfresco.log.


09:05:11,478 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to execute command: convert /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_source_48890.gif  /opt/alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformer_init_target_48891.png
09:05:14,510 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
09:05:18,765 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
09:05:37,667 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/alfresco/alf_data
09:05:38,274 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
09:05:38,350 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
09:05:38,356 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
09:05:38,573 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
09:05:38,573 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
09:05:38,666 ERROR [org.alfresco.smb.protocol.netbios] NetBIOSNameServer setup error:
java.net.BindException: Permission denied
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
        at java.net.DatagramSocket.bind(DatagramSocket.java:368)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:234)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.openSocket(NetBIOSNameServer.java:1084)
        at org.alfresco.filesys.netbios.server.NetBIOSNameServer.run(NetBIOSNameServer.java:1556)
        at java.lang.Thread.run(Thread.java:619)
09:05:38,687 ERROR [org.alfresco.ftp.protocol] FTP Socket error
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:141)
        at org.alfresco.filesys.ftp.FTPNetworkServer.run(FTPNetworkServer.java:407)
        at java.lang.Thread.run(Thread.java:619)
09:05:38,687 ERROR [org.alfresco.smb.protocol] Server error :
java.net.BindException: Permission denied
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
        at java.net.ServerSocket.bind(ServerSocket.java:319)
        at java.net.ServerSocket.<init>(ServerSocket.java:185)
        at java.net.ServerSocket.<init>(ServerSocket.java:141)
        at org.alfresco.filesys.smb.server.SessionSocketHandler.initialize(SessionSocketHandler.java:257)
        at org.alfresco.filesys.smb.server.NetBIOSSessionSocketHandler.createSessionHandlers(NetBIOSSessionSocketHandler.java:165)
        at org.alfresco.filesys.smb.server.SMBServer.run(SMBServer.java:495)
        at java.lang.Thread.run(Thread.java:619)
09:05:38,696 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_01-b06; maximum heap size 493.063MB
09:05:38,696 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
09:05:38,697 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.0.0 (build-185) schema 38 - Installed version 2.0.0 (build-185) schema 38

Does this make any sense to you, according to the problem mentioned in my first entry? Do the blocked ports affect the java application / adv. workflow function?

Regards,
Chris.

unknown-user
Champ on-the-rise
Champ on-the-rise
Is anybody able to provide me with information, on how to solve this problem? I still experience the same error, while using the advanced workflow function.

Can anybody help?

Chris

kevinr
Star Contributor
Star Contributor
The blocked ports make no difference to the workflow engine. I'll ask our JBPM expert if they've seen your original error.

Thanks,

Kevin

unknown-user
Champ on-the-rise
Champ on-the-rise
Hello kevinr,

thanks for your reply. Yesterday, in total desperation, I installed a newer version of Oracle DB on the server and from then on, the error is gone.

Now I use Oracle 10 XE, which seems to work fine. At least the workflow function doesn't produce anymore errors and the "to-do list" works properly.

Maybe this helps further users, too. Nevertheless, it would be interesting to hear the answer of your expert.

Regards,
Chris.

medalhas
Champ in-the-making
Champ in-the-making
Hi, any news from this topic?

I have the same problem, I am using Alfresco 2.0 Community with Informix IDS 9.40.
With PostgreSQL works fine but with Informix occurs this error it seems to be a problem related with the database, is there any workaround?

I already had some problems with the hibernate (creating schema) but i've solved, now i have the Alfresco working fine except the Advanced Workflow.

Regards
Luís Medalhas

davidc
Star Contributor
Star Contributor
This exception occurs on some databases, but not others.  We'll be investigating soon.

ricvieira
Champ in-the-making
Champ in-the-making
Did anyone found a solution for this?

I'm getting the exact same error,

 User:admin ERROR [ui.common.Utils] Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowInstance(JBPMEngine.java:2881)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowPath(JBPMEngine.java:2789)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.createWorkflowTask(JBPMEngine.java:2946)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.getWorkflowTasks(JBPMEngine.java:1359)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$22.doInJbpm(JBPMEngine.java:1244)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine$22.doInJbpm(JBPMEngine.java:1228)
        at org.springmodules.workflow.jbpm31.JbpmTemplate$1.doInHibernate(JbpmTemplate.java:87)
        at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:406)
        at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
        at org.springmodules.workflow.jbpm31.JbpmTemplate.execute(JbpmTemplate.java:80)
        at org.alfresco.repo.workflow.jbpm.JBPMEngine.getAssignedTasks(JBPMEngine.java:1227)
        at org.alfresco.repo.workflow.WorkflowServiceImpl.getAssignedTasks(WorkflowServiceImpl.java:524)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)



I'm using Alfresco 3.3.4 Enterprise, and Informix 11.7

Everything is working fine, i can create the workflow without any problem, but the To-Do List always give this error:

An error occurred in one of the dashlets.

    * Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
    * Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
    * Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode
    * Failed to get to do tasks: java.lang.ClassCastException: java.lang.String cannot be cast to org.alfresco.repo.workflow.jbpm.JBPMNode

any help would be greatly appreciated Smiley Happy

tnx in advance

Ricardo Vieira