Skip to main content



      Home
Home » Eclipse Projects » GEF » Exceptions in draw2d-standalone
Exceptions in draw2d-standalone [message #75657] Tue, 15 April 2003 03:38 Go to next message
Eclipse UserFriend
Originally posted by: Julien.Orange.connecticut.fr

Hi all,

I'm currently building a small IDE using standalone draw2d, and found that
some exceptions i can't solve are being thrown.

java.lang.NoClassDefFoundError:
org/eclipse/core/internal/boot/DelegatingURLClassLoader
at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:31 2)
at
org.eclipse.draw2d.internal.Draw2dMessages$Helper.getString( Draw2dMessages.j
ava:22)
at
org.eclipse.draw2d.internal.Draw2dMessages.<clinit>(Draw2dMessages.java:39)
at org.eclipse.draw2d.Figure.remove(Figure.java:1038)
at org.eclipse.draw2d.FreeformLayer.remove(FreeformLayer.java:5 3)
at
cnut.art.ide.graph.GraphMouseListener.mousePressed(GraphMous eListener.java:7
5)
at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:768 )
at .... (tons of lines, doesn't matter)
at cnut.art.ide.IDE.main(IDE.java:28)

I wonder where the 4 first lines come from (I know that all the others come
from bugs in my code;)
They seem to refer to the eclipse platform, but I'm building a standalone
app...

How can I prevent them from appearing?

TIA,
Julien
Re: Exceptions in draw2d-standalone [message #75777 is a reply to message #75657] Wed, 16 April 2003 10:50 Go to previous message
Eclipse UserFriend
Julien Orange wrote:
> Hi all,
>
> I'm currently building a small IDE using standalone draw2d, and found that
> some exceptions i can't solve are being thrown.
>
> java.lang.NoClassDefFoundError:
> org/eclipse/core/internal/boot/DelegatingURLClassLoader
> at org.eclipse.core.runtime.Platform.getPlugin(Platform.java:31 2)
> at
> org.eclipse.draw2d.internal.Draw2dMessages$Helper.getString( Draw2dMessages.j
> ava:22)
> at
> org.eclipse.draw2d.internal.Draw2dMessages.<clinit>(Draw2dMessages.java:39)
> at org.eclipse.draw2d.Figure.remove(Figure.java:1038)
> at org.eclipse.draw2d.FreeformLayer.remove(FreeformLayer.java:5 3)
> at
> cnut.art.ide.graph.GraphMouseListener.mousePressed(GraphMous eListener.java:7
> 5)
> at org.eclipse.draw2d.Figure.handleMousePressed(Figure.java:768 )
> at .... (tons of lines, doesn't matter)
> at cnut.art.ide.IDE.main(IDE.java:28)
>
> I wonder where the 4 first lines come from (I know that all the others come
> from bugs in my code;)
> They seem to refer to the eclipse platform, but I'm building a standalone
> app...

Draw2d is trying to get an error message from the resource bundle using
Platform's IPluginDescriptor API, which doesn't work since you're using
Draw2d standalone. The actual error you're getting is "Figure is not a
child of this parent" which is caused by trying to remove a figure
that's not there (or at least not a child of the figure you're trying to
remove it from).

> How can I prevent them from appearing?

Don't cause the error. ;) Draw2d & GEF aren't supported in a standalone
environment. Although, you could modify them to remove this dependency.

> TIA,
> Julien
>
>
Previous Topic:TreeViewer/TreeEditPart is not lazy
Next Topic:splitter layout
Goto Forum:
  


Current Time: Tue May 13 07:15:54 EDT 2025

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

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

Back to the top