Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » NoClassDefFoundError DefaultBpmn2RuntimeExtension$RootElementParser - after update to 1.2.3
NoClassDefFoundError DefaultBpmn2RuntimeExtension$RootElementParser - after update to 1.2.3 [message #1722901] Wed, 10 February 2016 08:44 Go to next message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 137
Registered: July 2009
Senior Member
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 Go to previous messageGo to next message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

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 Sad

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

Re: NoClassDefFoundError DefaultBpmn2RuntimeExtension$RootElementParser - after update to 1.2.3 [message #1723016 is a reply to message #1722974] Wed, 10 February 2016 22:01 Go to previous message
Ralph Soika is currently offline Ralph SoikaFriend
Messages: 137
Registered: July 2009
Senior Member
Hi Bob,

yes that fixed the problem - thanks!

I updated the developer wiki page : https://wiki.eclipse.org/BPMN2-Modeler/DeveloperTutorials/ExtendingRuntime#Create_a_new_RuntimeExtension
and I also updated my bpmn2-tutorial project on GitHub: https://github.com/rsoika/bpmn2-tutorial
Do you think that the bpmn2-tutorial on GitHub is helpful? Maybe you will fork it? Currently we only link to this example on the Maven Tutorial Page (https://wiki.eclipse.org/BPMN2-Modeler/DeveloperTutorials/Maven).
I think I created this project only to demonstrate the correct maven setup for a BPMN2-Extension project, which has caused me much headache Wink

===
Ralph
Previous Topic:Schema Read Problem After Update
Next Topic:Add a new workflow pattern
Goto Forum:
  


Current Time: Thu May 24 21:28:31 GMT 2018

Powered by FUDForum. Page generated in 0.02108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top