java.lang.ClassCastException bug

0 votes
asked Dec 17, 2015 in Bug by boessu (160 points)

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));
Stacktrace:
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)

1 Answer

0 votes
answered Dec 17, 2015 by plantuml (294,960 points)

Hello,

Even a very simple diagram like:

@startuml
usecase foo
@enduml

is crashing ?
 

asked Jan 3, 2016 in Bug by boessu (160 points) Err... no. That simple thing seems to work.
...