[rules-users] ClassNotFoundException when using a function in a rule

Zoltan Farkas zoly at daxtechnologies.com
Tue Mar 4 11:32:57 EST 2008


Here is the exception:

 

Exception in thread "mythread" java.lang.NoClassDefFoundError: com/daxtechnologies/optima/fault/eventprocessor/NewEvent

        at ASMAccessorImpl_716163221204646531490.getValue(Unknown Source)

        at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:174)

        at org.mvel.MVELRuntime.execute(MVELRuntime.java:88)

        at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)

        at org.mvel.MVEL.executeExpression(MVEL.java:235)

        at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:47)

        at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:550)

        at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:514)

        at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:471)

        at org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:433)

.

Caused by: java.lang.ClassNotFoundException: com.daxtechnologies.optima.fault.eventprocessor.NewEvent

 

Here is my package code:

 

 

function void newEvent(ExtendedEventVO sample, String message) {

 System.out.println("Creating event:" + message); 

}

 

 

rule "TestRule"

            dialect "mvel"

            when

            $e: ExtendedEventVO(); eval($e.getMsg().indexOf("TEHU1")>=0);

            then

            newEvent($e,"FIREEEE!!!!!");

end

 

 

I am using the web based jbrms and the RuleAgent to load the rules . I am getting the "Creating Event message on stdourerr ", 

 

Any ideas of what is wrong ?

 

Thanks

 

--zoly

 

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080304/d8ff9fe9/attachment.html 


More information about the rules-users mailing list