Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

java.lang.ClassCastException bug

0 votes

I'm using PlantUML within my own jEdit Plugin. Since version 8025, I'll get a ClassCastException if I'm trying to use it for a Use Case Diagram (all others seems to work):

Calling code:

reader.generateImage(os, new FileFormatOption(FileFormat.SVG));
21:21:41 [Thread-4] [error] Thread-4: java.lang.ClassCastException: net.sourceforge.plantuml.NewpagedDiagram cannot be cast to net.sourceforge.plantuml.UmlDiagram
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.command.CommandSkinParamMultilines.execute(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.command.UmlDiagramFactory.manageMultiline(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.command.UmlDiagramFactory.executeOneLine(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.command.UmlDiagramFactory.createSystem(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.PSystemBuilder.createPSystem(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.BlockUml.getDiagram(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.SourceStringReader.generateImage(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at net.sourceforge.plantuml.SourceStringReader.generateImage(Unknown Source)
21:21:41 [Thread-4] [error] Thread-4:  at ch.braincell.jedit.plantuml.swing.PlantRenderThread.renderPlant(PlantRenderThread.java:49)
21:21:41 [Thread-4] [error] Thread-4:  at ch.braincell.jedit.plantuml.swing.PlantRenderThread.run(PlantRenderThread.java:30)
I hope this is enough to find the problem (seems to be rather obvious to find)
asked Dec 17, 2015 in bug by boessu (170 points)

1 Answer

0 votes


Even a very simple diagram like:

usecase foo

is crashing ?

answered Dec 17, 2015 by plantuml (125,210 points)
Err... no. That simple thing seems to work.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter