Drools 4.0.7 - call for testers
by Edson Tirelli
All,
We are about to release Drools 4.0.7, but we want to improve QA for the
community version. We have a good amount of unit and integration tests, but
we would like to ask those of you using Drools 4.0.x to checkout and try
4.0.7 before we do the official release, in order to ensure 4.0.7 covers
your use case. This way, if by any chance you find a problem or regression,
we can address it and include in 4.0.7 version.
To checkout the code:
http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/
Instructions on how to build are in the manual, but being short, you
need maven 2.0.8 and you should run:
mvn -Ddocumentation -Declipse clean install
If you have any problems with that, check the manual.
We are setting a short deadline. We will wait for reports until end of
day tomorrow, so hurry up. We are not sure at this point if we will release
another community version in the 4.0.x series or the next release will be
5.0.0, so if you use drools 4.0.x, it is advisable you take the time to do
this check.
Thanks a lot
Edson
--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com
16 years, 8 months
Re: [rules-users] mvel error?
by Christine
> My suggestion for you and Chris to try 4.0.7 is that if you have a
> problem with it, we can fix it before it is released. Once we release it,
> unless something really bad is found in the community version, there will
> be
> no 4.0.8. Next release will probably be 5.0.0.
I will test it this weekend, I'll let you know.
Christine
>
> The status with 4.0.7 is that it is ready to be released, since no one
> reported any serious problem with it. So it will happen any moment now.
>
> Please note that all these applies only to the community version. The
> Red
> Hat's enterprise supported version release cycle, QA, patches, etc is
> following different path now.
>
> []s
> Edson
>
>
> 2008/4/25 Christine <christine(a)christine.nl>:
>
>>
>> > Did you guys tried 4.0.7, that is about to be released? Does the
>> error
>> > still happens there?
>> >
>>
>> We didn't try 4.0.7 because we're on a very tight schedule. No time for
>> experiments. I will try this weekend, in another project that I'm doing.
>>
>> Christine
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
>
> --
> Edson Tirelli
> JBoss Drools Core Development
> Office: +55 11 3529-6000
> Mobile: +55 11 9287-5646
> JBoss, a division of Red Hat @ www.jboss.com
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
16 years, 8 months
Problem with function
by Guillaume Soldera
Hi !
I have a problem with functions in Drools file.
In a drl file, I defined a function, but a parameter of this function must
be "final". And the drl file don't compile...
this is my code :
[CODE]
function void changeName(final JOnAS jonas, Integer first)
{
....
}
[\CODE]
And this is the error :
Syntax error on token "final", invalid Type
Is it possible to have a final variable as parameter in a function ?
Can you help me ?!
Thanks !
Cheers
Guillaume
16 years, 8 months
Re: [rules-users] mvel error?
by Christine
> Did you guys tried 4.0.7, that is about to be released? Does the error
> still happens there?
>
We didn't try 4.0.7 because we're on a very tight schedule. No time for
experiments. I will try this weekend, in another project that I'm doing.
Christine
16 years, 8 months
mvel error?
by Christine
Hi,
does anyone know what this error means?
It happens when I put an enum constant in a rule. I use the same enum
constant in another part of the same rule with no problem.
Christine
org.drools.RuntimeDroolsException: Exception executing predicate
org.drools.base.mvel.MVELPredicateExpression@125844f
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:216)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:132)
at
org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153)
at org.drools.reteoo.Rete.assertObject(Rete.java:175)
at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
at
org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:909)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:881)
at
org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:682)
at
nl.ing.towardsdeepdrive.rules.SalesRules.assertCompetitorProduct(SalesRules.java:42)
at rules.SalesRulesTest.TestRules(SalesRulesTest.java:53)
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:585)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.mvel.CompileException: cannot invoke getter: getType
[declr.class: nl.ing.towardsdeepdrive.data.model.Product; act.class: null]
at
org.mvel.optimizers.impl.refl.GetterAccessor.getValue(GetterAccessor.java:52)
at
org.mvel.optimizers.impl.refl.VariableAccessor.getValue(VariableAccessor.java:39)
at
org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
at
org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
at
org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:21)
at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
at org.mvel.MVEL.executeExpression(MVEL.java:235)
at
org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:36)
at
org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:210)
... 33 more
Caused by: java.lang.NullPointerException
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:585)
at
org.mvel.optimizers.impl.refl.GetterAccessor.getValue(GetterAccessor.java:42)
... 42 more
16 years, 8 months
Re: [rules-users] mvel error?
by Christine
Thanks Chris. Just replacing "product.type == ProductType.WA" by the same
as an eval works. But it is strange that in one place the original line
works while three lines down the same line doesn't.
Christine
> Hi,
> I found out I had this king of errors when I was using nested accessors
> like
> :
>
> Number () from accumulate (
> $person : Person(
> age > 18,
> dog.weight > 50
> ),
> sum($person)
> )
>
> I found I could get rid of these this way :
>
> Number () from accumulate (
> $person : Person(
> age > 18
> )&& eval($person.getDog().getWeight()>50),
> sum($person)
> )
>
> I guess it is not optimized at all, but at least it does not raise strange
> exception.
> Chris
>
>
>
> 2008/4/25 Christine <christine(a)christine.nl>:
>
>> Hi,
>> does anyone know what this error means?
>> It happens when I put an enum constant in a rule. I use the same enum
>> constant in another part of the same rule with no problem.
>>
>> Christine
>>
>> org.drools.RuntimeDroolsException: Exception executing predicate
>> org.drools.base.mvel.MVELPredicateExpression@125844f
>> at
>> org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:216)
>> at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:132)
>> at
>>
>> org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:318)
>> at
>> org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:153)
>> at org.drools.reteoo.Rete.assertObject(Rete.java:175)
>> at
>> org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
>> at
>> org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
>> at
>>
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:909)
>> at
>>
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:881)
>> at
>>
>> org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:682)
>> at
>>
>> nl.ing.towardsdeepdrive.rules.SalesRules.assertCompetitorProduct(SalesRules.java:42)
>> at rules.SalesRulesTest.TestRules(SalesRulesTest.java:53)
>> 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:585)
>> at
>> org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>> at
>> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>> at
>> org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>> at
>>
>> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>> at
>> org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>> at
>> org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>> at
>>
>> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>> at
>>
>> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>> at
>>
>> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>> at
>> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>> at
>> org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>> at
>> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>> at
>>
>> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
>> at
>>
>> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>> at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>> at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>> at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>> at
>>
>> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>> Caused by: org.mvel.CompileException: cannot invoke getter: getType
>> [declr.class: nl.ing.towardsdeepdrive.data.model.Product; act.class:
>> null]
>> at
>>
>> org.mvel.optimizers.impl.refl.GetterAccessor.getValue(GetterAccessor.java:52)
>> at
>>
>> org.mvel.optimizers.impl.refl.VariableAccessor.getValue(VariableAccessor.java:39)
>> at
>>
>> org.mvel.ast.VariableDeepPropertyNode.getReducedValueAccelerated(VariableDeepPropertyNode.java:22)
>> at
>>
>> org.mvel.ast.PropertyASTNode.getReducedValueAccelerated(PropertyASTNode.java:21)
>> at
>>
>> org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:21)
>> at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)
>> at
>> org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
>> at org.mvel.MVEL.executeExpression(MVEL.java:235)
>> at
>>
>> org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:36)
>> at
>> org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:210)
>> ... 33 more
>> Caused by: java.lang.NullPointerException
>> 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:585)
>> at
>>
>> org.mvel.optimizers.impl.refl.GetterAccessor.getValue(GetterAccessor.java:42)
>> ... 42 more
>>
>>
>>
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
16 years, 8 months
Re: [rules-users] Who's Using Drools out there?
by Christine
I use drools as the rule engine in a chatterbot project. The rule engine
is just a small part of the project.
Christine
> Hi -
>
> I'm looking for some list of companies and projects that are built on
> Drools. I've found references to Cisco in the blog, but what else is
> there? (Obviously this mailing list sees a lot of activity)
>
> To get the ball rolling, we use drools at Citi to power our Municipal
> Bid Wanted and Order Management systems.
>
>
> Thanks,
> -tk
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
16 years, 8 months
Who's Using Drools out there?
by Knych, Thomas
Hi -
I'm looking for some list of companies and projects that are built on
Drools. I've found references to Cisco in the blog, but what else is
there? (Obviously this mailing list sees a lot of activity)
To get the ball rolling, we use drools at Citi to power our Municipal
Bid Wanted and Order Management systems.
Thanks,
-tk
16 years, 8 months
maven
by Christine
We use mvn in our project, but maven can only find drools-core up to
version 3.0.4, is that correct? Should I create our own repository and put
the drools jars there, or is there a way mvn can find them?
Christine
16 years, 8 months