[JBoss JIRA] Created: (JBRULES-1027) unable to use moderately complicated expression in from
by Michael Neale (JIRA)
unable to use moderately complicated expression in from
-------------------------------------------------------
Key: JBRULES-1027
URL: http://jira.jboss.com/jira/browse/JBRULES-1027
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 4.0.0.GA
Reporter: Michael Neale
Assigned To: Edson Tirelli
Priority: Critical
Try the following fairly simple example, and an error will ensue:
package sample;
import Query;
import Results;
import Storage;
rule "Verify_1"
when
content : Storage()
results : Results( ) from content.search(new Query("test","field"))
then
System.out.println( results );
end
============================================================================
/**
*
*/
public class Query {
public Query(String pattern, String column) {
}
}
============================================================================
/**
*
*/
public class Results {
public int getResultsCount() {
return 1;
}
}
============================================================================
/**
*
*/
public class Storage {
public Results search(Query query) {
return new Results();
}
}
============================================================================
public class HelloWorldExample {
public static final void main(final String[] args) throws Exception {
BasicConfigurator.configure();
Logger.getRootLogger().setLevel(Level.DEBUG);
DrlParser parser = new DrlParser();
final Reader source = new FileReader("sample.drl");
PackageDescr descr = parser.parse(source);
source.close();
PackageBuilder builder = new PackageBuilder();
builder.addPackage(descr);
Package pkg = builder.getPackage();
pkg.checkValidity();
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 11 months
[JBoss JIRA] Created: (JBRULES-1073) CompositeContextEntry is raising NPE
by Edson Tirelli (JIRA)
CompositeContextEntry is raising NPE
------------------------------------
Key: JBRULES-1073
URL: http://jira.jboss.com/jira/browse/JBRULES-1073
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Reteoo
Affects Versions: 4.0.0.GA
Reporter: Edson Tirelli
Assigned To: Edson Tirelli
Fix For: 4.0.1
Stack Trace:
Exception in thread "main" java.lang.NullPointerException
at org.drools.rule.AbstractCompositeRestriction$CompositeContextEntry.updateFromFactHandle(AbstractCompositeRestriction.java:104)
at org.drools.common.DoubleBetaConstraints.updateFromFactHandle(DoubleBetaConstraints.java:138)
at org.drools.reteoo.JoinNode.assertObject(JoinNode.java:158)
at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:20)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:130)
at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:308)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:168)
at org.drools.reteoo.Rete.assertObject(Rete.java:168)
at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:190)
at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:70)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:850)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:824)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:625)
at org.drools.examples.GolfingExample.main(GolfingExample.java:32)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 11 months
[JBoss JIRA] Created: (JBRULES-1059) Online typos in Section 1
by Dave Dibble (JIRA)
Online typos in Section 1
-------------------------
Key: JBRULES-1059
URL: http://jira.jboss.com/jira/browse/JBRULES-1059
Project: JBoss Rules
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Documentation
Affects Versions: 4.0.0.MR3
Environment: n/a - concerns documentation availble for viewing over internet
Reporter: Dave Dibble
Assigned To: Mark Proctor
Priority: Trivial
miscellaneous typos
http://labs.jboss.com/file-access/default/members/jbossrules/freezone/doc...
Section 1.1
modiied modified
Drools will adding Drools will be adding
Section 1.2.1
explination explanation
layed laid
espically especially
knowlegde knowledge
Section 1.2.4
preceeding preceding
its it's
Section 1.3.1
shortley shortly
Section 1.3.2
conjuntive conjunctive
disjuntive disjunctive
Section 1.6.1
grammer grammar
deployeable deployable
PackagBuilder PackageBuilder
Section 1.6.4.6
In the shaded box, should 'new List' simply be 'List' ?
Section 1.6.5
legible eligible
section 1.6.6.1
managable manageable
section 1.6.7
AgendEventListener AgendaEventListener
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 11 months
[JBoss JIRA] Created: (JBRULES-1072) Installation / Build instructions do not match what SVN delivers
by Dave Dibble (JIRA)
Installation / Build instructions do not match what SVN delivers
----------------------------------------------------------------
Key: JBRULES-1072
URL: http://jira.jboss.com/jira/browse/JBRULES-1072
Project: JBoss Rules
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Documentation
Affects Versions: 4.0.0.MR3
Environment: WinXP on Dell desktop
Reporter: Dave Dibble
Assigned To: Mark Proctor
Documentation for building from source (http://labs.jboss.com/file-access/default/members/jbossrules/freezone/doc...) indicates that 'ant' can be run from the root of the project. However there is no build.xml file in the root.
There are build.xml files in drools-eclipse, drools-jbrms, drools-examples-drl, and documentation.
Going to drools-eclipse and running: ant clean-all (as inferred from the doc) [or 'ant build-all'] we get
C:\dev\jbossrules\drools-eclipse>ant clean-all
Buildfile: build.xml
BUILD FAILED
Target "clean-all" does not exist in the project "Build All Elements".
Just running 'ant': Gets Build successful in 1 second. Under target subdirectory are
eclipse.build/features, eclipse.build/maps, eclipse.build/plugins, eclipse.build/N.drools.build, but all are empty.
Proceeded to documentation build, which seems to have been successful in 1 Min and 1 Sec. Will see if that manual has any hints.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 11 months