Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-235

Issues with Drools Eclipse plugin

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.0.0.CR3
    • 6.0.0.CR2
    • None
    • None

    Description

      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?

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            kverlaen@redhat.com Kris Verlaenen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: