[jBPM] - org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception
by denghua denghua
denghua denghua [https://community.jboss.org/people/denghua10] created the discussion
"org.jbpm.integration.console.StatefulKnowledgeSessionUtil exception"
To view the discussion, visit: https://community.jboss.org/message/748616#748616
--------------------------------------------------------------
Hi,
jbpm5.3 Problem
| http://localhost:8080/jbpm-console/app/clear.cache.gif (http://localhost:8080/jbpm-console/app/clear.cache.gif) |
| * URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions'
* Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction'
* Exception: 'class com.google.gwt.http.client.RequestException'
HTTP 500: h1. HTTP Status 500 -
----
*type* Exception report
*message*
*description* The server encountered an internal error () that prevented it from fulfilling this request.
*exception*
org.jboss.resteasy.spi.UnhandledException: java.lang.NoClassDefFoundError: Could not initialize class org.jbpm.integration.console.StatefulKnowledgeSessionUtil$SessionHolder org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345) org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190) org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119) org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) javax.servlet.http.HttpServlet.service(HttpServlet.java:847) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) |
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/748616#748616]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - jBPM-4.4 Unable to save Process Variable History
by Santosh Singh
Santosh Singh [https://community.jboss.org/people/santoshsingh] created the discussion
"jBPM-4.4 Unable to save Process Variable History"
To view the discussion, visit: https://community.jboss.org/message/761889#761889
--------------------------------------------------------------
Hello Everyone,
I have requirement where i need to show tracking of an workflow. However history for task, Activity, Process intances are saved into corresponding history tables.
But while browsing through JBPM4_HIST_VAR table , i am unable to get ani information about process variables.
please see the following code.
ProcessInstance pInstance =
executionService
Map<String, Object> params = new HashMap<String, Object>();
params.put("SubmittalCoordinator", "HO-DWG");
params.put("CivilDepartment", "HO-CIVIL");
params.put("MechanicalDepartment", "HO-MECH");
ProcessInstance pInstance = executionService.startProcessInstanceByKey("workflowStatus", params);
executionService.setVariable(pInstance.getId(), "ProcessInstanceId", "workflowStatus");
repositoryService.createDeployment().addResourceFromClasspath("insight/abg/jbpm/workflowStatus.jpdl.xml").setName("workflowStatus").deploy();
ProcessInstance pInstance = executionService
.startProcessInstanceByKey(instanceKey, params);
executionService.setVariable(pInstance.getId(), "ProcessInstanceId", pInstance);
((ExecutionImpl)pInstance).createVariable("someString", "SomeString","string",true);
Variable variable = ((ExecutionImpl)pInstance).getVariableObject( "SomeString");
HistoryEvent.fire(new VariableCreate(variable));
// EnvironmentImpl environment = ((EnvironmentFactory) processEngine).openEnvironment();
// try {
// ((ExecutionImpl)pInstance).createVariable("someString", "SomeString","string",true);
// Session session = environment.get(Session.class);
// Transaction tx = session.beginTransaction();
// session.update(pInstance);
// tx.commit();
// } finally {
// environment.close();
// }
While debugging I am able to see data in variable object, but it is not getting save in JBPM4_HIST_VAR table.
Can anyone help me?
Thanks in advance .
Regards,
Santosh
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/761889#761889]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - last_read_date update causing StaleObjectStateException
by Richard Evans
Richard Evans [https://community.jboss.org/people/r3vans] created the discussion
"last_read_date update causing StaleObjectStateException"
To view the discussion, visit: https://community.jboss.org/message/760399#760399
--------------------------------------------------------------
Hello there,
*jbpm 5.3.0.Final*
I have a server running jbpm happily on a couple of load-balanced hosts. All fine until I use a simple Web interface to view details of a running peocess. This UI calls kSession.getProcessInstance(id) to access process variables. The server handling that process promptly gets a hibernate StaleObjectStateException. The immediate cause seems to be that getProcessInstance generates an update to process_instance_info.last_read_date. The server falls over when attempting update a process following an event.
What I am attempting to do seems reasonable - providing a readonly view to an in-flight process. Is there something flawed in my approach? If I removed the call to updateLastReadDate() in JPAProcessInstanceManager would there be any repercussions other than an inaccurate value in the field?
Thanks for any help.
Richard
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/760399#760399]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months
[jBPM] - Having problems in configuring jBPM persistence on AS 7.1.0 Final
by Vimal Kansal
Vimal Kansal [https://community.jboss.org/people/vimalkansal] created the discussion
"Having problems in configuring jBPM persistence on AS 7.1.0 Final"
To view the discussion, visit: https://community.jboss.org/message/738203#738203
--------------------------------------------------------------
Hi,
I am trying to configure jBPM 5.3 persistence configured and having troubles, any help will be gretaly appreciated. So here is what I am doing :
My use case involves building a JEE6 web app with jBPM 5.2 engine embedded in it.
I am using JBoss Developer Studio 5.0 Beta 3 to generate a JEE6 web app using one of the maven plugins. Once the app is generated, I have added dependencies on jbpm-bpmn2 and jbpm-persistence-jpa. I have also updated the persistence.xml file (please see the attached file). Note that I have 2 persistence units in it : one for application data and other for jbpm. When I deploy this application to AS 7.1.0, (mvn clean package jboss-as:deploy), I get the following persistence exception :
=========================================================================================================================================
23:32:43,335 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory
23:32:43,341 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] class or package not found
at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1401)
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1184)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1048)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:693)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
... 3 more
Caused by: java.lang.ClassNotFoundException: org.jbpm.process.audit.ProcessInstanceLog from [Module "org.hibernate:main" from local module loader @23e5d1 (roots: /home/vimal/Apps/jboss-eap-6.0/modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_31]
at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_31]
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170)
at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1318)
at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1390)
... 11 more
===================================================================================================================================
Can somebody please help.
Thx
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/738203#738203]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 6 months