Bug 1318910 - fix reteoo intialization via system property
Summary: fix reteoo intialization via system property
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ER3
: 6.3.0
Assignee: Mario Fusco
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On:
Blocks: 1318911
TreeView+ depends on / blocked
 
Reported: 2016-03-18 06:00 UTC by Toshiya Kobayashi
Modified: 2020-03-27 19:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1318911 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:07:10 UTC
Type: Bug


Attachments (Terms of Use)

Description Toshiya Kobayashi 2016-03-18 06:00:41 UTC
Description of problem:

Platform BZ for https://issues.jboss.org/browse/DROOLS-986


If you run Drools with  System.setProperty("drools.ruleEngine", "reteoo"), you will get an NPE.

====
java.lang.NullPointerException
	at org.drools.core.RuleBaseConfiguration.configureReteComponentFactory(RuleBaseConfiguration.java:953)
	at org.drools.core.RuleBaseConfiguration.setPhreakEnabled(RuleBaseConfiguration.java:791)
	at org.drools.core.RuleBaseConfiguration.init(RuleBaseConfiguration.java:495)
	at org.drools.core.RuleBaseConfiguration.init(RuleBaseConfiguration.java:429)
	at org.drools.core.RuleBaseConfiguration.<init>(RuleBaseConfiguration.java:420)
	at org.drools.core.impl.KnowledgeBaseFactoryServiceImpl.newKnowledgeBaseConfiguration(KnowledgeBaseFactoryServiceImpl.java:38)
	at org.kie.internal.KnowledgeBaseFactory.newKnowledgeBaseConfiguration(KnowledgeBaseFactory.java:125)
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.getKnowledgeBaseConfiguration(KieContainerImpl.java:516)
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.createKieBase(KieContainerImpl.java:497)
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:440)
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:597)
	at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:568)
	at com.sample.DroolsTest.main(DroolsTest.java:19)
====

Steps to Reproduce:

See Unit test in the commit

https://github.com/droolsjbpm/drools/commit/731f00a66b0fbe6591160af588e0bed44d186c83


Actual results:

NullPointerException is thrown

Expected results:

Execute without an Exception

Comment 1 Toshiya Kobayashi 2016-03-18 06:03:04 UTC
I confirmed that it is already fixed in 6.4.x branch and product tag sync-6.4.x-2016.03.08. Setting to MODIFIED.

Comment 2 Tibor Zimanyi 2016-04-15 07:24:24 UTC
Verified by running the linked test on supported environments.


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