Jbpm error information and corresponding modification methods

Source: Internet
Author: User
Tags jbpm

This error was just encountered when I first came into contact with jbpm:

 

Closed jbpmcontext in different order then they were created... check your try-finally's around jbpmcontexts Blocks

 

 

 

 

 

I was puzzled. I said on the Internet that the hibernate session was not closed, and I was searching for the javaeye session. The source code has the following statement:

 

If (jbpmcontext! = Popped ){
Throw new jbpmexception ("Closed jbpmcontext in different order then they were created... check your try-finally's around jbpmcontexts blocks ");
}

 

Because a filter is set

 

<Filter>
<Filter-Name> jbpmcontextfilter </filter-Name>
<Filter-class> org. jbpm. Web. jbpmcontextfilter </filter-class>
</Filter>
<Filter-mapping>
<Filter-Name> jbpmcontextfilter </filter-Name>
<URL-pattern>/* </url-pattern>
</Filter-mapping>

 

 

So I probably guessed that this filter will generate a jbpmcontext for each request, so it will be compared with the jbpmcontext object on your current JSP page and the jbpmcontext object that has passed the filter, if they are different, we will see this method.

 

Jbpmcontext = jbpmconfiguration. getinstance (). getcurrentjbpmcontext ();

 

 

I used the following:

Jbpmcontext = jbpmconfiguration. getinstance (). createjbpmcontext ();

 

 

So you know. It is similar to the session in hibernate. Find the answer!

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.