cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti Designer Palette Problem on Eclipse

anu86
Champ in-the-making
Champ in-the-making
Hi,

I have extended the default palette with some custom Service Tasks as described in Activiti documentation on 12.5.1. Customizing the palette. (http://www.activiti.org/userguide/)

I tried the money-tasks example and was able to build the jar file and Money node is displayed without any issue at the palette. But when I drag and drop the Money Node Eclipse gives the following error.

GFCommandStack.execute(Command) java.lang.NullPointerException: entry
The stack trace at eclipse error log is as follows.

I tried with Eclipse Mars , Kepler and Juno versions and all gives the same error. Any Suggetion on how to resolve this is highly appreciated as I'm stuck with this error for two days.

java.lang.NullPointerException: entry
   at java.util.zip.ZipFile.getInputStream(ZipFile.java:346)
   at java.util.jar.JarFile.getInputStream(JarFile.java:447)
   at org.activiti.designer.util.extension.JarClassLoader.loadClassData(JarClassLoader.java:92)
   at org.activiti.designer.util.extension.JarClassLoader.loadClass(JarClassLoader.java:61)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:348)
   at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:114)
   at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
   at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
   at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:439)
   at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:241)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
   at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
   at java.lang.Class.createAnnotationData(Class.java:3521)
   at java.lang.Class.annotationData(Class.java:3510)
   at java.lang.Class.getAnnotation(Class.java:3415)
   at org.activiti.designer.integration.servicetask.AbstractCustomServiceTask.getRuntimeAnnotation(AbstractCustomServiceTask.java:137)
   at org.activiti.designer.integration.servicetask.AbstractCustomServiceTask.getDelegateType(AbstractCustomServiceTask.java:74)
   at org.activiti.designer.features.CreateServiceTaskFeature.create(CreateServiceTaskFeature.java:64)
   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:115)
   at org.eclipse.emf.transaction.impl.AbstractTransactionalCommandStack.execute(AbstractTransactionalCommandStack.java:219)
   at org.eclipse.graphiti.internal.command.CommandExec.executeCommand(CommandExec.java:85)
   at org.eclipse.graphiti.ui.internal.command.CreateModelObjectCommand.execute(CreateModelObjectCommand.java:55)
   at org.eclipse.graphiti.ui.internal.editor.EmfOnGefCommand.execute(EmfOnGefCommand.java:54)
   at org.eclipse.graphiti.internal.command.GFPreparableCommand2.doExecute(GFPreparableCommand2.java:43)
   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:84)
   at org.eclipse.graphiti.ui.internal.editor.GFCommandStack.execute(GFCommandStack.java:138)
   at org.eclipse.graphiti.ui.internal.dnd.GFTemplateTransferDropTargetListener.handleDrop(GFTemplateTransferDropTargetListener.java:55)
   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:1276)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1285)
   at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1079)
   at org.eclipse.swt.dnd.DropTarget.drag_data_received(DropTarget.java:371)
   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:6733)
   at org.eclipse.swt.dnd.DropTarget.drag_drop(DropTarget.java:416)
   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:8307)
   at org.eclipse.swt.widgets.Display.eventProc(Display.java:1192)
   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:2332)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3177)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
   at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
   at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
   at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
   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:62)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:497)
   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:1438)
   at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
2 REPLIES 2

mohammad_ph
Champ in-the-making
Champ in-the-making
Hello Sir,

Also I'm facing the same problem even the image not viewed after overriding the method

   @Override
   public String getSmallIconPath() {
     return "coins.png";
   }

the new shape is presented and when dragging it to palette it gives an error

"GFCommandStack.execute(Command) java.lang.NullPointerException: entry"

Is it bug or i've make something wrong ????


thank you.

bkoripalli
Champ in-the-making
Champ in-the-making
If your eclipse designer plugin version is 5.18. It may not work I had the same issue. I think some issues in 5.18 then,

I installed eclipse designer version 5.15 through offline. It's working fine for me.