cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse-Designer: Unable to add extensions since 5.11

sjmo
Champ in-the-making
Champ in-the-making
Few month ago I created under activiti 5.7 numerous task as extension (jar added as userlib) - without problems.

Now I made an update to 5.11 under Indigo (according the user guide). Without install the extension the creation of new Diagrams works well. After installation of the extension, the designer crashes immediately after choosing create/new/Activiti Diagram. I made the same experience after installing Indigo from scratch.

The extension jar was prior new created under usage of org.activiti.designer.integration_5.11.0.jar

I would be grateful for support

Thx, sjmo


java.lang.IllegalArgumentException: Argument cannot be null
   at org.eclipse.swt.SWT.error(SWT.java:4263)
   at org.eclipse.swt.SWT.error(SWT.java:4197)
   at org.eclipse.swt.SWT.error(SWT.java:4168)
   at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:128)
   at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:22)
   at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:331)
   at org.eclipse.swt.graphics.Image.<init>(Image.java:545)
   at org.activiti.designer.diagram.ActivitiToolBehaviorProvider.getPalette(ActivitiToolBehaviorProvider.java:560)
   at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.updatePaletteEntries(GFPaletteRoot.java:104)
   at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.<init>(GFPaletteRoot.java:80)
   at org.eclipse.graphiti.ui.editor.DefaultPaletteBehavior.createPaletteRoot(DefaultPaletteBehavior.java:103)
   at org.eclipse.graphiti.ui.editor.DefaultPaletteBehavior.getPaletteRoot(DefaultPaletteBehavior.java:115)
   at org.eclipse.graphiti.ui.editor.DiagramEditor.getPaletteRoot(DiagramEditor.java:939)
   at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.setEditDomain(GraphicalEditorWithFlyoutPalette.java:145)
   at org.eclipse.graphiti.ui.editor.DiagramEditor.setConfigurationProvider(DiagramEditor.java:1874)
   at org.eclipse.graphiti.ui.editor.DiagramEditor.setInput(DiagramEditor.java:552)
   at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.setInput(ActivitiDiagramEditor.java:288)
   at org.eclipse.graphiti.ui.editor.DiagramEditor.init(DiagramEditor.java:446)
   at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.init(ActivitiDiagramEditor.java:148)
   at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:828)
   at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647)
   at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
   at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595)
   at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:313)
   at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)
   at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)
   at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
   at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)
   at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1245)
   at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1198)
   at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1597)
   at org.eclipse.ui.internal.PartStack.add(PartStack.java:493)
   at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103)
   at org.eclipse.ui.internal.PartStack.add(PartStack.java:479)
   at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112)
   at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:63)
   at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:225)
   at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:213)
   at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:808)
   at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:707)
   at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:666)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2942)
   at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850)
   at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842)
   at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773)
   at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
   at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
   at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99)
   at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99)
   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:48)
   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:1053)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
   at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
   at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
   at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
   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:344)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
   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:622)
   at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
   at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
7 REPLIES 7

trademak
Star Contributor
Star Contributor
Would it be possible to sent me the extension JAR so I can try and reproduce this error?
Maybe you can create a JIRA and attache the extension JAR there?

Thanks,

younes1
Champ in-the-making
Champ in-the-making
hi,
i have also some problem when i try to customize the activiti platte. the activiti user guide confuse littel bit:

installation and extension in the user guide is:
-> Installation
  The following installation instructions are verified on Eclipse Indigo. Note that Eclipse Helio is NOT supported.
->Extension setup (Eclipse/Maven)
  Download and extract Eclipse (Galileo or Helios should both work) and a recent version (3.x) of Apache Maven.

which eclipse is suggested to use??? ( Helios or not! indigo or Gallio)
RPC ord JEE eclipse?


on indigo the money task will showed in activiti paltte but when i try to drag any component from the platte i get the following error

GFCommandStack.execute(Command) java.lang.NullPointerException

java.lang.NullPointerException
at org.activiti.designer.util.eclipse.ActivitiUiUtil.getNextId(ActivitiUiUtil.java:209)
at org.activiti.designer.features.AbstractCreateBPMNFeature.getNextId(AbstractCreateBPMNFeature.java:58)
at org.activiti.designer.features.AbstractCreateBPMNFeature.addObjectToContainer(AbstractCreateBPMNFeature.java:107)
at org.activiti.designer.features.AbstractCreateBPMNFeature.addObjectToContainer(AbstractCreateBPMNFeature.java:161)
at org.activiti.designer.features.CreateStartEventFeature.create(CreateStartEventFeature.java:27)
at org.eclipse.graphiti.features.impl.AbstractCreateFeature.execute(AbstractCreateFeature.java:100)
at org.eclipse.graphiti.internal.command.GenericFeatureCommandWithContext.execute(GenericFeatureCommandWithContext.java:64)
at org.eclipse.graphiti.internal.command.GFPreparableCommand.doExecute(GFPreparableCommand.java:37)
at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:102)
at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
at org.eclipse.graphiti.internal.command.CommandExec.executeCommand(CommandExec.java:86)
at org.eclipse.graphiti.ui.internal.command.CreateModelObjectCommand.execute(CreateModelObjectCommand.java:54)
at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:37)
at org.eclipse.emf.transaction.RecordingCommand.execute(RecordingCommand.java:135)
at org.eclipse.emf.workspace.EMFCommandOperation.doExecute(EMFCommandOperation.java:119)
at org.eclipse.emf.workspace.AbstractEMFOperation.execute(AbstractEMFOperation.java:150)
at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:513)
at org.eclipse.emf.workspace.impl.WorkspaceCommandStackImpl.doExecute(WorkspaceCommandStackImpl.java:208)
at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:165)
at org.eclipse.graphiti.ui.internal.editor.GFWorkspaceCommandStackImpl.execute(GFWorkspaceCommandStackImpl.java:83)
at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:124)
at org.eclipse.graphiti.ui.internal.dnd.GFTemplateTransferDropTargetListener.handleDrop(GFTemplateTransferDropTargetListener.java:54)
at org.eclipse.gef.dnd.AbstractTransferDropTargetListener.drop(AbstractTransferDropTargetListener.java:183)
at org.eclipse.jface.util.DelegatingDropAdapter$3.run(DelegatingDropAdapter.java:211)
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.util.DelegatingDropAdapter.drop(DelegatingDropAdapter.java:209)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1416)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1401)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
at org.eclipse.swt.dnd.DropTarget.drag_data_received(DropTarget.java:386)
at org.eclipse.swt.dnd.DropTarget.Drag_Data_Received(DropTarget.java:251)
at org.eclipse.swt.internal.gtk.OS._gtk_drag_get_data(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_drag_get_data(OS.java:6910)
at org.eclipse.swt.dnd.DropTarget.drag_drop(DropTarget.java:431)
at org.eclipse.swt.dnd.DropTarget.Drag_Drop(DropTarget.java:258)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:8549)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1241)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:2281)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3324)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1049)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:939)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:79)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:587)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:542)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
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:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1443)
at org.eclipse.equinox.launcher.Main.main(Main.java:1419)


best regards
younes

melentye
Champ in-the-making
Champ in-the-making
I can reproduce it, I have found that overriding getSmallIconPath method helps - NPE doesn't occur in this case.

@Tijs, just try extending AbstractCustomServiceTask without overriding getSmallIconPath, it should help you reproduce the problem.

trademak
Star Contributor
Star Contributor
Okay yes that makes sense, you should actually always implement that method.
Could you create a JIRA for this?

Thanks,

melentye
Champ in-the-making
Champ in-the-making
I've created https://jira.codehaus.org/browse/ACT-1683

thanks,
Andrey

tiesebarrell
Champ in-the-making
Champ in-the-making
This is more a bug than a required change to the intended behavior. I've suggested fixing the bug in the Jira issue.

henry_werner
Champ in-the-making
Champ in-the-making
I was curious about this post and wonder if this is still a problem.  I am simply trying to recreate your money-tasks example just to get a start and see this thing working.  I have simply created a jar with the lone class, AcmeMoneyTask.  I create the jar, I save the jar to a different spot on my mac so that it is not coming from the eclipse workspace.  I reopen Eclipse Indigo under a brand new workspace and add the jar to the Activiti Extensions Library per instructions.  Up till this point, everything looks good.  Now, I create a new Activiti Project, and when I try to create a diagram, I get the same error:
java.lang.IllegalArgumentException: Argument cannot be null
at org.eclipse.swt.SWT.error(SWT.java:4263)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168),
etc., etc., etc.

So, is it possible I've done something wrong here, or is there a fix on the way. I just looked up the jira bug on this and see it has been closed, but not technically resolved.  I've attached my pom.xml and AcmeMoneyTask.java with .txt extensions to make them upload to show you what I'm working with. Any help would be appreciated.

Thanks,

Henry