java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=Sample.drl, line=12, column=0 text=Duplicate declaration for variable 'f' in the rule 'Rule 1'], Message [id=2, level=ERROR, path=Sample.drl, line=10, column=0 text=Unable to Analyse Expression System.out.println(f);: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.f()] [Near : {... System.out.println(f); ....}] ^ [Line: 10, Column: 0]]]

Stack Overflow | Hangman4358 | 3 months ago
  1. 0

    Drools Error when using 'or' with sister classes

    Stack Overflow | 3 months ago | Hangman4358
    java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=Sample.drl, line=12, column=0 text=Duplicate declaration for variable 'f' in the rule 'Rule 1'], Message [id=2, level=ERROR, path=Sample.drl, line=10, column=0 text=Unable to Analyse Expression System.out.println(f);: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.f()] [Near : {... System.out.println(f); ....}] ^ [Line: 10, Column: 0]]]
  2. 0

    RHS cannot find a sub class method when a fact extends java.util.Date - Red Hat Customer Portal

    redhat.com | 5 months ago
    java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=rules/Sample.drl, line=35, column=0 text=Rule Compilation error The method CalculateDays() is undefined for the type Date]]
  3. 0

    When generating a sample Drools project with the Eclipse plugin (6.0.x), there are several issues: * When DroolsBuilder is trying to parse the Sample.drl, it seems to be failing to import the Message class (resulting in 11 errors in the problems view), see screenshot1. Executing the test does seem to work though * When both Sample.drl and Sample.xls are created in the same project, the imports seems to clash, executing the test fails when compiling: java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=rules/Sample.drl, line=15, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=2, level=ERROR, path=dtables/Sample.xls, line=15, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=3, level=ERROR, path=dtables/Sample.xls, line=5, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=4, level=ERROR, path=rules/Sample.drl, line=5, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement]] at org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:170) at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:298) at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:273) at com.sample.DroolsTest.main(DroolsTest.java:17) Isn't this allowed? * When executing DroolsTest, there seems to be a Sysout somewhere in the code base: kmodules: file:/NotBackedUp/jBPM-6.0.0.CR2/jbpm-installer/workspace/drools/target/META-INF/kmodule.xml

    JBoss Issue Tracker | 3 years ago | Kris Verlaenen
    java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=rules/Sample.drl, line=15, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=2, level=ERROR, path=dtables/Sample.xls, line=15, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=3, level=ERROR, path=dtables/Sample.xls, line=5, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement], Message [id=4, level=ERROR, path=rules/Sample.drl, line=5, column=0 text=Rule Compilation error The import com.sample.DroolsTest.Message collides with another import statement]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    What would possibly be wrong with the following decision table?

    Stack Overflow | 5 months ago | Tanay
    java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=Sample.xls, line=8, column=0 text=[ERR 102] Line 8:16 mismatched input '==' in rule "Screens_11"], Message [id=2, level=ERROR, path=Sample.xls, line=0, column=0 text=Parser returned a null Package]]
  6. 0

    Drools Fusion: Problem with @Duration property.

    Google Groups | 4 months ago | Stu R
    java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=null, line=-1, column=0 text=Error processing @duration for TypeDeclaration 'com.sample.Instance': cannot access the field 'durationTime']]

    6 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Error while creating KieBase[Message [id=1, level=ERROR, path=Sample.drl, line=12, column=0 text=Duplicate declaration for variable 'f' in the rule 'Rule 1'], Message [id=2, level=ERROR, path=Sample.drl, line=10, column=0 text=Unable to Analyse Expression System.out.println(f);: [Error: unable to resolve method using strict-mode: org.drools.core.spi.KnowledgeHelper.f()] [Near : {... System.out.println(f); ....}] ^ [Line: 10, Column: 0]]]

      at org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase()
    2. Drools :: Compiler
      KieContainerImpl.newKieSession
      1. org.drools.compiler.kie.builder.impl.KieContainerImpl.getKieBase(KieContainerImpl.java:450)
      2. org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:604)
      3. org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:575)
      3 frames
    3. com.sample
      DroolsTest.main
      1. com.sample.DroolsTest.main(DroolsTest.java:20)
      1 frame