[
https://issues.jboss.org/browse/DROOLS-1039?page=com.atlassian.jira.plugi...
]
Mario Fusco commented on DROOLS-1039:
-------------------------------------
There's already a logged error message like:
{code}
2016-04-14 10:36:00,259 [main] ERROR Unable to build kie service
url=file:/home/mario/workspace/droolsjbpm/drools/drools-beliefs/target/classes/META-INF/kie.conf
reason=[Error: unable to resolve class:
org.drools.beliefs.bayes.assembler.BayesAssemblerServicex]
[Near : {... assemblers' : [ new org.drools.beliefs.bayes.assem ....}]
^
{code}
and I'd prefer to keep it instead of throwing and Exception. What do you think?
An invalid kie.conf should throw an exception and not be silently
ignored
-------------------------------------------------------------------------
Key: DROOLS-1039
URL:
https://issues.jboss.org/browse/DROOLS-1039
Project: Drools
Issue Type: Enhancement
Components: core engine
Affects Versions: 6.4.0.Beta1
Reporter: Geoffrey De Smet
Assignee: Mario Fusco
In drools-belief or optaplanner-core, change the META-INF/kie.conf file like this:
{code}
[
'assemblers' : [ new org.foo.ThisDoesNotExists() ],
'weavers' : [],
'runtimes' : [],
'beliefs' : []
]
{code}
Current behavior: it doesn't throw any exception, but of course later on things go
haywire at some point with a completely unrelated error message.
Expected Behavior: Fail fast and let me know that org.foo.ThisDoesNotExists does not
exist and that my kie.conf is in error.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)