jbpm5.4启动流程时报错 求助

问题描述

在自己的项目中首先启动HorentQ服务器没有问题:try{TaskServicetaskService=newTaskService(entityManagerFactory,SystemEventListenerFactory.getSystemEventListener());//添加必要的用户TaskServiceSessiontaskSession=taskService.createSession();taskSession.addUser(newUser("krisv"));taskSession.addUser(newUser("john"));//开启HornetQTaskServerHornetQTaskServerserver=newHornetQTaskServer(taskService,5445);Threadthread=newThread(server);thread.start();System.out.println("************启动HorentQ服务器完毕*************"+entityManagerFactory);}catch(Throwablet){thrownewRuntimeException("不能开启HornetQ服务器",t);}然后启动流程:publicProcessInstancestartWorkflowProcess(){ProcessInstancepi=null;try{HornetQHTWorkItemHandlerhornetQHTWorkItemHandler=newHornetQHTWorkItemHandler(ksession);ksession.getWorkItemManager().registerWorkItemHandler("HumanTask",hornetQHTWorkItemHandler);pi=ksession.startProcess(processName,params);}catch(Exceptione){e.printStackTrace();}returnpi;}然后控制台会报错:175312105/0110:29:12,564[http-bio-8088-exec-1]ERRORservice.hornetq.HornetQTaskClientConnector.connect-Unabletoconnecttoserverusingconfigurationorg-hornetq-core-remoting-impl-netty-NettyConnectorFactory?port=5153&host=127-0-0-1175312305/0110:29:12,566[http-bio-8088-exec-1]ERRORdrools.persistence.SingleSessionCommandService.rollbackTransaction-Couldnotcommitsessionorg.jbpm.workflow.instance.WorkflowRuntimeException:[special:6-提交:2]--Couldnotconnecttaskclient:onip:127.0.0.1-port:5153跪求解答!!!!

时间: 2024-09-30 15:49:30

jbpm5.4启动流程时报错 求助的相关文章

jbpm5.4启动流程时报错

问题描述 jbpm5.4启动流程时报错 2C 在自己的项目中首先启动HorentQ服务器 没有问题: try { TaskService taskService = new TaskService(entityManagerFactory SystemEventListenerFactory.getSystemEventListener()); // 添加必要的用户 TaskServiceSession taskSession = taskService.createSession(); tas

我的一个SSH简单整合,启动tomcat时报错,如error文档内容所示,请教指点

问题描述 我的一个SSH简单整合,启动tomcat时报错,如:error文档 内容所示,请教指点,项目源代码及项目结构图都在压缩包中,随时等候佳音,谢谢了-- 解决方案 你的UesrBean.hbm.xml的路径写错了不是<class name="com.bean.UserBean" table="users">而是<class name="com.bean.user.UserBean" table="users&qu

Tomcat启动有时报错有是正常

问题描述 Tomcat启动有时报错有是正常 应用部署好以后启动tomcat,有时会报错,有时能正常启动.(期间没有对程序做任何修改) 报如下错: Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConne

【报错】项目启动部署时报错:java.lang.NoSuchMethodError

报错: ===================================================================================================== 项目启动部署报错: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.doWithLocalFields(Ljava/lang/Class;Lorg/springframework/util/Ref

启动项目时报错

问题描述 013-4-25 16:31:16 org.apache.catalina.core.AprLifecycleListener init信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:MyWoryToolsCommonbinarycom.sun.java.jd

activiti布署流程时报错

问题描述 org.apache.ibatis.exceptions.PersistenceException:解决方案二:Errorupdatingdatabase.Cause:java.sql.SQLException:ORA-01460:????????????解决方案三:Theerrormayinvolveorg.activiti.engine.impl.persistence.entity.ResourceEntity.insertResource-Inline解决方案四:Theerro

src目录下applicationContext.xml配置文件,启动tomcat时报错

问题描述 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletConte

java-启动tomcat时报错,但这个项目在其他电脑上能启动

问题描述 启动tomcat时报错,但这个项目在其他电脑上能启动 java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.(Unknown Source) at org.springframework.asm.ClassReader.(Unknown Source) at org.springframework.asm.ClassReader.(Unknown Source) at org.springfr

myeclipse中启动tomcat报错

问题描述 myeclipse中启动tomcat报错 在myeclipse中启动tomcat时报错,不知道怎么解决,请网友指点:报错信息如下Deployment is out of date due to changes in the underlying project contents.You'll need to 'Redeploy' the project to update the deployed archive; 警告提示是:构建路径指定执行环境 JavaSE-1.6.工作空间中没有