I found my problem,

no link with the 4.0.2 version. I found a 4.0.1 jar in my project.

V.


vdelbart wrote:
> 
> Hi,
> 
> I don't know why but with the 4.0.2 version I have this error :
> 
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.drools.audit.WorkingMemoryFileLogger.<init>(Lorg/drools/WorkingMemoryEventManager;)V
>       at execution.ExecReglesTest2.main(ExecReglesTest2.java:73)
> 
> with this class :
> 
> public class ExecReglesTest2
> {
> 
>       private static final Reader DSL = new
> InputStreamReader(ExecReglesTest2.class
>                       
> .getResourceAsStream("/rules/dslDemoMoteurVenueTEST.dsl"));
> 
>       private static final Reader DRL = new
> InputStreamReader(ExecReglesTest2.class
>                       
> .getResourceAsStream("/rules/testReglesMoteurVenue.dslr"));
> 
>       private static final Reader RULE_FLOW = new
> InputStreamReader(ExecReglesTest2.class
>                       
> .getResourceAsStream("/rules/ruleFlowDemoMoteurVenueTEST.rfm"));
> 
>       private static final String FICHIER_LOG = "session";
> 
>       /**
>        * @param args
>        */
>       public static void main(String[] args)
>       {
>               try
>               {
> 
>               
> /******************************************************************************************
>                        * CREER LA BASE DE CONNAISSANCE
>                       
> *****************************************************************************************/
> 
>                       // parser et compiler le package et le rule flow
>                       // analyse et compilation du package de règles
>                       PackageBuilder builder = new PackageBuilder();
>                       builder.addPackageFromDrl(DRL, DSL);
> 
>                       // utilisation d'un rule flow
>                       builder.addRuleFlow(RULE_FLOW);
> 
>                       // déploiment du package
>                       RuleBase ruleBase = RuleBaseFactory.newRuleBase();
>                       ruleBase.addPackage(builder.getPackage());
> 
>                       // chargement du package binaire
>                       StatefulSession session = ruleBase.newStatefulSession();
> 
>               
> /******************************************************************************************
>                        * CREER ET ALIMENTER LE CONTEXTE
>                       
> *****************************************************************************************/
>                       
>                       WorkingMemoryFileLogger logger = new 
> WorkingMemoryFileLogger(session);
> 
> 
> thanks for your help,
> 
> regards,
> 
> V.
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-WorkingMemoryFileLogger-and-4.0.2-tf4606965.html#a13155277
Sent from the drools - user mailing list archive at Nabble.com.


_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to