java.lang.RuntimeException: Cannot find a default KieSession

Stack Overflow | Ben | 5 months ago
  1. 0

    How to get Drools (Kie Session) running in a Netbeans Web-Project (No Maven)?

    Stack Overflow | 5 months ago | Ben
    java.lang.RuntimeException: Cannot find a default KieSession
  2. 0

    Accessing KieSession from jbpm6 WorkItemHandler

    Stack Overflow | 3 years ago | user3133269
    java.lang.RuntimeException: Cannot find a default KieSession
  3. 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]]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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]]
  6. 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 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

      Cannot find a default KieSession

      at org.drools.compiler.kie.builder.impl.KieContainerImpl.findKieSessionModel()
    2. Drools :: Compiler
      KieContainerImpl.newKieSession
      1. org.drools.compiler.kie.builder.impl.KieContainerImpl.findKieSessionModel(KieContainerImpl.java:555)
      2. org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:548)
      3. org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:531)
      3 frames
    3. Drools
      DroolsMain.main
      1. Drools.DroolsMain.kieTest(DroolsMain.java:43)
      2. Drools.DroolsMain.main(DroolsMain.java:52)
      2 frames