Mark Proctor | 1 Apr 11:45 2005

[drools-user] [Fwd: [drools-dev] [jira] Commented: (DROOLS-305) Invalid Handles after calling retractObject in WorkingMemory]

This is the final jira (http://jira.codehaus.org/browse/DROOLS-305)  
holding up the Release Candidate. I need sample code to prove the issue. 
If I dont receive anything within the next couple of days I'm going to 
unschedule it and we do a RC without a fix for it.

I have had no feedback (http://jira.codehaus.org/browse/DROOLS-259) 
other than from Glenn on the JBOSS classloader issue. I will marked this 
as closed early next week unless I am told otherwise.

Mark
-------- Original Message --------
From: 	- Tue Mar 29 02:30:02 2005
X-Account-Key: 	account9
X-UIDL: 	1112055831.26687.beaver.codehaus.org
X-Mozilla-Status: 	0001
X-Mozilla-Status2: 	00000000
Return-Path: 	<dev-return-1581-mproctor=codehaus.org <at> drools.codehaus.org>
Delivered-To: 	mproctor <at> codehaus.org
Received: 	(qmail 26648 invoked by uid 7957); 29 Mar 2005 00:23:51 -0000
Mailing-List: 	contact dev-help <at> drools.codehaus.org; run by ezmlm
Precedence: 	bulk
List-Post: 	<mailto:dev <at> drools.codehaus.org>
List-Help: 	<mailto:dev-help <at> drools.codehaus.org>
List-Unsubscribe: 	<mailto:dev-unsubscribe <at> drools.codehaus.org>
List-Subscribe: 	<mailto:dev-subscribe <at> drools.codehaus.org>
Reply-to: 	dev <at> drools.codehaus.org
Delivered-To: 	mailing list dev <at> drools.codehaus.org
Received: 	(qmail 26545 invoked from network); 29 Mar 2005 00:23:45 -0000
Message-ID: 	<24631972.1112055825221.JavaMail.jira <at> beaver.codehaus.org>
Date: 	Mon, 28 Mar 2005 19:23:45 -0500 (EST)
(Continue reading)

David La Motta | 1 Apr 21:18 2005
Picon

Re: [drools-user] Miss Manners benchmark, Drools & Jess

Mark, Dave, thx for your replies.  If it was up to me we'd be using 
Drools in our project by now...

In any case, one of the requirements we have is that the rules engine 
have a GUI so that customers can write rules in a "pleasant" manner.  
Anything like this exist for Drools?  I haven't found any out there so I 
don't really expect something like this to exist, but it never hurts to ask.

Thanks again.

// David

Mark Proctor wrote:

> We have to use a "cheat" version of miss manners at the moment as we 
> dont support enough node types - ie NOT - so its not a fair benchmark 
> comparison at this stage - we only support AND, which is implicit in 
> the way the <xxx:condition> elements work.
>
> Drools supports a very small subset of the Jess/Clips Rete - although 
> there are plans to enlarge this. I've done a conversion of fibonacci 
> calculate rule to clips to demonstrate this (very rough and clips can 
> make this smaller by using the symbols : and & to combine tests and 
> bindings - sorry I dont know clips/lisp that well), to give you an 
> idea of how the two relate. In drools you dont need to bind the field 
> values as they can be accessible in the expression straight of the f1, 
> f2, f3 variables - although the equivalent in drools to field  
> bindings was extractors which we have disabled for the 2.0 release.
>
> (defrule calculate "Calculate the fibonacci number"
(Continue reading)

Mike Jackson | 4 Apr 22:51 2005

[drools-user] <parameter> requires an object-type

I'm new to drools and I'm trying to build something.  I'm trying to setup my
first ruleset but I'm getting an error "Exception:
org.xml.sax.SAXParseException: <parameter> requires an object-type".  I've
been looking at the examples and I don't see them putting an object type as
an attribute on the parameter element, so I can only assume it's either
confused or talking about having an child element which would declare the
object type.  Attached is my rule set, perhaps someone could tell me what
I'm missing.  

<rule-set name="Activity Rules" 
  xmlns="http://drools.org/rules" 
  xmlns:java="http://drools.org/semantics/java" 
  xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" 
  xs:schemaLocation="http://drools.org/rules rules.xsd
http://drools.org/semantics/java java.xsd"
>
	<rule name="Activity Type CAS">

		<parameter identifier="rmsActivity">
	
<java:class>com.cdi.scsd.rad.rms.bean.TbbActivity</java:class>
		</parameter>
		
	
<java:condition>activity.getActivityTypeRef().getActivityType().equalsIgnore
Case( "CAS" ) == true</java:condition>

		<java:consequence>
			System.out.println( "Activity is a CAS" );
		</java:consequence>
(Continue reading)

Mike Jackson | 4 Apr 23:40 2005

RE: [drools-user] <parameter> requires an object-type

I fixed a message I was getting about my sax parser not being up to spec and
now I get:

	(null: 12, 16): cvc-complex-type.2.4.a: Invalid content was found
starting with element 'java:import'. One of
'{"http://drools.org/rules":parameter,
"http://drools.org/rules":abstractCondition,
"http://drools.org/rules":duration,
"http://drools.org/rules":abstractConsequence}' is expected.

	(null: 15, 16): cvc-complex-type.2.4.a: Invalid content was found
starting with element 'java:class'. One of
'{"http://drools.org/rules":abstractClass,
"http://drools.org/rules":class-field, "http://drools.org/rules":semaphore}'
is expected.

	Exception: org.xml.sax.SAXParseException: <parameter> requires an
object-type

It looks like the parser is having issues with anything starting with
"java:".

--mikej
-=-----
mike jackson
mjackson <at> cdi-hq.com

> -----Original Message-----
> From: Mike Jackson [mailto:mjackson <at> cdi-hq.com] 
> Sent: Monday, April 04, 2005 1:52 PM
(Continue reading)

David Kingma | jool.nl | 5 Apr 00:09 2005
Picon

RE: [drools-user] <parameter> requires an object-type

Hi Mike,

> -----Original Message-----
> From: Mike Jackson [mailto:mjackson <at> cdi-hq.com] 
> I fixed a message I was getting about my sax parser not being 
> up to spec and now I get:
> 
> 	(null: 12, 16): cvc-complex-type.2.4.a: Invalid content 
> was found starting with element 'java:import'. One of 
> '{"http://drools.org/rules":parameter,
> "http://drools.org/rules":abstractCondition,
> "http://drools.org/rules":duration,
> "http://drools.org/rules":abstractConsequence}' is expected.
> 
> 	(null: 15, 16): cvc-complex-type.2.4.a: Invalid content 
> was found starting with element 'java:class'. One of 
> '{"http://drools.org/rules":abstractClass,
> "http://drools.org/rules":class-field, 
> "http://drools.org/rules":semaphore}'
> is expected.

Could you send the rule xml? The error message seems pretty clear. You could
use the import keyword inside your (consequence?) tag, like this:

<java:consequence>
Import org.w3c.dom.Document;

//use the Document class here
</java:consequence>

(Continue reading)

Mike Jackson | 5 Apr 00:09 2005

RE: [drools-user] <parameter> requires an object-type

I added an import just to see if I'd get an error.  As it was I got the one,
which is what I was expecting.  Here's the current rules file:

<?xml version="1.0"?>
<base:rule-set name="Activity 2 Incident Conversion Rules" 
          xmlns:base="http://drools.org/rules"
          xmlns:java="http://drools.org/semantics/java"
          xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
          xs:schemaLocation="http://drools.org/rules rules.xsd
                             http://drools.org/semantics/java java.xsd">

                             
	<base:rule name="Activity Type CAS">
		
		<base:parameter identifier="rmsActivity">
	
<java:class>com.cdi.scsd.rad.rms.bean.TbbActivity</java:class>
		</base:parameter>
		
		<java:condition>
	
rmsAactivity.getActivityTypeRef().getActivityType().equalsIgnoreCase( "CAS"
) == true
		</java:condition>
		
		<java:consequence>
			System.out.println( "it's a CAS" );
		</java:consequence>
		
	</base:rule>
(Continue reading)

Mike Jackson | 5 Apr 00:10 2005

RE: [drools-user] <parameter> requires an object-type

And it looks like the jar file is it.  It doesn't seem to have copied for
some reason.  I'll get it installed and try again, figures it'd be one of
those stupid mistakes.

--mikej
-=-----
mike jackson
mjackson <at> cdi-hq.com

> -----Original Message-----
> From: David Kingma | jool.nl [mailto:D.Kingma <at> jool.nl] 
> Sent: Monday, April 04, 2005 3:09 PM
> To: user <at> drools.codehaus.org
> Subject: RE: [drools-user] <parameter> requires an object-type
> 
> 
> Hi Mike,
> 
> 
> > -----Original Message-----
> > From: Mike Jackson [mailto:mjackson <at> cdi-hq.com]
> > I fixed a message I was getting about my sax parser not being 
> > up to spec and now I get:
> > 
> > 	(null: 12, 16): cvc-complex-type.2.4.a: Invalid content
> > was found starting with element 'java:import'. One of 
> > '{"http://drools.org/rules":parameter,
> > "http://drools.org/rules":abstractCondition,
> > "http://drools.org/rules":duration,
> > "http://drools.org/rules":abstractConsequence}' is expected.
(Continue reading)

Mike Jackson | 5 Apr 00:17 2005

RE: [drools-user] <parameter> requires an object-type

Ok, that worked.  Now I've eliminated those errors.  But now I get:

java.lang.UnsupportedClassVersionError:
org/drools/semantics/annotation/smf/SMFAnnotationRuleFactory (Unsupported
major.minor version 49.0)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:537)
	at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
	at org.drools.smf.SemanticsReader.read(SemanticsReader.java:185)
	at org.drools.smf.SemanticsReader.read(SemanticsReader.java:127)
	at
org.drools.smf.DefaultSemanticsRepository.loadSemantics(DefaultSemanticsRepo
sitory.java:242)
	at
org.drools.smf.DefaultSemanticsRepository.loadConfig(DefaultSemanticsReposit
ory.java:205)
	at
org.drools.smf.DefaultSemanticsRepository.init(DefaultSemanticsRepository.ja
va:161)
	at
org.drools.smf.DefaultSemanticsRepository.<init>(DefaultSemanticsRepository.
(Continue reading)

Mike Jackson | 5 Apr 01:31 2005

[drools-user] forehead

Ok, I'm trying to use drools.  I'm past my problem of not having the
drools-java-xxx.jar file in my lib folder.  I'm getting 

	"org/drools/semantics/annotation/smf/SMFAnnotationRuleFactory
(Unsupported major.minor version 49.0)" 

when I try to run things.  I'm thinking this has to do with the class file
format or something.  So I'm thinking I'll rebuild the jars files with the
version of the jdk I have and see what happens.  I downloaded drools using
CVS but when I try to run maven it complains that it can't find
com.werken.forehead.Forehead.  I've found that Forehead appears to be a
classloader, but there are no releases of the code.  And the cvs server
doesn't seem to allow anonymous access via pserver (connection refused).
Where can I get Forehead?

--mikej
-=-----
mike jackson
mjackson <at> cdi-hq.com

Mike Jackson | 5 Apr 01:43 2005

RE: [drools-user] forehead

Nevermind, I found it. 

--mikej
-=-----
mike jackson
mjackson <at> cdi-hq.com

> -----Original Message-----
> From: Mike Jackson [mailto:mjackson <at> cdi-hq.com] 
> Sent: Monday, April 04, 2005 4:32 PM
> To: user <at> drools.codehaus.org
> Subject: [drools-user] forehead
> 
> 
> Ok, I'm trying to use drools.  I'm past my problem of not 
> having the drools-java-xxx.jar file in my lib folder.  I'm getting 
> 
> 	"org/drools/semantics/annotation/smf/SMFAnnotationRuleFactory
> (Unsupported major.minor version 49.0)" 
> 
> when I try to run things.  I'm thinking this has to do with 
> the class file format or something.  So I'm thinking I'll 
> rebuild the jars files with the version of the jdk I have and 
> see what happens.  I downloaded drools using CVS but when I 
> try to run maven it complains that it can't find 
> com.werken.forehead.Forehead.  I've found that Forehead 
> appears to be a classloader, but there are no releases of the 
> code.  And the cvs server doesn't seem to allow anonymous 
> access via pserver (connection refused). Where can I get Forehead?
> 
(Continue reading)


Gmane