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

Bug 1067068

Summary: Cannot run processes in cluster
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jiri Svitak <jsvitak>
Component: Business CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED WORKSFORME QA Contact: Jiri Svitak <jsvitak>
Severity: urgent Docs Contact:
Priority: high    
Version: 6.0.0CC: mbaluch
Target Milestone: ---Keywords: TestBlocker
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-20 13:17:40 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
cluster-deployments-screen.png
none
cluster-process-definitions.png
none
cluster-project-explorer.png
none
server-one.log (NPE AbstractDeploymentService.java:128) none

Description Jiri Svitak 2014-02-19 15:47:59 UTC
Created attachment 865132 [details]
cluster-deployments-screen.png

This bugzilla may be connected to this replication bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1067045

As the system.git do not seem to replicate in BPMS 6.0.1.ER1 I had to run deploy command on each cluster node manually, for example  (asset repositories replicated well across cluster):

curl -X POST -u "guest:guest" -H "Content-Type: application/json" -d '{"name":"","value":""}' http://localhost:8080/business-central/rest/repositories/bpms-assets/projects/bpms-perf/maven/deploy/

However this indeed created an entry in deployments tab - see the attachment. It however didn't create any item in process definitions screen (see the second attachment). So I was unable to run process using GUI neither using REST command, for example:

curl -X POST -u "guest:guest" http://localhost:8080/kie-wb/rest/runtime/com.bpms.flood:bpms-perf:1.0.0.Final/process/com.bpms.flood.HumanTask/start

(result was JBWEB000124: The requested resource is not available.)

My env:
BPMS 6.0.1.ER1
EAP 6.1.1
Zookeeper 3.3.4
Helix 0.6.2

Comment 1 Jiri Svitak 2014-02-19 16:11:35 UTC
Created attachment 865152 [details]
cluster-process-definitions.png

Process definitions screen is blank, it's not possible to start processes. Neither via GUI nor REST API.

Comment 2 Maciej Swiderski 2014-02-19 16:14:47 UTC
Jiri, isn't this related to this: https://bugzilla.redhat.com/show_bug.cgi?id=1066584?

Comment 3 Jiri Svitak 2014-02-19 16:34:55 UTC
Created attachment 865157 [details]
cluster-project-explorer.png

It shouldn't be as he was able to see the list of available process definitions, but the start dialog with large 'Start' button was blank. I may try with playground repo too, but I think these two bugs are not related.

I am attaching another picture - I am unable to select bpms-assets repo in organizational unit qe in project explorer, even when this repo is member of qe OU in 'Manage organizational units' tab. So I am not able to build & deploy the project manually in GUI. I think it might be a result of broken system.git synchronization in cluster, as described in BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1067045

Comment 4 Jiri Svitak 2014-02-19 18:33:23 UTC
Thanks Maciej for the hint. I've tried to create an empty repository named jbpm-playground and now I am able to open project editor. Also I am able to choose a repository in an organizational unit.

However when I tried to Build & Deploy the project I got this error in the GUI error dialog:
Unable to complete your request. The following exception occurred: java.lang.ClassNotFoundException:javax.naming.Context from [Module "com.opensymphony.quartz:main" from local module loader @6fc6ce97 (finder: local module finder @652554d5 (roots: /mnt/hudson_workspace/bpms-perf/bpms-6.0.1.ER1/jboss-eap-bpms/modules,/mnt/hudson_workspace/bpms-perf/bpms-6.0.1.ER1/jboss-eap-bpms/modules/system/layers/bpms,/mnt/hudson_workspace/bpms-perf/bpms-6.0.1.ER1/jboss-eap-bpms/modules/system/layers/base))].

So adding a 'jbpm-playground' repo unlocks several options, but I am still not able to run the processes as 'Process definitions' screen contains no items.

I will try to add com.opensymphony.quartz to module.xml and will see if it helps. I will probably file another Bugzilla just to fix this, because the original problem of this BZ so far persists.

Comment 5 Jiri Svitak 2014-02-19 18:57:10 UTC
Created attachment 865180 [details]
server-one.log (NPE AbstractDeploymentService.java:128)

I have added module com.opensymphony.quartz to file modules/system/layers/bpms/org/kie/lib/main/module.xml and now there is no CNFE error in GUI dialog, but the build operation fails due to NPE:

[Server:server-one] Caused by: java.lang.NullPointerException
[Server:server-one] 	at org.jbpm.kie.services.impl.AbstractDeploymentService.undeploy(AbstractDeploymentService.java:128) [jbpm-kie-services-6.0.2-redhat-3.jar:6.0.2-redhat-3]

See the attached server-one.log. 

p.s. I have created a separate Bugzilla to track adding of module com.opensymphony.quartz:
https://bugzilla.redhat.com/show_bug.cgi?id=1067129

Comment 6 Jiri Svitak 2014-02-20 13:17:40 UTC
Ok, so I needed also to add dependency for javax.api to com.opensymphony.quartz module. 

I still had problems with node replication (only git repos are replicating, OUs and deployments do not).
https://bugzilla.redhat.com/show_bug.cgi?id=1067045

However now I was able to build & deploy the project and see business process definitions. Also I was able to start a business process on node2 and complete its human task on node1.

Closing this bugzilla. If there will be problems with 'Process definitions' screen in cluster setup in the future, I'll file a new BZ.