[
https://issues.jboss.org/browse/JBRULES-3145?page=com.atlassian.jira.plug...
]
RH Bugzilla Integration commented on JBRULES-3145:
--------------------------------------------------
Edson Tirelli <etirelli(a)redhat.com> made a comment on [bug
811745|https://bugzilla.redhat.com/show_bug.cgi?id=811745]
The core engine fix is committed and published. Michael is now making sure the guvnor part
of the fix is correct and he will let us know when it is done. The commits for the core
engine are:
[drools] etirelli pushed 1 new commit to 5.2.x:
https://github.com/droolsjbpm/drools/commit/611c993305ffbe1d0eb846351d58d...
[drools/5.2.x] JBRULES-3145 BZ-811745: improving the agent code to handle different types
of serialized packages - Edson Tirelli
[drools] etirelli pushed 1 new commit to 5.3.x:
https://github.com/droolsjbpm/drools/commit/5802f2e7b784712eb85dba6d0dcf4...
[drools/5.3.x] JBRULES-3145 BZ-811745: improving the agent code to handle different types
of serialized packages - Edson Tirelli
[drools] etirelli pushed 1 new commit to 5.4.x:
https://github.com/droolsjbpm/drools/commit/0ba64ba4d15b7827a84af617dfc2e...
[drools/5.4.x] JBRULES-3145 BZ-811745: improving the agent code to handle different types
of serialized packages - Edson Tirelli
[drools] etirelli pushed 1 new commit to master:
https://github.com/droolsjbpm/drools/commit/5fadf55cf97c0d6a9f3ecddfb29e3...
[drools/master] JBRULES-3145 BZ-811745: improving the agent code to handle different types
of serialized packages - Edson Tirelli
Types declared in DRL with no fields are not included in
KnowledgeBase compiled by ChangeSet
--------------------------------------------------------------------------------------------
Key: JBRULES-3145
URL:
https://issues.jboss.org/browse/JBRULES-3145
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.2.0.Final
Environment: Drools 5.2.0 Final, Guvnor 5.2.0 Final
Reporter: John Fullard
Assignee: Edson Tirelli
Fix For: 5.3.0.Final
Attachments: new_repository_export.zip
Setting up KnowledgeBase using KnowledgeAgent which is pulling package from Guvnor. DRL
declares type, which already exists in client model, with @role(event) and no fields. Get
the following stack trace when inserting an object:
java.lang.NullPointerException
at
org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactory.java:56)
at
org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:80)
at
org.drools.common.AbstractFactHandleFactory.newFactHandle(AbstractFactHandleFactory.java:65)
at org.drools.common.NamedEntryPoint.createHandle(NamedEntryPoint.java:705)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:282)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:905)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:864)
at
org.drools.impl.StatefulKnowledgeSessionImpl.insert(StatefulKnowledgeSessionImpl.java:255)
at john.DroolsError.runRules(DroolsError.java:48)
at john.DroolsError.main(DroolsError.java:40)
If the type is fully declared in the DRL, the NPE does not occur.
When compiling a DRL from a Change Set, the resulting package in the Knowledge Base does
not contain declare'd types that do not contain fields; it only contains declares with
at least one field. This results in a ClassObjectTypeConf with a typeDecl == null.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira