Bug 1081552 - Models not available for rules - errors during deployment
Summary: Models not available for rules - errors during deployment
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.0.0
Hardware: All
OS: All
unspecified
high
Target Milestone: ER1
: 6.0.2
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-03-27 14:43 UTC by Adam Baxter
Modified: 2014-08-21 09:26 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-05-15 09:50:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
.niogit (426.18 KB, application/zip)
2014-03-27 14:43 UTC, Adam Baxter
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1078763 0 medium CLOSED Import suggestions should act as a mask for imports 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1132383 0 high CLOSED Guided Editor does not see classes from external JAR 2021-02-22 00:41:40 UTC

Internal Links: 1078763 1132383

Description Adam Baxter 2014-03-27 14:43:42 UTC
Created attachment 879516 [details]
.niogit

Description of problem:
Trying to follow a sample workflow. Created some data models to use in rules and the Guided Rule Editor. However, the models are not available. The package cannot be deployed and there are errors in the logs.

10:18:57,641 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost/127.0.0.1:8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.acme.insurance:policyquote:1.0]
10:18:57,683 ERROR [org.guvnor.common.services.builder.Builder] (http-localhost/127.0.0.1:8080-1)  org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader]
10:18:57,683 ERROR [org.guvnor.common.services.builder.Builder] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Rejection from [Module "deployment.business-central.war:main" from Service Module Loader]
10:19:05,479 ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-localhost/127.0.0.1:8080-1)  org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader]
10:19:05,479 ERROR [org.kie.workbench.common.services.datamodel.backend.server.cache.LRUProjectDataModelOracleCache] (http-localhost/127.0.0.1:8080-1) org.acme.insurance.Rejection from [Module "deployment.business-central.war:main" from Service Module Loader]
10:21:13,255 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (http-localhost/127.0.0.1:8080-1) KieModule was added:MemoryKieModule[ ReleaseId=org.acme.insurance:policyquote:1.0]


Version-Release number of selected component (if applicable):
Identified in jboss-brms-6.0.1.GA-redhat-4 (CR2)

How reproducible:
Consistent

Steps to Reproduce:
1. Create data models
2. Try to use data models in rules
3. Data models are missing

Actual results:
Data models not available for rules

Expected results:
Data models available for rules

Additional info:

Comment 2 manstis 2014-03-28 09:37:25 UTC
Using the acme/insurance/policyquote project.

This is caused by the incorrect use of "Import Suggestions".

"Import Suggestions" are really badly named; they are really a place to define imports for classes *not* in the Project, but for example (and their main use) classes in the JRE that you need: java.util.List etc.

Rmeoving the entries in "Import Suggestions" for Driver and Rejection solved the problem completely. See BZ https://bugzilla.redhat.com/show_bug.cgi?id=1078763 where we anticipate changing the behaviour of "Import Suggestions" to do as Adam (I assume) thought they operate.

This BZ is not a bug.

Comment 3 Adam Baxter 2014-04-02 19:44:36 UTC
I don't think it's necessary to change the application behavior. Notifying the user when they try to add something that exists in the package or is otherwise included by default would be sufficient.

Adam

Comment 4 Jiri Locker 2014-05-15 09:50:24 UTC
Can't reproduce exactly. I am able to use the model facts in guided editor to create a valid rule. The only problem is the build error:

Class not found: org.acme.insurance.Driver from [Module "deployment.business-central.war:main" from Service Module Loader]

This is no longer an error in 6.0.2, only a warning.

In any case, as Michael said, the problem is caused by incorrect using of project imports, which is not something the can be addressed within 6.0.2 release.


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