Unable to build project if kbase and ksession names are identical in JBoss BxMS 6

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BRMS (BRMS) 6
  • Red Hat JBoss BPM Suite (BPMS) 6

Issue

  • After adding the local BRMS maven respository, builds initiated from the web portal failed due to a NullPointerException. Additionally, a NPE is thrown on navigating to the authoring perspective;
  • Building a project which contains a kmodule.xml where the name of the kbase and the ksession are the same fails with only a 'Build failed' popup. This does not build:
<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="main" default="true" eventProcessingMode="stream" equalsBehavior="identity">
    <ksession name="main" type="stateful" default="true" clockType="realtime"/>
  </kbase>
</kmodule>

Resolution

A workaround would be to use different names as follows:

<kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <kbase name="main" default="true" eventProcessingMode="stream" equalsBehavior="identity">
    <ksession name="test" type="stateful" default="true" clockType="realtime"/>
  </kbase>
</kmodule>

This is an issue that will be fixed in JBoss BxMS 7.

Root Cause

This issue is handled in RHBRMS-2689.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments