java.lang.IllegalArgumentException: Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'

GitHub | cvsubs | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Using @Rule in a meta annotation

    GitHub | 1 year ago | cvsubs
    java.lang.IllegalArgumentException: Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'
  2. 0

    GitHub comment 51#295005282

    GitHub | 1 week ago | careerscale
    java.lang.IllegalArgumentException: Rule 'com.mycompany.mlm.rules.BusinessLeaderRule$$EnhancerBySpringCGLIB$$8ba6eda2' is not annotated with 'org.easyrules.annotation.Rule'

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Rule ‘XYZ' is not annotated with 'org.easyrules.annotation.Rule'

      at org.easyrules.core.RuleDefinitionValidator.checkRuleClass()
    2. org.easyrules.core
      DefaultRulesEngine.registerRule
      1. org.easyrules.core.RuleDefinitionValidator.checkRuleClass(RuleDefinitionValidator.java:34)
      2. org.easyrules.core.RuleDefinitionValidator.validateRuleDefinition(RuleDefinitionValidator.java:26)
      3. org.easyrules.core.RuleProxy.asRule(RuleProxy.java:34)
      4. org.easyrules.core.DefaultRulesEngine.asRule(DefaultRulesEngine.java:209)
      5. org.easyrules.core.DefaultRulesEngine.registerRule(DefaultRulesEngine.java:101)
      5 frames