Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Some exception when I opened the gef editor
Some exception when I opened the gef editor [message #640452] Mon, 22 November 2010 08:10 Go to next message
Jia Gang is currently offline Jia GangFriend
Messages: 2
Registered: November 2010
Junior Member
Hi,

I have some trouble need someone help.I have a gef editor extends org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette in my rcp application,it's fine while I run it as eclipse application,but after I exported program,when I opened the editor I would occasional get a NoClassDefFoundError, and not the same every time.

The exceptions include
java.lang.NoClassDefFoundError: org.eclipse.ui.views.properties.IPropertySheetPage,
java.lang.NoClassDefFoundError: org/eclipse/draw2d/geometry/Dimension,
java.lang.NoClassDefFoundError: Could not initialize class org.eclipse.gef.ui.palette.FlyoutPaletteComposite,etc.

I want to know why it happened and how to fix it.

thanks.
Re: Some exception when I opened the gef editor [message #640488 is a reply to message #640452] Mon, 22 November 2010 10:13 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 22/11/2010 08:10, Jia Gang wrote:
> Hi,
>
> I have some trouble need someone help.I have a gef editor extends
> org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette in my rcp
> application,it's fine while I run it as eclipse application,but after I
> exported program,when I opened the editor I would occasional get a
> NoClassDefFoundError, and not the same every time.
>
> The exceptions include java.lang.NoClassDefFoundError:
> org.eclipse.ui.views.properties.IPropertySheetPage,
> java.lang.NoClassDefFoundError: org/eclipse/draw2d/geometry/Dimension,
> java.lang.NoClassDefFoundError: Could not initialize class
> org.eclipse.gef.ui.palette.FlyoutPaletteComposite,etc.
>
> I want to know why it happened and how to fix it.
>
> thanks.

Sounds like the GEF plugin is not available to the RCP application. Make
sure it's included in the RCP's dependencies.

PB
Re: Some exception when I opened the gef editor [message #640749 is a reply to message #640488] Tue, 23 November 2010 01:28 Go to previous message
Jia Gang is currently offline Jia GangFriend
Messages: 2
Registered: November 2010
Junior Member
Yes, I am sure I had included the GEF plugin in my RCP, because it is running well for the most of time, just a few times it happened.

Following are dependencies in the Rcp product config file

<plugins>
<plugin id="com.ibm.icu"/>
<plugin id="dyna.modeler"/>
<plugin id="javax.servlet"/>
<plugin id="javax.transaction" fragment="true"/>
<plugin id="org.eclipse.core.commands"/>
<plugin id="org.eclipse.core.commands.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.contenttype"/>
<plugin id="org.eclipse.core.contenttype.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding"/>
<plugin id="org.eclipse.core.databinding.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding.observable"/>
<plugin id="org.eclipse.core.databinding.observable.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.databinding.property"/>
<plugin id="org.eclipse.core.databinding.property.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.expressions"/>
<plugin id="org.eclipse.core.expressions.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.jobs"/>
<plugin id="org.eclipse.core.jobs.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.runtime"/>
<plugin id="org.eclipse.core.runtime.compatibility.auth"/>
<plugin id="org.eclipse.core.runtime.compatibility.auth.nl_zh" fragment="true"/>
<plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
<plugin id="org.eclipse.core.runtime.nl_zh" fragment="true"/>
<plugin id="org.eclipse.draw2d"/>
<plugin id="org.eclipse.equinox.app"/>
<plugin id="org.eclipse.equinox.app.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.common"/>
<plugin id="org.eclipse.equinox.common.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.preferences"/>
<plugin id="org.eclipse.equinox.preferences.nl_zh" fragment="true"/>
<plugin id="org.eclipse.equinox.registry"/>
<plugin id="org.eclipse.equinox.registry.nl_zh" fragment="true"/>
<plugin id="org.eclipse.gef"/>
<plugin id="org.eclipse.help"/>
<plugin id="org.eclipse.help.nl_zh" fragment="true"/>
<plugin id="org.eclipse.jface"/>
<plugin id="org.eclipse.jface.databinding"/>
<plugin id="org.eclipse.jface.databinding.nl_zh" fragment="true"/>
<plugin id="org.eclipse.jface.nl_zh" fragment="true"/>
<plugin id="org.eclipse.osgi"/>
<plugin id="org.eclipse.osgi.nl_zh" fragment="true"/>
<plugin id="org.eclipse.osgi.services"/>
<plugin id="org.eclipse.osgi.services.nl_zh" fragment="true"/>
<plugin id="org.eclipse.persistence.jpa.equinox.weaving" fragment="true"/>
<plugin id="org.eclipse.swt"/>
<plugin id="org.eclipse.swt.nl_zh" fragment="true"/>
<plugin id="org.eclipse.swt.win32.win32.x86" fragment="true"/>
<plugin id="org.eclipse.ui"/>
<plugin id="org.eclipse.ui.forms"/>
<plugin id="org.eclipse.ui.forms.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.views"/>
<plugin id="org.eclipse.ui.views.nl_zh" fragment="true"/>
<plugin id="org.eclipse.ui.workbench"/>
<plugin id="org.eclipse.ui.workbench.nl_zh" fragment="true"/>
<plugin id="org.jboss.tools.xulrunner.initializer" fragment="true"/>
</plugins>

Is there any wrong in this? Btw, I used Eclipse 3.5 and GEF 3.6.0.

Thanks.
Previous Topic:Using more than one foregroundcolor in figure?
Next Topic:GEF diagrams are non-portable
Goto Forum:
  


Current Time: Fri Dec 19 08:01:42 GMT 2014

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

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