| Summary: | ExceptionInInitializerError when opening a diagram or creating from the palette | ||
|---|---|---|---|
| Product: | [Modeling] GMF-Runtime | Reporter: | Anthony Hunter <ahunter.eclipse> |
| Component: | General | Assignee: | Anthony Hunter <ahunter.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | 1.4.0 | ||
| Target Milestone: | 1.4.1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Anthony Hunter
The problem is caused by the latest GMF 1.4.1 builds. I can duplicate a similar issue by using the Eclipse GMF Geoshapes example and dropping a shadow rectangle on the diagram. I took Helios GA and the Geoshapes example is fine. As soon as I install only the GMF Runtime 1.4.1 build, I get the error: java.lang.NoClassDefFoundError: org.eclipse.gmf.runtime.draw2d.ui.figures.RectangularDropShadowLineBorder (initialization failure) at java.lang.J9VMInternals.initialize(J9VMInternals.java:140) at org.eclipse.gmf.runtime.diagram.ui.geoshapes.internal.editparts.ShadowRectangleEditPart.createNodeFigure(ShadowRectangleEditPart.java:43) at org.eclipse.gmf.runtime.diagram.ui.editparts.ShapeNodeEditPart.createFigure(ShapeNodeEditPart.java:90) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.getFigure(AbstractGraphicalEditPart.java:494) at org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart.addChildVisual(DiagramEditPart.java:258) at org.eclipse.gef.editparts.AbstractEditPart.addChild(AbstractEditPart.java:210) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.addChild(GraphicalEditPart.java:1319) at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(AbstractEditPart.java:771) at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractEditPart.java:718) at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh(AbstractGraphicalEditPart.java:633) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart.access$3(GraphicalEditPart.java:1) at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPart$3.run(GraphicalEditPart.java:861) [snip] The problem is with the MANIFEST.MF in org.eclipse.gmf.runtime.draw2d.ui_1.4.1.v20100720-0030.jar . The problem has nothing to do with the code changes submitted in GMF. Somehow Bundle-ActivationPolicy: lazy was removed from the plugin when we incremented the bundle service version. It would appear Anthony mistakenly clicked the "Activate this plug-in when one of it's classes is loaded" when activating the editor and then blindly committed the change. Fixed in HEAD and R1_4_maintenance |