NoClassDefFoundError DefaultBpmn2RuntimeExtension$RootElementParser - after update to 1.2.3 [message #1722901] |
Wed, 10 February 2016 08:44  |
Eclipse User |
|
|
|
Hi,
when I update the bpmn2 plugin from release 1.2.2 to latest release 1.2.3 (http://download.eclipse.org/bpmn2-modeler/updates/mars/1.2.3), I got the following exception when opening a model created with the bpmn plugin version 1.2.2 before.
!ENTRY org.eclipse.e4.ui.workbench 4 0 2016-02-10 09:33:42.369
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '1222'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: org/eclipse/bpmn2/modeler/ui/DefaultBpmn2RuntimeExtension$RootElementParser
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:356)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:264)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.createFromBundle(ReflectionContributionFactory.java:104)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.doCreate(ReflectionContributionFactory.java:73)
at org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory.create(ReflectionContributionFactory.java:55)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer.createWidget(ContributedPartRenderer.java:129)
.....
Is there any other dependency which users need to update when upgrating to 1.2.3?
Tested with: 1.2.3.CR2-v20160209-2002
thanks for help
===
Ralph
|
|
|
Re: NoClassDefFoundError DefaultBpmn2RuntimeExtension$RootElementParser - after update to 1.2.3 [message #1722974 is a reply to message #1722901] |
Wed, 10 February 2016 15:46   |
Eclipse User |
|
|
|
Hi Ralph,
I had to refactor DefaultBpmn2RuntimeExtension because this class was incorrectly being used by one of the example plugins (datatypes). This caused the wrong TargetRuntime to be selected during validation; i.e. the Target Runtime for the datatypes example plugin was selected for validation of jBPM processes - this was a bad thing 
In order to prevent problems like this in the future, I refactored most of the DefaultBpmn2RuntimeExtension code into the class AbstractBpmn2RuntimeExtension. This new class now also contains the RootElementParser inner class.
The short story is that all you should have to do is recompile your extension plugin and it will pick up the RootElementParser. I have prepared a pull request with this change (https://github.com/imixs/imixs-bpmn/pull/46) Let me know if you have any questions.
Cheers,
Bob
|
|
|
|
Powered by
FUDForum. Page generated in 0.02798 seconds