Bug 1105516 - Quickstarts: projects from jboss-brms-repository cannot be built and deployed
Summary: Quickstarts: projects from jboss-brms-repository cannot be built and deployed
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.2
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.1.0
Assignee: Marco Rietveld
QA Contact: Tomas David
URL:
Whiteboard:
Depends On: 1145985
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-06 09:56 UTC by Tomas David
Modified: 2020-03-27 20:08 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-03-27 20:08:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
server log (142.57 KB, text/x-log)
2014-06-06 09:56 UTC, Tomas David
no flags Details
New Server log (212.26 KB, text/plain)
2014-09-25 09:31 UTC, Tomas David
no flags Details

Description Tomas David 2014-06-06 09:56:18 UTC
Created attachment 902836 [details]
server log

Description of problem:
Projects my-store-brms-kmodule and helloworld-brms-kmodule from jboss-brms-repository cannot be builded and deployed on BPMS business central. See log file in attachment.

Version-Release number of selected component (if applicable):
BPMS 6.0.2.ER3.

How reproducible:
Always on BPMS business central.

Steps to Reproduce:
1. Clone jboss-brms-repository from quickstarts zip file to BPMS business central.
2. Select project and navigate to Project Editor.
3. Click on Build & Deploy.

Actual results:
An exception is occurred.

Expected results:
Project should be builded and deployed without exception.

Additional info:
Building and deploying projects from jboss-brms-repository works fine on BRMS business central.

Comment 1 manstis 2014-06-06 14:35:23 UTC
Attached server log suggests this is a jBPM Console issue. Reassigning.

Comment 2 Ryan Zhang 2014-09-23 08:14:19 UTC
I think this issue is no long valid any more. 
Since I didn't find this issue for 6.1.0. 
Double Checked with 6.1.0 DR3 too.

Comment 3 Tomas David 2014-09-25 09:29:42 UTC
Version-Release number of selected component (if applicable):
BPMS-6.1.0-DR3
BRMS-6.1.0-DR3

New problem appeared. Building quickstarts repo now doesn't work in both types of business central (BRMS, BPMS). It seems to be same error as in BZ 1145985.

Comment 4 Tomas David 2014-09-25 09:31:56 UTC
Created attachment 941030 [details]
New Server log

Comment 5 Ryan Zhang 2014-10-21 03:31:28 UTC
I can't reproduce the issue on both DR3 and DR4.
It deployed ok when I testing the quickstarts.
Could you verify this again on DR4?

Comment 6 Tomas David 2014-10-22 07:48:07 UTC
Still in DR4.

Comment 7 Petr Široký 2015-02-14 19:58:19 UTC
I have been able to successfully built the projects in BRMS Business Central ER5. However, when building with BPM Suite Business Central, I am getting an exception for helloworld-brms-kmodule and my-store-brms-kmodule:

java.lang.IllegalStateException: Cannot find ksession, either it does not exist or there are multiple default ksession in kmodule.xml
	at org.jbpm.services.cdi.impl.manager.InjectableRegisterableItemsFactory.getWorkItemHandlers(InjectableRegisterableItemsFactory.java:155) [jbpm-services-cdi-6.2.0.Final-redhat-1.jar:6.2.0.Final-redhat-1]

The reason seems to be the fact that the kmodules declare only one stateless ksession. No stateful one is defined and the deployment fails because jBPM can't use stateless sessions. When changing the config to stateful, the deployment is successful.

We either need to make the default session stateful in the example kmodules, somehow fix/update the behavior when there is no stateful session found.

Comment 8 Petr Široký 2015-02-14 22:46:05 UTC
The default sessions are now stateful. This is quick fix for now. I will review all the kmodules in future and we may decide to fix it another way.

https://github.com/jboss-developer/jboss-brms-repository/commit/52a658d437c0f2d5645121204a9d2eaa8c255acd

Comment 9 Petr Široký 2015-02-15 11:18:02 UTC
I was too hasty. The quickstarts rely on the stateless sessions so they need to stay there. I added second ksession (stateful) into the configs.

https://github.com/jboss-developer/jboss-brms-repository/commit/815397a99b22cc18d3565d0d715aa5722ee1d74f

Comment 10 Tomas David 2015-03-10 08:21:12 UTC
Verified on BPMS 6.1.0.ER6.


Note You need to log in before you can comment on or make changes to this bug.