[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3123) [Regression] .rf file raises a null pointer exception when it is loaded

Kris Verlaenen (JIRA) jira-events at lists.jboss.org
Thu Sep 29 08:34:26 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631269#comment-12631269 ] 

Kris Verlaenen commented on JBRULES-3123:
-----------------------------------------

The problem is that the drools core modules don't really require jbpm5 modules, they are only needed once you start doing RuleFlow.  That is why they are not added as requirements in the pom of those modules.  Some drools modules that combine rules with processes (e.g. in the droolsjbpm-integration repository) do have a dependency to the necessary jbpm modules in their pom.  But if you want to use RuleFlow, it's probably best to add dependencies to both the drools and jbpm modules in your pom.

> [Regression] .rf file raises a null pointer exception when it is loaded
> -----------------------------------------------------------------------
>
>                 Key: JBRULES-3123
>                 URL: https://issues.jboss.org/browse/JBRULES-3123
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 5.2.0.Final
>            Reporter: Quentin Caillard
>            Assignee: Kris Verlaenen
>         Attachments: jUnitTest.tar.gz, jUnitTest.tar.gz
>
>
> I have just switched from version 5.1.1 to 5.2.0.Final
> I have a ruleflow (.rf) file which can be loaded. I have the following stack trace :
> java.lang.NullPointerException
> 	at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:516)
> 	at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:556)
> 	at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
> 	at com.ariadnext.NewDroolsTest$RulesUtils.loadRules(NewDroolsTest.java:107)
> I made a simple junit test which reproduces the bug.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list