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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web43127

  • via Google Groups by Stu R, 9 months ago
    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']]
  • 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
  • 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]]
  • Stack trace

    • 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']] 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 org.drools.compiler.kie.builder.impl.KieContainerImpl.newKieSession(KieContainerImpl.java:575) at com.sample.Stream.main(Stream.java:43)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 8 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    6 more bugmates