Error java.lang.ClassCastException: net.sourceforge.plantuml.descdiagram.DescriptionDiagram cannot be cast to net.sourceforge.plantuml.objectdiagram.AbstractClassOrObjectDiagram
java.lang.ClassCastException: net.sourceforge.plantuml.descdiagram.DescriptionDiagram cannot be cast to net.sourceforge.plantuml.objectdiagram.AbstractClassOrObjectDiagram
at net.sourceforge.plantuml.objectdiagram.command.CommandCreateJson.executeNow(CommandCreateJson.java:66)
at net.sourceforge.plantuml.command.CommandMultilines2.execute(CommandMultilines2.java:111)
at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:55)
at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:158)
at net.sourceforge.plantuml.command.PSystemCommandFactory.executeFewLines(PSystemCommandFactory.java:125)
at net.sourceforge.plantuml.command.PSystemCommandFactory.createSystem(PSystemCommandFactory.java:108)
at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:137)
at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:179)
at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:159)
at net.sourceforge.plantuml.Pipe.generateDiagram(Pipe.java:101)
at net.sourceforge.plantuml.Pipe.managePipe(Pipe.java:92)
at net.sourceforge.plantuml.Run.managePipe(Run.java:354)
at net.sourceforge.plantuml.Run.main(Run.java:181)
You should send a mail to plantuml@gmail.com or post to http://plantuml.com/qa with this log (V1.2022.13)
ERROR
28
You should send a mail to plantuml@gmail.com or post to http://plantuml.com/qa with this log (V1.2022.13) java.lang.ClassCastException: net.sourceforge.plantuml.descdiagram.DescriptionDiagram cannot be cast to net.sourceforge.plantuml.objectdiagram.AbstractClassOrObjectDiagram
Some diagram description contains errors
JSON diagram seems to conflict when having a component.
If I change component to class it works. Everything works fine on the online editor. This is just happening in VSCode PlantUML previewer (https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml). I updated to latest JAR.
@startuml
component ProcessCommunicationRequest
json Request {
"recipients": [
]
}
@enduml