Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1096985

Summary: jBPM 6 project wizard (Maven) does not work with BPM Suite jars
Product: [Retired] JBoss BPMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: Eclipse ToolingAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED EOL QA Contact: Jozef Marko <jomarko>
Severity: medium Docs Contact:
Priority: high    
Version: 6.0.1CC: alazarot, mbaluch
Target Milestone: ER3   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 18:39:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
settings.xml
none
pom.xml with product BOM and versions
none
settings.xml update for BPMS 6.0.3.GA none

Description Alessandro Lazarotti 2014-05-12 21:22:16 UTC
Description of problem:

The maveninzed project generated by jBPM 6 project wizard does no work with BPM Suite even if the pom.xml is changed correctly to product BOM.


How reproducible:
Always

Steps to Reproduce:
1. Create a new "jBPM project (Maven)" in JBDS/Eclipse 
2. Executes the class ProcessMain.java - it will run successfully 
3. Change in POM.xml the jbpm-version to 6.0.1 and run the project again - the result will be:

-----
Exception in thread "main" org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn.hello:43 - ?:1] -- No active JTA transaction on joinTransaction call
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:161)
at org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:35)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:222)
at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:358)
at org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:189)
-----

4. Download the EAP 6.1.1 maven repository and BPM Suite 6.0.1 maven repository from customer portal and configure settings.xml accordingly. (see settings.xml attached)
5. Update the POM.xml to use the product version of jars and our BOM (see pom.xml attached)
6. Run the class ProcessMain.java again, the result will be:

-----
ERROR: Data conversion error converting "'ADDED' (TASKEVENT: TYPE INTEGER)"; SQL statement:
insert into TaskEvent (id, logTime, taskId, type, userId, OPTLOCK) values (null, ?, ?, ?, ?, ?) -- (NULL, ?1, ?2, ?3, ?4, ?5) [22018-168]
Exception in thread "main" org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.bpmn.hello:44 - Task 1:3] -- org.hibernate.exception.DataException: could not execute statement
	at org.jbpm.workflow.instance.node.WorkItemNodeInstance.internalTrigger(WorkItemNodeInstance.java:135)
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:155)
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:337)
	at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:296)
	at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:66)
-----

Actual results:
org.jbpm.workflow.instance.WorkflowRuntimeException / org.hibernate.exception.DataException or javax.persistence.TransactionRequiredException if used community jars

Expected results:
The same execution than if used jbpm-6.0.0.Final jars

Comment 1 Alessandro Lazarotti 2014-05-12 21:25:04 UTC
Created attachment 894878 [details]
settings.xml

Comment 2 Alessandro Lazarotti 2014-05-12 21:26:13 UTC
Created attachment 894880 [details]
pom.xml with product BOM and versions

Comment 3 Marek Baluch 2014-10-07 10:49:37 UTC
Alessandro,

is this still an issue? I was not able to reproduce it using 6.0.3 and JBDSIS 8.0.0.Alpha2.

I'm also attaching an updated settings.xml file which I have used.

Comment 4 Marek Baluch 2014-10-07 10:50:34 UTC
Created attachment 944533 [details]
settings.xml update for BPMS 6.0.3.GA

Comment 5 Kris Verlaenen 2014-11-26 00:11:49 UTC
Could no longer reproduce this.

Comment 6 Jozef Marko 2015-02-13 10:56:59 UTC
Verified on jbds-8.0.2.GA_jbdsis-8.0.0.CR2:
I didn't reproduce problem.
Default jBPM maven project contains <jbpm.version>6.1.0.Final</jbpm.version> and ProcessMain class works well.

Comment 7 Red Hat Bugzilla 2023-09-14 02:07:45 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days