◎筱米加步枪◎.Blog

Happy coding

JBPM4.3出现Session closed错误解决方法

筱米加步枪 posted @ 2011年7月05日 15:08 in [ 开源框架 ] with tags JBPM session closed , 2458 阅读

项目组临近发布版本了,但由于运行过程中出现“Session closed”的错误,发布延迟了两天。

问题已经解决了,虽然不是我解决的,还是记录备忘下:

解决方法:

在EnvironmentFactory对象执行openEnvironment()后获取EnvironmentImpl对象,在操作完最后EnvironmentImpl需要close掉(通常放在finally块中执行)。

代码模版:

		EnvironmentFactory environmentFactory = (EnvironmentFactory)processEngine;
		EnvironmentImpl env = null;
		try {
			env = environmentFactory.openEnvironment();
			//...执行其他相关操作
		} catch (Exception ex) {
			ex.printStackTrace();
		} finally {
			//EnvironmentImpl需要close掉
			if (env != null)
			    env.close();
		}

 

  • 无匹配
SCERT Himachal Prad 说:
2023年9月21日 22:09

HP Board Curriculum is based on the National Curriculum Framework and Provides Opportunities for Students to Achieve Excellence in Learning, HP Board Provides the Syllabus for 1st Class, This new Syllabus are Designed Strategically by a Team of Subject Experts and are Prescribed by the Ministry of Human Resource Development, formerly Ministry of Education, is Responsible for the Development SCERT Himachal Pradesh 1st Class Syllabus 2024 of Human Resources in India, SCERT HP Elementary Level Syllabus for the Children of has been developed with the Supervision of the Directorate of Elementary Education Himachal Pradesh.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter