[jboss-jira] [JBoss JIRA] (JBRULES-3596) KnowledgeBase Incremental Build does not manage compiled types correctly

Davide Sottara (JIRA) jira-events at lists.jboss.org
Fri Aug 3 23:58:06 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3596?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davide Sottara updated JBRULES-3596:
------------------------------------

    Description: 
The issue arises when a KnowledgeBuilder is initialized with a KnowledgeBase for incremental building. 
Notice that this is what happens when a KnowledgeAgent is created setting the "useKBaseClassLoaderForCompiling" option.

The Kbuilder's PackageBuilder (~ line #1190) creates/gets a Package from the Rulebase, effectively adding the compilation results to the rulebase. 
However, AbstractRuleBase.addPackages (~ line #510) is called before the packageDescr is really compiled, so the kbuilder's additions are not correct (the rewiring done by addPackages is not performed) and the package(s) generated by the packagebuilder must be readded to the rulebase.
However, the compiled resources (e.g. declared types) are not rewired properly, so the class mismatch between the ones used for compilation and 
the ones used for runtime will prevent rules from firing.

This might potentially be related to JBRULES-3543 and JBRULES-2962 (under investigation)


  was:
The issue arises when a KnowledgeBuilder is initialized with a KnowledgeBase for incremental building. 
Notice that this is what happens when a KnowledgeAgent is created setting the "useKBaseClassLoaderForCompiling" option.

The Kbuilder's PackageBuilder (~ line #1190) creates/gets a Package from the Rulebase, effectively adding the compilation results to the rulebase. 
However, AbstractRuleBase.addPackages (~ line #510) is called before the packageDescr is really compiled, so the kbuilder's additions are not correct (the rewiring done by addPackages is not performed) and the package(s) generated by the packagebuilder must be readded to the rulebase.
However, the compiled resources (e.g. declared types) are not rewired properly, so the class mismatch between the ones used for compilation and 
the ones used for runtime will prevent rules from firing.

This might potentially be related to JBRULES-3542 and JBRULES-2962 (under investigation)



    
> KnowledgeBase Incremental Build does not manage compiled types correctly
> ------------------------------------------------------------------------
>
>                 Key: JBRULES-3596
>                 URL: https://issues.jboss.org/browse/JBRULES-3596
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler, drools-core
>    Affects Versions: 5.4.0.Final
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>            Priority: Blocker
>             Fix For: 5.5.0.Beta1
>
>
> The issue arises when a KnowledgeBuilder is initialized with a KnowledgeBase for incremental building. 
> Notice that this is what happens when a KnowledgeAgent is created setting the "useKBaseClassLoaderForCompiling" option.
> The Kbuilder's PackageBuilder (~ line #1190) creates/gets a Package from the Rulebase, effectively adding the compilation results to the rulebase. 
> However, AbstractRuleBase.addPackages (~ line #510) is called before the packageDescr is really compiled, so the kbuilder's additions are not correct (the rewiring done by addPackages is not performed) and the package(s) generated by the packagebuilder must be readded to the rulebase.
> However, the compiled resources (e.g. declared types) are not rewired properly, so the class mismatch between the ones used for compilation and 
> the ones used for runtime will prevent rules from firing.
> This might potentially be related to JBRULES-3543 and JBRULES-2962 (under investigation)

--
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

        


More information about the jboss-jira mailing list