Bug 796612 - Error during validation of model in Guvnor
Summary: Error during validation of model in Guvnor
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: BRM (Guvnor)
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: ---
: BRMS 5.3.0.GA
Assignee: manstis
QA Contact: Sona Mala
URL:
Whiteboard:
Depends On:
Blocks: 754093
TreeView+ depends on / blocked
 
Reported: 2012-02-23 10:30 UTC by Sona Mala
Modified: 2020-04-27 01:13 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---


Attachments (Terms of Use)
Server log, source code of model (6.45 KB, text/plain)
2012-02-23 10:30 UTC, Sona Mala
no flags Details


Links
System ID Priority Status Summary Last Updated
Red Hat Issue Tracker JBRULES-3417 Blocker Resolved 5.3.x Regression: SuperTypeName for a Declared Type extending reports as Object 2013-08-13 03:00:25 UTC
Red Hat Issue Tracker JBRULES-3418 Critical Resolved 5.3.x Regression: Declared Super-Types: Compile-time error 2013-08-13 03:00:23 UTC

Description Sona Mala 2012-02-23 10:30:34 UTC
Created attachment 565251 [details]
Server log, source code of model

Description of problem:
During validation of model, an alert "Unable to validate this asset. (Check log for detailed messages)." appears. Server log contains an error (the description is attached)


Version-Release number of selected component (if applicable):
BRMS-standallone-5.3.0.ER4

How reproducible:
Validation of new or empty model is ok. After saving non-empty model, the validation error appears.

Steps to Reproduce:
1. Open new or empty model
2. Add some fields
3. Validate
4. Save the model
5. Validate
  
Actual results:
Step 3. Validation is ok. The source code of model is attached.
Step 5. Validation failed. The source code of model is attached.

Expected results:
If I do not change a model, I expect the same result of validation.

Additional info:

Comment 1 Jiri Locker 2012-02-23 13:36:35 UTC
This is a regression. After saving the declarative model, the whole package is broken. Rules that use facts from the declarative model cannot be validated, test scenarios cannot be run and the package cannot be built.

Comment 4 Sona Mala 2012-02-27 10:13:54 UTC
I tried save a declarative model with two facts: 

1.	|	declare Fact
2.	|	    field: String
3.	|	end
4.	|	
5.	|	declare Fact2 extends Fact
6.	|	    number: Integer
7.	|	end

After saving the source view looks like:

1.	|	declare Fact extends Object
2.	|	    field: String
3.	|	end
4.	|	
5.	|	declare Fact2 extends Object
6.	|	    number: Integer
7.	|	end

When I am creating new rule I can not find Fact2.field. I lost information that Fact2 extends Fact.

Comment 5 manstis 2012-03-15 14:45:51 UTC
This is due to a regression in Drools Expert. I have asked for a fix made to
master to be back-ported... and am awaiting confirmation it has been completed. See https://bugzilla.redhat.com/show_bug.cgi?id=754093

Comment 8 Anne-Louise Tangring 2012-03-28 14:47:52 UTC
Setting Blocker flag as agreed on in triage meeting.

Comment 9 JBoss JIRA Server 2012-03-30 12:50:02 UTC
Michael Anstis <michael.anstis@gmail.com> updated the status of jira JBRULES-3418 to Coding In Progress

Comment 10 JBoss JIRA Server 2012-03-30 12:50:08 UTC
Michael Anstis <michael.anstis@gmail.com> updated the status of jira JBRULES-3417 to Coding In Progress

Comment 11 JBoss JIRA Server 2012-03-30 12:54:32 UTC
Michael Anstis <michael.anstis@gmail.com> updated the status of jira JBRULES-3418 to Resolved

Comment 12 JBoss JIRA Server 2012-03-30 12:54:42 UTC
Michael Anstis <michael.anstis@gmail.com> updated the status of jira JBRULES-3417 to Resolved

Comment 13 Ryan Zhang 2012-04-23 07:38:18 UTC
Update status to ON_QA. Please verify them against ER6.


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