plexiti / camunda-grails-plugin

Integrates Camunda BPM with the Grails framework.
http://grails.org/plugin/camunda
Apache License 2.0
18 stars 8 forks source link

error when try to use process modeller after installing camunda plugin into grails #18

Closed woodmawa closed 10 years ago

woodmawa commented 10 years ago

I have GGTS (juno) (64bit) 3.5.1 installed and created a grails project using grails 2.3.7

project created fine. edite buildConfig to add camunda plugin. Rebuild. plugin downloads and installs

ran create-process myproc successfuly, and process folder is created in grails-app, along with the bpmn file.

i then got my eclipse build to download the Camunda graphical editor plugin from the camunda site. This seemed to download ok - and the process file in the grails project now has an icon.

when i double click the process file i get an error

An error has occurred. See error log for more details. org.eclipse.graphiti.ui.services.IImageService.getImageDescriptorForId(Ljava/lang/String;)Lorg/eclipse/jface/resource/ImageDescriptor;

from the log i found this

!ENTRY org.eclipse.ui.workbench 4 2 2014-05-15 23:08:06.851 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". !STACK 0 java.lang.NoSuchMethodError: org.eclipse.graphiti.ui.services.IImageService.getImageDescriptorForId(Ljava/lang/String;)Lorg/eclipse/jface/resource/ImageDescriptor; at org.camunda.bpm.modeler.ui.Images.getDescriptorById(Images.java:311) at org.camunda.bpm.modeler.ui.Images.getDescriptorById(Images.java:299) at org.camunda.bpm.modeler.ui.views.outline.Bpmn2EditorOutlinePage.createOutlineViewer(Bpmn2EditorOutlinePage.java:271) at org.camunda.bpm.modeler.ui.views.outline.Bpmn2EditorOutlinePage.createControl(Bpmn2EditorOutlinePage.java:171) at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:137) at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:412) at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:753) at org.eclipse.ui.part.PageBookView$4.partActivated(PageBookView.java:1055) at org.eclipse.ui.internal.WorkbenchPage$15.run(WorkbenchPage.java:4794) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4792) at org.eclipse.ui.internal.WorkbenchPage.access$16(WorkbenchPage.java:4772) at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:194) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$2.run(PartServiceImpl.java:192) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:190) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:609) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:553) at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:542) at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:875) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3073) at org.eclipse.ui.internal.WorkbenchPage.access$21(WorkbenchPage.java:3034) at org.eclipse.ui.internal.WorkbenchPage$8.run(WorkbenchPage.java:3016) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3012) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2976) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2967) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:534) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:493) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:268) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:233) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251) at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:47) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1057) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4170) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:140) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:611) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) 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:354) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591) at org.eclipse.equinox.launcher.Main.run(Main.java:1450) at org.eclipse.equinox.launcher.Main.main(Main.java:1426)

and i cant open the file and view it

Whats wrong and how do i fix it ?

martinschimak commented 10 years ago

Hi woodmawa,

The issue you describe is not related to the camunda grails plugin, but to the eclipse plugin of the camunda modeler. I assume that you have a dependency version issue with the graphiti library.

Similar issues are described here: http://docs.camunda.org/latest/guides/installation-guide/camunda-modeler/#installation-downloads, but not exactly your one. In case you can't fix it by using a fresh eclipse, I suggest that you post it in the camunda user forum (https://groups.google.com/forum/#!forum/camunda-bpm-users). I will close this issue here, because there is no way to resolve it by changing the grails plugin.

Many greetings!