[rules-users] java.lang.NoSuchMethodError on every Action node

Kris Verlaenen kris.verlaenen at cs.kuleuven.be
Mon Sep 14 09:49:04 EDT 2009


Whenever you add a Java action in your process, the compiler will
generate a Java class in the background that will be used for executing
this action.  The error seems to indicate that the class generated by
the compiler is not what the runtime is expecting.  Which version of
Drools are you using?  And are you compiling and executing with the same
version (or are you for example first building your knowledge base and
then serializing your package or getting it from guvnor)?

If possible, could you include a sample project that shows the issue, so
I could take a look what's going on at runtime?

Kris


> This time, every action I try to insert in a ruleflow, I receive a 
> java.lang.NoSuchMethodError. I'm even trying a really simple ruleflow
> with 
> just one simple action - like System.out.println("Test"); - and all I
> get 
> is a java.lang.NoSuchMethodError.


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm



More information about the rules-users mailing list