cancel
Showing results for 
Search instead for 
Did you mean: 

Wrapped Exception

evan
Champ in-the-making
Champ in-the-making
Hi all,
     I have make jar with maven and copy the jar to ${activiti tomcat home}\lib
     copy activiti-engine-5.1 to the same path .
     restart tomcat and run the process.
tomcat throw error :00190001 Wrapped Exception (with status template): org.test.Test doesn't implement org.activiti.engine.delegate.JavaDelegate nor org.activiti.engine.impl.pvm.delegate.ActivityBehavior

where has wrong?

please help me .thanks.
5 REPLIES 5

evan
Champ in-the-making
Champ in-the-making
Hi All,

    My Test.java source code is :

package org.test;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.impl.pvm.delegate.TaskListener;



public class Test implements TaskListener {

public void notify(DelegateTask delegateTask) {
     delegateTask.setAssignee("fozzie");
   }
}


waiting your help .
Thanks.

frederikherema1
Star Contributor
Star Contributor
Looks like you are using a TaskListener where a JavaDelegate is expected (in a service-task eg.). Can you post your process-definition as well?

evan
Champ in-the-making
Champ in-the-making
Hi ,

   Thanks for your reply. I have work out the function .

Thanks again.

Evan.

ct1
Champ in-the-making
Champ in-the-making
Evan did not post his solution and I am having a similar problem.  The exception (listed first below) says that the class CreditChecker does not implement the org.activiti.engine.delegate.JavaDelegate interface.  The source code (shown below) shows the implementation (which Eclipse inline help resolves to the correct type).  I included the process definition (listed second below) for your reference.  Any suggestions?


    Caused by: org.activiti.engine.ActivitiException: com.argo.mobcont.CreditChecker
    doesn't implement org.activiti.engine.delegate.JavaDelegate nor org.activiti.en
    gine.impl.pvm.delegate.ActivityBehavior
            at org.activiti.engine.impl.bpmn.helper.ClassDelegate.getActivityBehavio
    rInstance(ClassDelegate.java:136)
  <process id="CreditCheckProcess" name="CreditCheckProcess">
    <documentation>Place documentation for the 'CreditCheckProcess' process here.</documentation>
    <startEvent id="startevent1" name="Start"></startEvent>
    <serviceTask id="checkCreditHistory" name="Check credit history" activiti:class="com.argo.mobcont.CreditChecker"></serviceTask>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="checkCreditHistory"></sequenceFlow>

package com.argo.mobcont;



import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.impl.javax.el.Expression;

public class CreditChecker implements JavaDelegate
{
private Expression requestedAmountE;
private Expression incomeAmountE;

private boolean creditHistoryGood = false;

public void execute(DelegateExecution execution)
{
  System.out.println("execution id " + execution.getId());
 
  System.out.println("In CreditChecker.execute().");
}

frederikherema1
Star Contributor
Star Contributor
Do you have multiple versions of activiti in your classpath? Is the activiti-jar in the same classloader as your own classes (eg. tomcat webapp lib vs. tomcat /lib)