Red Hat Bugzilla – Bug 1011522
Cannot build project after adding a knowledge base to kmodule
Last modified: 2014-08-11 06:23:48 EDT
Created attachment 802222 [details]
Description of problem:
After adding a kbase in Project Screen/Kmodule editor, attempts to build the project fail.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. navigate to mortgages, open Project Editor, switch to Knowledge bases and sessions section
2. add "kbase1", make it default and save changes
3. build the project
Build failed. Problems view reports: Deployment of unit mortgages:mortgages:0.0.1 failed: java.lang.IllegalStateException: Cannot find ksession with name
Build should succeed.
In case the kmodule definition is not valid and the build is expected to fail, the user should be instructed how to fix it. Current error description doesn't explain much. I tried to add ksession and it didn't help.
I have accidentally found the condition under which it is possible to successfully build the project. There has to be at least one DEFAULT STATEFUL ksession in any kbase.
By the description it seems this is an error with the example and/or error feedback.
A Kbase can exist without a default ksession, but in which case the application needs to fetch the session by name.
I tried to replicate with the provided steps and ER4 however was unable to do so. Please re-check and advise further if reported problem persists.