Community
Participate
Working Groups
Build Identifier: 20100617-1415 I tried to export a papyrus diagram as PDF, but it didn't work. The error message says: "Copy Diagram to Image File could not be completed. Reason org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.ImageRenderImage cannot be cast to org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImage" Papyrus version 0.7.0. Also tested on Windows 7 x86 with same Eclipse and Papyrus build. Reproducible: Always Steps to Reproduce: 1. Open Eclipse 2. Create Papyrus project (File | New | Papyrus Project) 3. Open model (double click model.di) 4. Create uml class diagram (right click model in model explorer | New Diagram | UML Class Diagram) 5. Create a class and move it into the class diagram ( 6. Try to save as PDF (right click diagram | File | Save As Image File | Image Format: PDF)
I have this issue as well, on Windows 7 and Linux.
I also have this issue on linux (Ubuntu 12.04 LTS, x86_64) using eclipse from the Ubuntu software repo and papyrus from the main eclipse update site. eclipse version information Version: 3.7.2 Build id: I20110613-1736 Papyrus version information 0.8.2.v201202150
Cannot reproduce on the current version (0.10.1/Kepler, Windows 7)
Getting the same error: java.lang.ClassCastException: org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.ImageRenderedImage cannot be cast to org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImage eclipse.buildId=4.4.2.M20150204-1700 java.version=1.7.0_71 java.vendor=Oracle Corporation BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE with Papyrus 1.0.2.v201502181349 org.eclipse.gmf.runtime.draw2d.ui.render is 1.7.0.201408201453 org.eclipse.gmf.runtime.draw2d.ui.render.awt is 1.8.0.201408201453
So this one doesn't work on Luna. It needs to be tested on Mars as well. (Windows and Linux) Please reopen if needed.
I have the same problem on mars ... strange thing ... svg works ... and pdf produces this cast error.
Are there any updates on this issue? Still getting "java.lang.ClassCastException: org.eclipse.gmf.runtime.draw2d.ui.render.internal.image.ImageRenderedImage cannot be cast to org.eclipse.gmf.runtime.draw2d.ui.render.awt.internal.svg.SVGImage" on attempt to save image as pdf.