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]]]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Hangman4358
, 1 year ago
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
via redhat.com by Unknown author, 1 year ago
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]]
via JBoss Issue Tracker by Kris Verlaenen, 1 year ago
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
via Google Groups by Jonathan MERCIER, 5 months ago
Error while creating KieBase[Message [id=1, level=ERROR, path=org/drools/examples/base/as.drl, line=8, column=0 text=[ERR 102] Line 8:25 mismatched input 'as' in rule "Object can walk"], Message [id=2, level=ERROR, path=org/drools/examples/base/as.drl, line=0, column=0 text=Parser returned a null Package]]
via Google Groups by Jonathan MERCIER, 5 months ago
Error while creating KieBase[Message [id=1, level=ERROR, path=fr/cea/ig/labgem/brools/biology/knowledge_reasoner.drl, line=48, column=0 text=Rule Compilation error observation cannot be resolved or is not a field observation cannot be resolved or
via Stack Overflow by Vikram
, 1 month ago
Error while creating KieBase. The error visible in console of my Eclipse IDE is : java.lang.RuntimeException: Error while creating KieBase[Message [id=1, kieBase=patient, level=ERROR, path=PatientDecisionTable.xls, line=10, column=0 text=[ERR 101
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(KieContainerImpl.java:450)
at org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:604)
at com.sample.DroolsTest.main(DroolsTest.java:20)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
7 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.