[jboss-jira] [JBoss JIRA] Commented: (JBRULES-3123) [Regression] .rf file raises a null pointer exception when it is loaded
Emanuele Mariani (JIRA)
jira-events at lists.jboss.org
Sun Jul 17 04:42:23 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614648#comment-12614648 ]
Emanuele Mariani commented on JBRULES-3123:
-------------------------------------------
Hi,
I had the same problem and with debug I discover that the new approch to create a ProcessBuilder is to use a "org.jbpm.process.builder.ProcessBuilderFactoryServiceImpl" (row 26 of ProcessBuilderFactory).
Searching on all the parents pom.xml of knoledge-api I see that drools project is composed by drools api and jbpm api and if i tried to include this dependency:
<groupId>org.jbpm</groupId>
<artifactId>jbpm-bpmn2</artifactId>
<version>5.1.0.Final</version>
With this inclusion the ProcessBuilderFactory find the ProcessBuilderFactoryServiceImpl on the classpath and all work correctly.
So, I suppose that is only a problem of not proper dependency management.
I hope I helped
Bye
> [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: Mark Proctor
> 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