facebook

Drools Plugin Problem

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #319006 Reply

    Frank Lawlor
    Participant

    I am using ME9.1 (all in one install).

    I created a new workspace and added drools using the search facility in the configuration center (4.0.7, org.drools.eclipse).

    When I create a new drools project it is supposed to populate it with the sample Hello World code, but is emplty. The log show many errors (see samples below). This seems to be the same as reported in http://www.myeclipseide.com/PNphpBB2-viewtopic-t-27279-highlight-drools.html

    I need to be able to edit a drools project.
    Is there any resolution to this issue?

    — Frank

    ———- log —————

    !ENTRY org.eclipse.core.resources 4 2 2011-08-17 10:40:57.884
    !MESSAGE Problems occurred when invoking code from plug-in: “org.eclipse.core.resources”.
    !STACK 0
    java.lang.NullPointerException
    at org.drools.eclipse.util.DroolsClasspathContainer.createDroolsLibraryEntries(Unknown Source)
    at org.drools.eclipse.util.DroolsClasspathContainer.getClasspathEntries(Unknown Source)
    at org.eclipse.jdt.internal.core.JavaModelManager$VariablesAndContainersSaveHelper.saveContainers(JavaModelManager.java:3955)
    at org.eclipse.jdt.internal.core.JavaModelManager$VariablesAndContainersSaveHelper.saveProjects(JavaModelManager.java:4022)
    at org.eclipse.jdt.internal.core.JavaModelManager$VariablesAndContainersSaveHelper.save(JavaModelManager.java:3850)
    at org.eclipse.jdt.internal.core.JavaModelManager.saveVariablesAndContainers(JavaModelManager.java:3819)
    at org.eclipse.jdt.internal.core.JavaModelManager.saving(JavaModelManager.java:4065)
    at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:361)
    at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:170)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:173)
    at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1108)
    at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1087)
    at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:44)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

    !ENTRY org.drools.eclipse 4 120 2011-08-17 10:41:41.482
    !MESSAGE Internal error in Drools Plugin:
    !STACK 0
    java.lang.reflect.InvocationTargetException
    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
    at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1008)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.createDroolsProject(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.performFinish(Unknown Source)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:254)
    at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:274)
    at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
    at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
    at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
    at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
    at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
    at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)
    Caused by: java.lang.NullPointerException
    at org.drools.eclipse.util.DroolsClasspathContainer.createDroolsLibraryEntries(Unknown Source)
    at org.drools.eclipse.util.DroolsClasspathContainer.getClasspathEntries(Unknown Source)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2651)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2569)
    at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath(ClasspathEntry.java:1583)
    at org.eclipse.jdt.internal.core.SetClasspathOperation.verify(SetClasspathOperation.java:117)
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:782)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3026)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2988)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3041)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.addDroolsLibraries(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.setClasspath(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.access$3(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard$1.execute(Unknown Source)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Root exception:
    java.lang.NullPointerException
    at org.drools.eclipse.util.DroolsClasspathContainer.createDroolsLibraryEntries(Unknown Source)
    at org.drools.eclipse.util.DroolsClasspathContainer.getClasspathEntries(Unknown Source)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2651)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2569)
    at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspath(ClasspathEntry.java:1583)
    at org.eclipse.jdt.internal.core.SetClasspathOperation.verify(SetClasspathOperation.java:117)
    at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:782)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3026)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2988)
    at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3041)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.addDroolsLibraries(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.setClasspath(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard.access$3(Unknown Source)
    at org.drools.eclipse.wizard.project.NewDroolsProjectWizard$1.execute(Unknown Source)
    at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
    at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
    at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

    #319029 Reply

    support-swapna
    Moderator

    flawlor ,

    Drools 5.2 is the version designed to work on Eclipse 3.6 on which MyEclipse 9.1 is based. If you try to install Drools 4.0.7 on Classic Eclipse 3.6, you will see the same errors when trying to create a new Drools project.

    Here are the steps to install Drools 5.2 version :

    1) First uninstall the Drools 4.0.7 already added to MyEclipse. Go to MyEclipse Configuration Center > Software > My Software. Right click on Drools and select ‘Remove’. Apply the changes and follow the wizard. Restart the IDE when it prompts.

    2) Drools plugin is available as part of JBoss Tools Eclipse update site. I suggest you install only Drools from the JBoss Tools. MyEclipse internally uses JBoss Tools and so trying to install the other tools like Hibernate and Struts might end up with dependency issues.Here are the steps to install from update site :

    a) Go to MyEclipse Configuration Center > Software tab.
    b) Click on [Add Site]
    c). Enter name of the plugin
    d). Enter update site URL i.e http://download.jboss.org/jbosstools/updates/stable/helios/
    e). Click on [OK]
    f). This will list your plugin under Personal Sites.
    g). Expand the plugin. Go to Application Development, Right click on JBoss Drools Core and select [Add to Profile].
    h) Apply the changes and follow the wizard.
    i) After the plugin is installed it will prompt you to restart MyEclipse. At this point it is recommended to restart MyEclipse

    3) If you have a .zip file containing plugins/features releated to the Drools plugin to be installed. You can copy and paste plugins and features to [MyEclipse installation dir]/dropins. (If you don’t have folders named plugins/features, it is recommended that you create them under dropins and copy and paste relevant plugins/features to their respective folders)

    Let me know if you see any issues.

    #319037 Reply

    Frank Lawlor
    Participant

    Thanks for the quick response.

    I followed the directions fine thru installing the new drools 5.2 version.

    When I tried to create a drools project it said I needed to configure a runtime first.

    When I went into the configuration and selected to create a new drools 5 runtime and provided a directory location it did nothing. The log shows the following:

    !ENTRY org.eclipse.ui 4 0 2011-08-18 08:58:42.844
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at org.drools.eclipse.util.DroolsRuntimeManager.createDefaultRuntime(DroolsRuntimeManager.java:64)
    at org.drools.eclipse.preferences.DroolsRuntimeDialog.createRuntime(DroolsRuntimeDialog.java:185)
    at org.drools.eclipse.preferences.DroolsRuntimeDialog.access$3(DroolsRuntimeDialog.java:179)
    at org.drools.eclipse.preferences.DroolsRuntimeDialog$3.widgetSelected(DroolsRuntimeDialog.java:116)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.drools.eclipse.preferences.DroolsRuntimesBlock.addDroolsRuntime(DroolsRuntimesBlock.java:256)
    at org.drools.eclipse.preferences.DroolsRuntimesBlock.access$6(DroolsRuntimesBlock.java:254)
    at org.drools.eclipse.preferences.DroolsRuntimesBlock$5.handleEvent(DroolsRuntimesBlock.java:202)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:211)
    at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
    at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1383)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.genuitec.pulse.eclipse.launcher.Main.main(Main.java:110)

    #319057 Reply

    support-swapna
    Moderator

    flawlor ,

    I could see the same issue on Classic Eclipse 3.6 with Drools 5.2. I am afraid this issue is carried to MyEclipse from Classic Eclipse.

    I suggest you cross post it to Eclipse/Drools forums for better support on the runtime issue.

    Hope this helps.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Drools Plugin Problem

You must be logged in to post in the forum log in