[jboss-jira] [JBoss JIRA] Resolved: (JBRULES-2043) Log problems while building the RuleBase
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Sun Apr 26 05:14:46 EDT 2009
[ https://jira.jboss.org/jira/browse/JBRULES-2043?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet resolved JBRULES-2043.
---------------------------------------
Fix Version/s: 5.0.0.GA
Resolution: Done
If you mean your scoreDrl didn't point to a correct classpath resource,
I've tested that out on the latest version and now you get a decent message:
Exception in thread "main" java.lang.IllegalArgumentException: scoreDrl (/org/drools/solver/examples/travelingtournament/solver/smart/ggsmartTravelingTournamentScoreRules.drl) does not exist as a classpath resource.
at org.drools.solver.config.localsearch.LocalSearchSolverConfig.buildRuleBase(LocalSearchSolverConfig.java:155)
at org.drools.solver.config.localsearch.LocalSearchSolverConfig.buildSolver(LocalSearchSolverConfig.java:138)
at org.drools.solver.config.XmlSolverConfigurer.buildSolver(XmlSolverConfigurer.java:73)
at org.drools.solver.examples.travelingtournament.app.smart.SmartTravelingTournamentApp.createSolver(SmartTravelingTournamentApp.java:24)
at org.drools.solver.examples.common.app.CommonApp.createSolutionBusiness(CommonApp.java:33)
at org.drools.solver.examples.common.app.CommonApp.<init>(CommonApp.java:21)
at org.drools.solver.examples.travelingtournament.app.AbstractTravelingTournamentApp.<init>(AbstractTravelingTournamentApp.java:10)
at org.drools.solver.examples.travelingtournament.app.smart.SmartTravelingTournamentApp.<init>(SmartTravelingTournamentApp.java:10)
at org.drools.solver.examples.travelingtournament.app.smart.SmartTravelingTournamentApp.main(SmartTravelingTournamentApp.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
If you meant something else, please reopen this issue.
> Log problems while building the RuleBase
> ----------------------------------------
>
> Key: JBRULES-2043
> URL: https://jira.jboss.org/jira/browse/JBRULES-2043
> Project: JBoss Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-solver
> Affects Versions: 5.0.0.M5
> Reporter: Dietmar Scheidl
> Assignee: Geoffrey De Smet
> Fix For: 5.0.0.GA
>
>
> I startet to experiment with the drools-solver but only got a NullPointerException:
> Caused by: java.lang.NullPointerException
> at org.drools.common.AbstractRuleBase.addPackages(AbstractRuleBase.java:429)
> at org.drools.reteoo.ReteooRuleBase.addPackage(ReteooRuleBase.java:395)
> at org.drools.solver.config.localsearch.LocalSearchSolverConfig.buildRuleBase(LocalSearchSolverConfig.java:166)
> at org.drools.solver.config.localsearch.LocalSearchSolverConfig.buildSolver(LocalSearchSolverConfig.java:137)
> at org.drools.solver.config.XmlSolverConfigurer.buildSolver(XmlSolverConfigurer.java:73)
> ...
> After debugging into this location, I found out that it comes from an error in my scoreDrl.
> The buildSolver-Method should fail with a more helpful exception or the result of the PackageBuilder should be available to analyse the problems.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list