Beto, are you talking about using dynamic classes as facts? 3.1
should work with that too... is it not?
[]s
Edson
Beto Siless wrote:
Hi Edson!
Thanks for the answer! I was using the trunk revision, but I've to
change it cause the need of dynamic class stuff. But the trunk version
was enough to make a proof the concept that I needed until the 3.1
release.
Thanks again!
Beto
Edson Tirelli wrote:
Beto,
JBRULES-548 is closed as a duplicate issue... I don't know why it
is saying it fixes the problem ... :(
The correct issue is JBRULES-515, that fixes and correctly states
that the problem is only fixed in trunk (3.1m1). The codebase for
this specific part of the engine is very different in trunk and in
current branch (3.0.5). It was also a known limitation in 3.0.x. That
is why it is only fixed in trunk.
[]s
Edson
Beto Siless wrote:
Hi everyone, I have a another question:
The JIRA has "java NullPointerException when using constraints
between fields in same object" in two different issues:
http://jira.jboss.com/jira/browse/JBRULES-548
http://jira.jboss.com/jira/browse/JBRULES-515
both of them are closed, and the 548 says thats it's fixed in 3.0.5.
I have been working with the latest version from the repository and
it was solved from sure, but now I've changed to 3.0.5 and the
problem is back.
Any ideas? Maybe I'm doing something wrong: To switch to 3.0.5 I've
downloaded the jbossrules-ide-3.0.5-bin.zip, extracted the
org.drools.ide_3.0.5.jar jars into a lib folder, and included to the
eclipse project.
Beto
rule "RULE TWO"
when
Test($z :z, $y :y, $x :x, $id :id, x < $z, y == true)
then
System.out.println("ok!");
end
java.lang.NullPointerException
at org.drools.rule.BoundVariableConstraint.isAllowed(Unknown
Source)
at org.drools.common.BetaNodeBinder.isAllowed(Unknown Source)
at org.drools.reteoo.LeftInputAdapterNode.assertObject(Unknown
Source)
at org.drools.reteoo.ObjectSource.propagateAssertObject(Unknown
Source)
at org.drools.reteoo.AlphaNode.assertObject(Unknown Source)
at org.drools.reteoo.ObjectSource.propagateAssertObject(Unknown
Source)
at org.drools.reteoo.ObjectTypeNode.assertObject(Unknown Source)
at org.drools.reteoo.Rete.assertObject(Unknown Source)
at org.drools.reteoo.ReteooRuleBase.assertObject(Unknown Source)
at org.drools.reteoo.ReteooWorkingMemory.doAssertObject(Unknown
Source)
at org.drools.common.AbstractWorkingMemory.assertObject(Unknown
Source)
at org.drools.common.AbstractWorkingMemory.assertObject(Unknown
Source)
at
ar.com.teracode.expertsystemshell.RuleTest.testRule01(RuleTest.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
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)
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email