Error delegation error in jbpm 3.2.3

Source: Internet
Author: User

I just got started with jbpm. I didn't understand it too deeply. I encountered an error delegation exception while testing the node exception function.

Error delegation: Couldn't instantiate delegation class 'test. catchnodeexceptionaction'

Error delegation: Couldn't load delegation class 'test. catchnodeexceptionaction'

 

The specific problem should be that the problem occurs when the process template is released to the database,

Select * From jbpm_delegation in the database to query the table.

ID _ classname _ configtype _ processdefinition

13 test. catchnodeexceptionaction Field 8

 

So at first I thought the proxy class was created, but in fact I was cheated by this. Go to the corresponding project directory and check whether the class is compiled.

The compiled test. catchnodeexceptionaction is not found in the class directory compiled by G:/exercisespace/jbpm-test/bin/test.

 

The problem here is the catchnodeexceptionaction class,

So check:

1. Whether the class name is consistent with the class name in the configuration file of the Process Template (this is a pediatrics, but most of them will be planted on this issue)

2. Go to the "deployment" tab of the Process Template and check whether the dependent classes are selected under the Java classes and resources configuration. Although eclipse will help you select the classes by default, it is better to check them again.

3. check whether the jar on which your project depends is complete. I planted it on this issue, because to connect to sql2005, the external jar added during the build path, and then the location changed, enter the jar package again, but the previous error reference is not deleted from classpath, so this error is reported.

 

My jbpm version is 3.2.3.

 

However, a small conclusion is drawn after testing, but I don't know if it is correct,

I configured

<Exception-handler exception-class = "Java. Lang. Exception">
<Action class = "test. catchnodeexceptionaction"> </Action>
</Exception-handler>

Specifically, class = "test. catchnodeexceptionaction" forcibly releases the process template to the data without being compiled,

The process template can be normally published to the jbpm_processdefinition table,

In addition, to the jbpm_delegation table, you will find that the actionhandle class required by the Process Template is also normally published to the table (whether or not the compilation is successful ).

 

So if it is not careful, the exception will appear at runtime.

 

If you have any questions, please kindly advise. We are very happy to accept your comments during jbpm learning.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.