You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Greg Lucas (JIRA)" <ji...@apache.org> on 2009/10/21 17:09:52 UTC
[jira] Created: (SMXCOMP-662) NullPointerException installing
drools su
NullPointerException installing drools su
-----------------------------------------
Key: SMXCOMP-662
URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
Project: ServiceMix Components
Issue Type: Bug
Components: servicemix-drools
Affects Versions: servicemix-drools-2009.01
Reporter: Greg Lucas
Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
rule "Do Nothing"
then
end
Caused by: java.lang.NullPointerException
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Lucas updated SMXCOMP-662:
-------------------------------
Attachment: SMXCOMP-622-bundles-patch.txt
Bundles patch to add include missing files in drools-4.0.7 bundle.
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles-patch.txt
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Lucas updated SMXCOMP-662:
-------------------------------
Patch Info: [Patch Available]
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles-patch.txt
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54882#action_54882 ]
Greg Lucas commented on SMXCOMP-662:
------------------------------------
The problem here is actually with the org.apache.servicemix.bundles.drools-4.0.7 jar it is missing the META-INF/drools.default.rulebase.conf that configures the default package builder. (The unit tests run against the drools jars directly so they don't this issue.)
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Lucas updated SMXCOMP-662:
-------------------------------
Attachment: SMXCOMP-622-features.patch
Patch for features to pick up the necessary bundles for the servicemix-drools component. This patch assumes the drools 4.0.7_4 and mvel 1.3.12_1 bundles will be released.
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles.patch, SMXCOMP-622-components.patch, SMXCOMP-622-features.patch, SMXCOMP-622-servicemix-drools.patch
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54892#action_54892 ]
Greg Lucas commented on SMXCOMP-662:
------------------------------------
I've found that drools-4.0.7 does not work with mvel-1.3.16. There is an API change (a method removed) after 1.3.12 that breaks drools compatibility. The servicemix-drools tests seem to be running successfully with mvel-1.3.1-java1.4, but I've read some issues using that mvel jar on other JVMs.
To have a working drools 4.0.7 component for 4.1 it looks like we would need to:
- create a mvel 1.3.12 bundle
- update the servicemix-drools manifest to import the org.drools.rule.builder.dialect.java and org.drools.rule.builder.dialect.mvel packages
- update the servicemix-drools feature to add the mvel bundle.
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles-patch.txt
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Lucas updated SMXCOMP-662:
-------------------------------
Attachment: (was: SMXCOMP-622-bundles-patch.txt)
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles.patch, SMXCOMP-622-components.patch, SMXCOMP-622-servicemix-drools.patch
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Greg Lucas (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Greg Lucas updated SMXCOMP-662:
-------------------------------
Attachment: SMXCOMP-622-servicemix-drools.patch
SMXCOMP-622-components.patch
SMXCOMP-622-bundles.patch
Revised bundles patch that:
- adds missing conf files to drools-4.0.7
- adds a new mvel-1.3.12 bundle
Patch for components-pom to support specifying dynamic-imports.
Patch for servicemix-drools component to add dynamic-import to pick up drools dialect and spi classes needed during rules parsing.
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Attachments: SMXCOMP-622-bundles.patch, SMXCOMP-622-components.patch, SMXCOMP-622-servicemix-drools.patch
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (SMXCOMP-662) NullPointerException installing
drools su
Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/SMXCOMP-662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet resolved SMXCOMP-662.
-------------------------------------
Resolution: Fixed
Fix Version/s: servicemix-drools-2009.02
Assignee: Guillaume Nodet
Committed revision 830181.
Committed revision 830179.
Committed revision 830177.
> NullPointerException installing drools su
> -----------------------------------------
>
> Key: SMXCOMP-662
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-662
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-drools
> Affects Versions: servicemix-drools-2009.01
> Reporter: Greg Lucas
> Assignee: Guillaume Nodet
> Fix For: servicemix-drools-2009.02
>
> Attachments: SMXCOMP-622-bundles.patch, SMXCOMP-622-components.patch, SMXCOMP-622-features.patch, SMXCOMP-622-servicemix-drools.patch
>
>
> Installing a drools su with a simple drl file causes a NullPointerException. I'm using the AutoReply.drl file from the servicemix-drools unit tests, i.e. one simple rule:
> rule "Do Nothing"
> then
> end
> Caused by: java.lang.NullPointerException
> at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:47)
> at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:446)
> at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:304)
> at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:167)
> at org.drools.compiler.RuleBaseLoader.loadFromReader(RuleBaseLoader.java:38)
> at org.apache.servicemix.drools.DroolsEndpoint.start(DroolsEndpoint.java:205)
> ... 28 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.