Red Hat Bugzilla – Bug 1271187
Provide filename of corrupted resources during KieBase build
Last modified: 2016-01-08 17:16:03 EST
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):
Steps to Reproduce:
1. Try to build KieBase with corrupted resources
Error which is thrown during the build process does not include filenames of corrupted resource
Error which is thrown during the build process of KieBase does include filename of corrupted resource