[jboss-jira] [JBoss JIRA] (DROOLS-1388) Drools Sample.drl broken with Eclipse Neon

Vincenzo D'Amore (JIRA) issues at jboss.org
Thu Dec 29 10:24:00 EST 2016


     [ https://issues.jboss.org/browse/DROOLS-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vincenzo D'Amore updated DROOLS-1388:
-------------------------------------
    Steps to Reproduce: 
Just follow the steps described into the tutorial (and install the Drools plugin 6.4.0), then download a newer version and update the Drools plugin to the 6.5.0.Final. 

1. Create a new drools project
2. Select the middle option proposed by eclipse the dialog box
3. Enter "FirstProject" as a project name and keep only the "Add a sample Helloworld rule file to this project"
4. Select DroolsTest class and "Run as Java Application"

*When you download a newer version of Eclipse Drools plugin, the update does not change Eclipse preferences "Installed Drools Runtimes" so, you're are still using to the old Drools runtimes.*


  was:
Just follow the steps described into the tutorial (and install the Drools plugin 6.4.0), then update the Drools plugin to the 6.5.0.Final. 

1. Create a new drools project
2. Select the middle option proposed by eclipse the dialog box
3. Enter "FirstProject" as a project name and keep only the "Add a sample Helloworld rule file to this project"
4. Select DroolsTest class and "Run as Java Application"

*When you download a newer version of Eclipse Drools plugin, the update does not change Eclipse preferences "Installed Drools Runtimes" so, you're are still using to the old Drools runtimes.*




> Drools Sample.drl broken with Eclipse Neon
> ------------------------------------------
>
>                 Key: DROOLS-1388
>                 URL: https://issues.jboss.org/browse/DROOLS-1388
>             Project: Drools
>          Issue Type: Bug
>          Components: eclipse plugin
>    Affects Versions: 6.5.0.Final
>            Reporter: Vincenzo D'Amore
>            Assignee: Robert (Bob) Brodt
>
> Unable to complete the example presented in the documentation "[Installing Drools Tooling|https://nheron.gitbooks.io/droolsonboarding/content/gettingStarted/installing_drools_tooling.html]"  
> Trying to run DroolsTest.java sample I get the following errors:
> {code:java}
> java.lang.RuntimeException: Error while creating KieBase[Message [id=1, level=ERROR, path=Sample.drl, line=15, column=0
>    text=Rule Compilation error Only a type can be imported. com.sample.DroolsTest.Message resolves to a package
> Only a type can be imported. org.drools.core.spi.KnowledgeHelper resolves to a package
> KnowledgeHelper cannot be resolved to a type
> org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
> java.lang.Exception cannot be resolved to a type
> org.kie.api.runtime.rule.RuleContext cannot be resolved to a type], Message [id=2, level=ERROR, path=Sample.drl, line=5, column=0
>    text=Rule Compilation error Only a type can be imported. com.sample.DroolsTest.Message resolves to a package
> Only a type can be imported. org.drools.core.spi.KnowledgeHelper resolves to a package
> KnowledgeHelper cannot be resolved to a type
> com.sample.DroolsTest.Message cannot be resolved to a type
> org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
> org.kie.api.runtime.rule.FactHandle cannot be resolved to a type
> java.lang.Exception cannot be resolved to a type
> org.kie.api.runtime.rule.RuleContext cannot be resolved to a type
> Message.GOODBYE cannot be resolved to a type
> org.drools.core.util.bitmask.AllSetBitMask cannot be resolved to a type
> com.sample.DroolsTest.Message cannot be resolved to a type]]
> 	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.DroolsTest.main(DroolsTest.java:17)
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list