Re: [rules-users] RuntimeDroolsException as Solver concludes execution

2010-04-22 Thread Geoffrey De Smet
Looks like an NPE in your rule.
Maybe maintenanceSlot or something is null.

You should raise an issue with drools-core (drools expert) that it 
should give a better runtime error to show on which line it NPE'ed.

With kind regards,
Geoffrey De Smet


dweppenaar schreef:
 Hi.
 
 I am experiencing the following exception:
 org.drools.RuntimeDroolsException: Exception executing ReturnValue
 constraint org.drools.rule.returnvaluerestrict...@a5f6c234 :
 java.lang.NullPointerException.
 
 The rule that is causing the exception to occur is the following:
 
 rule spreadOvertime
 
 when
 $violatingTask :
 MaintenanceTask(eval(maintenanceSlot.getAvailability() == 1), motor != null,
 maintenanceTechnician != null, $overtimeTaskID : id);
 
 ArrayList( $numberOfViolations : size ) from collect(
 MaintenanceTask(
 id == ($overtimeTaskID + 1) ||
 id == ($overtimeTaskID + 2) ||
 id == ($overtimeTaskID - 1) ||
 id == ($overtimeTaskID - 2),
 eval(maintenanceSlot.getAvailability() = 1) ) );
 
 then
 insertLogical(new IntConstraintOccurrence(spreadOvertime,
 ConstraintType.NEGATIVE_SOFT,
 $numberOfViolations, $violatingTask, $numberOfViolations));
 //System.out.println(Rule Fired: spreadOvertime ( number of
 violations: + $numberOfViolations +  for task  + $violatingTask + ));
 
 end
 
 The purpose of the rule is to spread the closer to normal maintenance
 shifts.
 
 Just to clarrify what the objects are:
 
 MaintenanceTask: Consists of a MaintenanceSlot, MaintenanceTechnician and
 Motor
 MaintenanceSlot: Day, Timeslot, Availability and Index
 
 The 'availability' of a MaintenanceSlot specifies whether it is considered
 Overtime, ProductionTime or Normal Maintenance
 
 This exception is thrown at the end of solving as the solver (I presume) is
 supposed to return the best solution. The score is calculating and updating
 but at the end of the specified step count, this exception occurs.
 
 If I comment this rule out, no exception.
 
 Any help would be appreciated!
 
 Regards,
 De Ville

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-08 Thread Robert Morse

Hello Edson,
Frankly, I wouldn't spend a lot of time on this.   The alternate  
approach is to inject the working memory into the Seam component as  
described in the docs.   Assuming that works (which I'm sure it will),  
then there's no reason to use the approach I was attempting.   Let me  
mess with it today, and I'll let you know.   Once again, thanks for  
everyone's help.

-robert.

On Nov 7, 2007, at 8:50 AM, Edson Tirelli wrote:



   Robert.

   Fernando is taking a look in that.

   []s
   Edson



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-08 Thread Robert Morse

Hello,
I downloaded Seam 2.0.0.GA, built the drools example (it's a simple  
number guess application).  It fails exactly the same way.
I'm guessing the Seam guys tested this before releasing, so I'm  
assuming (as Edson pointed out) a JVM issue with Mac OS X Leopard?



On Nov 8, 2007, at 6:57 AM, Robert Morse wrote:


Hello Edson,
Frankly, I wouldn't spend a lot of time on this.   The alternate  
approach is to inject the working memory into the Seam component as  
described in the docs.   Assuming that works (which I'm sure it  
will), then there's no reason to use the approach I was  
attempting.   Let me mess with it today, and I'll let you know.
Once again, thanks for everyone's help.

-robert.

On Nov 7, 2007, at 8:50 AM, Edson Tirelli wrote:



  Robert.

  Fernando is taking a look in that.

  []s
  Edson




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load -- Solved

2007-11-08 Thread Robert Morse

Solved.
Actually, Mark Proctor solved this several days ago when he asked if  
Seam came with its own Drools jars.
It does.   If you use the non-Seam bundled drools jars, you will get  
this exception.   Sorry for wasting anyone's
time on this, but I'm curiousany ideas what is different between  
the standard Drools distribution and what comes with Seam?


On Nov 8, 2007, at 10:12 AM, Robert Morse wrote:


Hello,
I downloaded Seam 2.0.0.GA, built the drools example (it's a simple  
number guess application).  It fails exactly the same way.
I'm guessing the Seam guys tested this before releasing, so I'm  
assuming (as Edson pointed out) a JVM issue with Mac OS X Leopard?



On Nov 8, 2007, at 6:57 AM, Robert Morse wrote:


Hello Edson,
Frankly, I wouldn't spend a lot of time on this.   The alternate  
approach is to inject the working memory into the Seam component as  
described in the docs.   Assuming that works (which I'm sure it  
will), then there's no reason to use the approach I was  
attempting.   Let me mess with it today, and I'll let you know.
Once again, thanks for everyone's help.

-robert.

On Nov 7, 2007, at 8:50 AM, Edson Tirelli wrote:



 Robert.

 Fernando is taking a look in that.

 []s
 Edson






___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-07 Thread Edson Tirelli
   Robert.

   Fernando is taking a look in that.

   []s
   Edson

2007/11/6, Robert Morse [EMAIL PROTECTED]:

 Hello Edson,
 If you are willing to download and install JBoss AS 4.2.1 and Seam
 2.0.0.CR2, I can send you a slightly modified Seam example that will
 demo this problem.
 If you want to do this yourself, it's quite simple:

 1. Modify the examples/seamdiscs example in the Seam distribution by:
 A. Add a PackageBuilder constructor in
 seamdiscs/src/org/jboss/seam/
 example/seamdiscs/action/Authenticator.java
 B. Add  property name=drools.libvalue=yes/  in examples/
 seamdiscs/build.xml
 C. Modify your build.properties under jboss-seam-2.0.0.CR2 to
 deploy
 to your 4.2.1 installation
 D. Execute 'ant' under the examples/seamdiscs directory
 E. Start Jboss server
 F. Navigate to:   http://localhost:8080/seam-discs
 G. In the upper right corner of the web page, click on the Login
 link
 H. Click the Login button which will cause the PackageBuilder
 constructor to be executed in the Authenticator class

 You *should* see the class cast exception.
 As part of the build process, the appropriate drool jars are
 installed.  Unfortunately, I'm not sure which version of Drools this
 version of Seam is using.

 -robert.


 On Nov 6, 2007, at 8:31 AM, Robert Morse wrote:

  Edson,
  Can you send me a pointer to the Leopard JVM bug?   I haven't heard
  about it (other than Java 6 isn't available yet).
 
  On Nov 5, 2007, at 6:02 PM, Edson Tirelli wrote:
 
 
Before we do any digging, aren't you being bitten by the Leopard
  JVM bug? Fernando, can you take a look at this?
 
[]s
Edson
 
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-06 Thread Robert Morse

Edson,
Can you send me a pointer to the Leopard JVM bug?   I haven't heard  
about it (other than Java 6 isn't available yet).


On Nov 5, 2007, at 6:02 PM, Edson Tirelli wrote:



   Before we do any digging, aren't you being bitten by the Leopard  
JVM bug? Fernando, can you take a look at this?


   []s
   Edson



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-06 Thread Robert Morse

Hello Edson,
If you are willing to download and install JBoss AS 4.2.1 and Seam  
2.0.0.CR2, I can send you a slightly modified Seam example that will  
demo this problem.

If you want to do this yourself, it's quite simple:

1. Modify the examples/seamdiscs example in the Seam distribution by:
	A. Add a PackageBuilder constructor in seamdiscs/src/org/jboss/seam/ 
example/seamdiscs/action/Authenticator.java
	B. Add 	property name=drools.libvalue=yes/  in examples/ 
seamdiscs/build.xml
	C. Modify your build.properties under jboss-seam-2.0.0.CR2 to deploy  
to your 4.2.1 installation

D. Execute 'ant' under the examples/seamdiscs directory
E. Start Jboss server
F. Navigate to:   http://localhost:8080/seam-discs
G. In the upper right corner of the web page, click on the Login link
	H. Click the Login button which will cause the PackageBuilder  
constructor to be executed in the Authenticator class


You *should* see the class cast exception.
As part of the build process, the appropriate drool jars are  
installed.  Unfortunately, I'm not sure which version of Drools this  
version of Seam is using.


-robert.


On Nov 6, 2007, at 8:31 AM, Robert Morse wrote:


Edson,
Can you send me a pointer to the Leopard JVM bug?   I haven't heard  
about it (other than Java 6 isn't available yet).


On Nov 5, 2007, at 6:02 PM, Edson Tirelli wrote:



  Before we do any digging, aren't you being bitten by the Leopard  
JVM bug? Fernando, can you take a look at this?


  []s
  Edson




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Edson Tirelli
   Maybe any of you can zip a small project showing this problem and send
me. I will dig down to find the problem and we can have an answer available
to all. This is for sure a classpath problem, so just a matter of finding
out exactly what is missing.

   []s
   Edson


2007/11/4, Robert Morse [EMAIL PROTECTED]:

 Hello Eric,
 If you find a solution for this, please let me know.  I'm experiencing
 a similar problem.
 Thanks.

 -robert.

 On Oct 15, 2007, at 7:00 PM, Chong Minsk Goh wrote:

  Hi Mark,
 
  Thank for the tips. : )
 
  I have added the required mvel14-1.2.8.jar in my classpath. However,
  I still encounter the same error.
 
  Could it be a class loader issue or JRE version?
 
  I tried to trace the class loader. Drools is used in my application
  (running in netbeans). My application is using
  java.net.FactoryURLClassLoader. On plain netbeans project (before
  the error occurs), the class loader is sun.misc.Launcher
  $AppClassLoader. My netbeans is using JRE v 1.6.0
 
  The error occurs when PackageBuilder is initialised.
 
  Package Builder builder = new PackageBuilder();
 
  Also, for the Drools Eclipse plugin (on a seperate occassion), when
  i import some codes, it prompt me that Drools project is not a Java
  5.0 project.
 
 
  Best regards!
  Eric
 
 
  Chong Minsk Goh wrote:
   Hi,
  
   I am trying to run Drools on Netbeans. I have added the jars from
   Drools 4.0.2.
  
   However, I encountered an error
  
   org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException:
   Unable to load dialect
   'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
  MVEL is a required jar, not an optional one, put it on your classpath
  and hopefully this should work for you.
  
   I did not use any MVEL dialects in my rules definition. Here is my
  rule:
   *
  
   rule
  
   * Out of Range *when* m : Message( message == checkRange ,
  status
   == 1 )
  
   Range(myMin : myMin, myMax : myMax, myValue : myValue)
  
   Range(myValue  myMin || myValue  myMax)
  
   *then* m.setMessage();
  
   m.setStatus (0);
  
   *end*
  
   Has anyone attempted using Netbeans with Drools and faced this
  problem?
  
   Best regards
   Eric
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Robert Morse

Hello Edson,
Eric was kind enough to reply that he solved his problem by  
including ALL of the jars in the drools lib distribution directory in  
his classpath -- not just the drools jars, mvel, and eclipse jars.
If I do this, JBoss 4.2.1 complains about not being able to parse its  
xml configuration files, so I'm narrowing the jars I'm including to  
see if I can isolate what's missing.


On Nov 5, 2007, at 6:15 AM, Edson Tirelli wrote:



   Maybe any of you can zip a small project showing this problem and  
send me. I will dig down to find the problem and we can have an  
answer available to all. This is for sure a classpath problem, so  
just a matter of finding out exactly what is missing.


   []s
   Edson


2007/11/4, Robert Morse [EMAIL PROTECTED]:
Hello Eric,
If you find a solution for this, please let me know.  I'm experiencing
a similar problem.
Thanks.

-robert.

On Oct 15, 2007, at 7:00 PM, Chong Minsk Goh wrote:

 Hi Mark,

 Thank for the tips. : )

 I have added the required mvel14-1.2.8.jar in my classpath. However,
 I still encounter the same error.

 Could it be a class loader issue or JRE version?

 I tried to trace the class loader. Drools is used in my application
 (running in netbeans). My application is using
 java.net.FactoryURLClassLoader. On plain netbeans project (before
 the error occurs), the class loader is sun.misc.Launcher
 $AppClassLoader. My netbeans is using JRE v 1.6.0

 The error occurs when PackageBuilder is initialised.

 Package Builder builder = new PackageBuilder();

 Also, for the Drools Eclipse plugin (on a seperate occassion), when
 i import some codes, it prompt me that Drools project is not a Java
 5.0 project.


 Best regards!
 Eric


 Chong Minsk Goh wrote:
  Hi,
 
  I am trying to run Drools on Netbeans. I have added the jars from
  Drools 4.0.2.
 
  However, I encountered an error
 
  org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException:
  Unable to load dialect
   
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
 MVEL is a required jar, not an optional one, put it on your  
classpath

 and hopefully this should work for you.
 
  I did not use any MVEL dialects in my rules definition. Here is my
 rule:
  *
 
  rule
 
  * Out of Range *when* m : Message( message == checkRange ,
 status
  == 1 )
 
  Range(myMin : myMin, myMax : myMax, myValue : myValue)
 
  Range(myValue  myMin || myValue  myMax)
 
  *then* m.setMessage();
 
  m.setStatus (0);
 
  *end*
 
  Has anyone attempted using Netbeans with Drools and faced this
 problem?
 
  Best regards
  Eric

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Edson Tirelli
   Robert,

   Cool. Please keep us posted on your findings.

   []s
   Edson

2007/11/5, Robert Morse [EMAIL PROTECTED]:

 Hello Edson,Eric was kind enough to reply that he solved his problem by
 including ALL of the jars in the drools lib distribution directory in his
 classpath -- not just the drools jars, mvel, and eclipse jars.
 If I do this, JBoss 4.2.1 complains about not being able to parse its xml
 configuration files, so I'm narrowing the jars I'm including to see if I can
 isolate what's missing.

 On Nov 5, 2007, at 6:15 AM, Edson Tirelli wrote:


Maybe any of you can zip a small project showing this problem and send
 me. I will dig down to find the problem and we can have an answer available
 to all. This is for sure a classpath problem, so just a matter of finding
 out exactly what is missing.

[]s
Edson


 2007/11/4, Robert Morse [EMAIL PROTECTED]:
 
  Hello Eric,
  If you find a solution for this, please let me know.  I'm experiencing
  a similar problem.
  Thanks.
 
  -robert.
 
  On Oct 15, 2007, at 7:00 PM, Chong Minsk Goh wrote:
 
   Hi Mark,
  
   Thank for the tips. : )
  
   I have added the required mvel14-1.2.8.jar in my classpath. However,
   I still encounter the same error.
  
   Could it be a class loader issue or JRE version?
  
   I tried to trace the class loader. Drools is used in my application
   (running in netbeans). My application is using
   java.net.FactoryURLClassLoader. On plain netbeans project (before
   the error occurs), the class loader is sun.misc.Launcher
   $AppClassLoader. My netbeans is using JRE v 1.6.0
  
   The error occurs when PackageBuilder is initialised.
  
   Package Builder builder = new PackageBuilder();
  
   Also, for the Drools Eclipse plugin (on a seperate occassion), when
   i import some codes, it prompt me that Drools project is not a Java
   5.0 project.
  
  
   Best regards!
   Eric
  
  
   Chong Minsk Goh wrote:
Hi,
   
I am trying to run Drools on Netbeans. I have added the jars from
Drools 4.0.2.
   
However, I encountered an error
   
org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException:
Unable to load dialect
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
   MVEL is a required jar, not an optional one, put it on your classpath
   and hopefully this should work for you.
   
I did not use any MVEL dialects in my rules definition. Here is my
   rule:
*
   
rule
   
* Out of Range *when* m : Message( message == checkRange ,
   status
== 1 )
   
Range(myMin : myMin, myMax : myMax, myValue : myValue)
   
Range(myValue  myMin || myValue  myMax)
   
*then* m.setMessage();
   
m.setStatus (0);
   
*end*
   
Has anyone attempted using Netbeans with Drools and faced this
   problem?
   
Best regards
Eric
  
   ___
   rules-users mailing list
   rules-users@lists.jboss.org
   https://lists.jboss.org/mailman/listinfo/rules-users
 
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 



 --
   Edson Tirelli
   Software Engineer - JBoss Rules Core Developer
   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@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Robert Morse

Hello Edson,
Well, after a day, I'm no closer in getting this to work.  I've put  
Drools 4.0.3 compiler, core, decisiontables, and jsr along with  
mvel14, core-3.2.3.v_686_R32x, jsr94-1.1, antlr-runtime-3.0 in:


JBoss 4.2.1:

/lib
/lib/endorsed/
/server/default/lib

as well as my EAR, EJB Jar, and WAR files

and finally included in my CLASSPATH variable.

My environment is Mac OS X (Leopard)

From Eclipse, I've even added it to the JBoss server path (although  
this should be redundant to what I've done above).


The killer is, I can make this work perfectly in a stand alone java  
application that envokes the EJBs as long as it calls the  
PackageBuilder().  If I do this from Seam, I get the ClassCast  
exception.
If you have any clues or suggestions regarding what I could look at or  
try next, I'll be deeply grateful.


-robert.


On Nov 5, 2007, at 8:15 AM, Edson Tirelli wrote:



   Robert,

   Cool. Please keep us posted on your findings.

   []s
   Edson


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Edson Tirelli
   Before we do any digging, aren't you being bitten by the Leopard JVM bug?
Fernando, can you take a look at this?

   []s
   Edson

2007/11/5, Robert Morse [EMAIL PROTECTED]:

 Hello Edson,
 Well, after a day, I'm no closer in getting this to work.  I've put
 Drools 4.0.3 compiler, core, decisiontables, and jsr along with
 mvel14, core-3.2.3.v_686_R32x, jsr94-1.1, antlr-runtime-3.0 in:

 JBoss 4.2.1:

 /lib
 /lib/endorsed/
 /server/default/lib

 as well as my EAR, EJB Jar, and WAR files

 and finally included in my CLASSPATH variable.

 My environment is Mac OS X (Leopard)

 From Eclipse, I've even added it to the JBoss server path (although
 this should be redundant to what I've done above).

 The killer is, I can make this work perfectly in a stand alone java
 application that envokes the EJBs as long as it calls the
 PackageBuilder().  If I do this from Seam, I get the ClassCast
 exception.
 If you have any clues or suggestions regarding what I could look at or
 try next, I'll be deeply grateful.

 -robert.


 On Nov 5, 2007, at 8:15 AM, Edson Tirelli wrote:

 
 Robert,
 
 Cool. Please keep us posted on your findings.
 
 []s
 Edson
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load

2007-11-05 Thread Robert Morse
I'm not sure, but this problem existed prior to upgrading.  To be  
fair though, I didn't try the things I did today to remedy it.


On Nov 5, 2007, at 6:02 PM, Edson Tirelli wrote:



   Before we do any digging, aren't you being bitten by the Leopard  
JVM bug? Fernando, can you take a look at this?


   []s
   Edson

2007/11/5, Robert Morse  [EMAIL PROTECTED]:
Hello Edson,
Well, after a day, I'm no closer in getting this to work.  I've put
Drools 4.0.3 compiler, core, decisiontables, and jsr along with
mvel14, core-3.2.3.v_686_R32x, jsr94-1.1, antlr-runtime-3.0 in:

JBoss 4.2.1:

/lib
/lib/endorsed/
/server/default/lib

as well as my EAR, EJB Jar, and WAR files

and finally included in my CLASSPATH variable.

My environment is Mac OS X (Leopard)

From Eclipse, I've even added it to the JBoss server path (although
this should be redundant to what I've done above).

The killer is, I can make this work perfectly in a stand alone java
application that envokes the EJBs as long as it calls the
PackageBuilder().  If I do this from Seam, I get the ClassCast
exception.
If you have any clues or suggestions regarding what I could look at or
try next, I'll be deeply grateful.

-robert.


On Nov 5, 2007, at 8:15 AM, Edson Tirelli wrote:


Robert,

Cool. Please keep us posted on your findings.

[]s
Edson

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



--
  Edson Tirelli
  Software Engineer - JBoss Rules Core Developer
  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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException: Unable to load dialect

2007-10-15 Thread Mark Proctor

Chong Minsk Goh wrote:

Hi,
 
I am trying to run Drools on Netbeans. I have added the jars from 
Drools 4.0.2.
 
However, I encountered an error
 
org.doxa.rules.RulesManager - org.drools.RuntimeDroolsException: 
Unable to load dialect 
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel'
MVEL is a required jar, not an optional one, put it on your classpath 
and hopefully this should work for you.
 
I did not use any MVEL dialects in my rules definition. Here is my rule:

*

rule

* Out of Range *when* m : Message( message == checkRange , status 
== 1 )


Range(myMin : myMin, myMax : myMax, myValue : myValue)

Range(myValue  myMin || myValue  myMax)

*then* m.setMessage();

m.setStatus(0);

*end*
 
Has anyone attempted using Netbeans with Drools and faced this problem?
 
Best regards

Eric
 



___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Mark Proctor

I'll probably want to speak to ILog about help with JRules.

Mark
Raffaele Viola wrote:

Hi,

I'm starting to use eclipse plug.in http://plug.in for JRules. I 
created the example JRules project in eclipse and I tried to start it 
as Java Application but I got this exception


org.drools.RuntimeDroolsException: Unable to load dialect 
'org.drools.rule.builder.dialect.java.JavaDialect:java'
at 
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry 
(PackageBuilderConfiguration.java:156)

at org.drools.compiler.PackageBuilder.init( PackageBuilder.java:131)
at org.drools.compiler.PackageBuilder .init(PackageBuilder.java:84)
at com.sample.DroolsTest.readRule(DroolsTest.java:50)
at com.sample.DroolsTest.main(DroolsTest.java:21)

Can someone help me?
Thanks
Raffo


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


RE: [rules-users] RuntimeDroolsException

2007-08-16 Thread Anstis, Michael \(M.\)
More importantly why ILOG are using org.drools.* classes! ;-)
 
Of course there could be another explanation.




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Proctor
Sent: 16 August 2007 12:20
To: Rules Users List
Cc: Pierre Fricke
Subject: Re: [rules-users] RuntimeDroolsException


I'll probably want to speak to ILog about help with JRules. 

Mark
Raffaele Viola wrote: 

Hi,

I'm starting to use eclipse plug.in for JRules. I
created the example JRules project in eclipse and I tried to start it as
Java Application but I got this exception

org.drools.RuntimeDroolsException: Unable to load
dialect 'org.drools.rule.builder.dialect.java.JavaDialect:java'
at
org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry
(PackageBuilderConfiguration.java:156)
at org.drools.compiler.PackageBuilder.init(
PackageBuilder.java:131)
at org.drools.compiler.PackageBuilder
.init(PackageBuilder.java:84)
at
com.sample.DroolsTest.readRule(DroolsTest.java:50) 
at com.sample.DroolsTest.main(DroolsTest.java:21)

Can someone help me?
Thanks
Raffo





___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Geoffrey Wiseman
On 8/16/07, Mark Proctor [EMAIL PROTECTED] wrote:

  I'll probably want to speak to ILog about help with JRules.

 Mark


:)

-- 
Geoffrey Wiseman
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] RuntimeDroolsException

2007-08-16 Thread Kris Verlaenen
This exception is thrown when it cannot find (one of) the necessary libraries 
for loading the Java Dialect.  In this case probably the eclipse jdt compiler.  
Make sure all the necessary dependencies are in your classpath.  If you are 
using a Drools project, the Drools classpath container should automatically do 
that for you.

However, note that the eclipse plugin currently only works with eclipse 3.2.x, 
it will be upgraded to 3.3 for the next major release.  If I remember 
correctly, I believe this exception is thrown if you try to use the plugin in 
eclipse 3.3.

Kris

  - Original Message - 
  From: Raffaele Viola 
  To: rules-users@lists.jboss.org 
  Sent: Thursday, August 16, 2007 12:52 PM
  Subject: [rules-users] RuntimeDroolsException


  Hi,

  I'm starting to use eclipse plug.in for JRules. I created the example JRules 
project in eclipse and I tried to start it as Java Application but I got this 
exception

  org.drools.RuntimeDroolsException: Unable to load dialect 
'org.drools.rule.builder.dialect.java.JavaDialect:java'
  at org.drools.compiler.PackageBuilderConfiguration.buildDialectRegistry 
(PackageBuilderConfiguration.java:156)
  at org.drools.compiler.PackageBuilder.init( PackageBuilder.java:131)
  at org.drools.compiler.PackageBuilder .init(PackageBuilder.java:84)
  at com.sample.DroolsTest.readRule(DroolsTest.java:50) 
  at com.sample.DroolsTest.main(DroolsTest.java:21)

  Can someone help me?
  Thanks
  Raffo



--


  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users