I am using Drools 5.0.1 Final……MVEL is whatever version was downloaded with drools 5, specifically mvel2.jar.  

 

Thanks,


Chris

 

 

 


From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Edson Tirelli
Sent: Tuesday, June 23, 2009 2:07 AM
To: Rules Users List
Subject: Re: [rules-users] unable to resolve method using strict-mode

 


    What versions of Drools and MVEL are you using?

   []s
   Edson

2009/6/22 Chris Richmond <crichmond@referentia.com>

I cannot seem to call a static method on one of my classes and keep getting this error:

 

[Error: Failed to compile: 1 compilation error(s):

 - (1,44) unable to resolve method using strict-mode: com.aps.syslog.logging.manager.LoggingManager.runLoggingTest(java.lang.String, com.aps.syslog.logging.Transaction)]

[Near : {... Unknown ....}]

 

 

When I call the static method:

 

LoggingManager.runLoggingTest ("23223", transaction);

 

Where the first argument can be any string and the second is a custom class that I isntatiated earlier in the RHS with no problems.

 

 

Is the problem strict-mode? Or something else?  LogginManager.runLoggingTest  is a static method but do I perhaps have to do something like:

 

 

$lm : LoggingManager()

 

Then call the static method using:

 

$lm.runLoggingTest ("23223", transaction);

 


Or something along these lines (I did try this but it failed as well).

 

 

Thanks,

 

Chris

 

 


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




--
 Edson Tirelli
 JBoss Drools Core Development
 JBoss, a division of Red Hat @ www.jboss.com