Exception because of emty line in Manifest.mf

6 posts / 0 new
Last post
Pascal
Offline
Last seen: 5 months 3 weeks ago
Joined: 07/05/2012 - 15:10
Posts: 15
Exception because of emty line in Manifest.mf

Hello,
the ActivitiDesigner throws an exception when the Manifest.mf of the Jar-File contains an emty line. In my Jar, created by a build.xml, there are two emty lines at the end of the Manifest.mf and because of this it doesn´t work. When I remove them manually it works well...

Maybe you can implement that emty lines will be ignored...

Thanks,
Pascal

frederikheremans
frederikheremans's picture
Offline
Last seen: 3 days 6 hours ago
Joined: 08/26/2010 - 06:59
Posts: 3002

I think we use the default manifest-reading capabilities... Can't you make your ant-build file create a manifest that doesn't contain the empty lines?

Can you show the stack trace thrown by the designer? So I can assert this is activiti-specific reading or not?

Activiti Core Developer

Pascal
Offline
Last seen: 5 months 3 weeks ago
Joined: 07/05/2012 - 15:10
Posts: 15

Yes, I´m looking for the reason of this emty lines, but I didn´t find anything yet. It is only a standard ""-tag where attributes are added in my build.xml

The Exception:

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.(ImageData.java:331)
at org.eclipse.swt.graphics.Image.(Image.java:545)
at org.activiti.designer.diagram.ActivitiToolBehaviorProvider.getPalette(ActivitiToolBehaviorProvider.java:532)
at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.updatePaletteEntries(GFPaletteRoot.java:104)
at org.eclipse.graphiti.ui.internal.editor.GFPaletteRoot.(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:938)
at org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette.setEditDomain(GraphicalEditorWithFlyoutPalette.java:145)
at org.eclipse.graphiti.ui.editor.DiagramEditor.setConfigurationProvider(DiagramEditor.java:1863)
at org.eclipse.graphiti.ui.editor.DiagramEditor.setInput(DiagramEditor.java:551)
at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.setInput(ActivitiDiagramEditor.java:203)
at org.eclipse.graphiti.ui.editor.DiagramEditor.init(DiagramEditor.java:445)
at org.activiti.designer.eclipse.editor.ActivitiDiagramEditor.init(ActivitiDiagramEditor.java:139)
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.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
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.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
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.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:2696)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
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)

frederikheremans
frederikheremans's picture
Offline
Last seen: 3 days 6 hours ago
Joined: 08/26/2010 - 06:59
Posts: 3002

Looks like error is in loading an Image to display in SWT. If you claim the removal of the blank lines fixes this problem, probably the activiti-extention-name that is read from the manifest (with the empty lines) causes a certain resource not to be found...

Activiti Core Developer

Pascal
Offline
Last seen: 5 months 3 weeks ago
Joined: 07/05/2012 - 15:10
Posts: 15

Yes, the last line in the Manifest.mf is the activiti-extention-name, so maybe with the empty lines an additional ressource wants to be found... I´m searching for a way to get a right Manifest.mf out of my ANT-Build...

Now I have the same Exception at another point in my Custom-Shape. The MoneyTask-Example works, my own one never works. Because of that I changed the example to a class with my properties. That still works. But when I want to rename the Class or the package-Path, suddenly there is that Exception again. What can I do to get my own Package-Path and Class-Name for the custom shape in the palette? Is there any config or something like that where I have to change something?

Thanks,
Pascal

Pascal
Offline
Last seen: 5 months 3 weeks ago
Joined: 07/05/2012 - 15:10
Posts: 15

So, after some more attempts now I have:

- Eclipse Indigo with Activiti-Designer 5.9 : Like the post before (own Jar doesn´t work, the example works, example with renamed class doesn´t work)

- Eclipse Helios with Activiti-Designer 5.8.1: My own Jar works perfect

- The installation of Activiti-Designer 5.8.1 on Eclipse Indigo fails:
"Cannot complete the install because one or more required items could not be found.
Software being installed: Activiti Eclipse BPMN 2.0 Designer 5.8.1 (org.activiti.designer.feature.feature.group 5.8.1)
Missing requirement: Activiti Designer - Eclipse 5.8.1 (org.activiti.designer.eclipse 5.8.1) requires 'bundle org.eclipse.emf.transaction 0.0.0' but it could not be found
Cannot satisfy dependency:
From: Activiti Eclipse BPMN 2.0 Designer 5.8.1 (org.activiti.designer.feature.feature.group 5.8.1)
To: org.activiti.designer.eclipse [5.8.1]"

...and after that I get an Exception when I want to open a Diagram...

Maybe there must be changes between 5.8 & 5.9 that are the reason for my problem?