Bug 1271187

Summary: Provide filename of corrupted resources during KieBase build
Product: [Retired] JBoss BRMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: BREAssignee: Kris Verlaenen <kverlaen>
Status: CLOSED EOL QA Contact: Marek Winkler <mwinkler>
Severity: unspecified Docs Contact:
Priority: high    
Version: 6.1.0CC: kverlaen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:05:41 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anton Giertli 2015-10-13 10:57:14 UTC
Description of problem:
When there are corrupted resources (processes, rules) then KieBase creation will of course fail. However, output from the build process does not include actual filenames of the corrupted resources - the more resources are being built, the harder it is to discover which one actual includes the mentioned error. 

See this example:

2015-09-28 00:45:50,075 ERROR [org.drools.compiler.kie.builder.impl.AbstractKieModule] - Unable to build KieBaseModel:defaultKieBase
2015-09-28 00:45:50,090 INFO (http-/10.208.154.13:80-7) [stdout] - ProcessLoadError: unable to parse xml : Exception class org.xml.sax.SAXParseException : <metaData> has an invalid parent element [SequenceFlow (_C637375F-F9B7-4FA6-BB81-65826505DB50) [_89F37978-7DA3-4D5D-8D5A-B6A36A19B426 -> _E2FCE161-86B3-47AE-8098-3F88610D5645]]

It is clear that the error lies with some BPMN process, but it is not clear which one is it.

Version-Release number of selected component (if applicable):
6.x

How reproducible:
always

Steps to Reproduce:
1. Try to build KieBase with corrupted resources

Actual results:

Error which is thrown during the build process does not include filenames of corrupted resource

Expected results:
Error which is thrown during the build process of KieBase does include filename of corrupted resource


Additional info: