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.

IllegalArgumentException when note's name is already known in a package diagram

0 votes
Hello,

With this file :

@startuml
    package a {
        note "my note" as M
    }

    package b {
        note "my other note" as M
    }
@enduml

I get :

java.lang.IllegalArgumentException: Already known: M(null)
    at net.sourceforge.plantuml.cucadiagram.CucaDiagram.createLeaf(CucaDiagram.java:121)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand.executeInternal(FactoryNoteCommand.java:111)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand.access$0(FactoryNoteCommand.java:108)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand$1.executeArg(FactoryNoteCommand.java:82)
    at net.sourceforge.plantuml.command.note.FactoryNoteCommand$1.executeArg(FactoryNoteCommand.java:1)
    at net.sourceforge.plantuml.command.SingleLineCommand2.execute(SingleLineCommand2.java:102)
    at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:54)
    at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:110)
    at net.sourceforge.plantuml.command.UmlDiagramFactory.executeOneLine(UmlDiagramFactory.java:134)
    at net.sourceforge.plantuml.command.UmlDiagramFactory.createSystem(UmlDiagramFactory.java:102)
    at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:99)
    at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:91)
    at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:129)
    at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:394)
    at net.sourceforge.plantuml.Run.processArgs(Run.java:316)
    at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:291)
    at net.sourceforge.plantuml.Run.main(Run.java:135)
Error java.lang.IllegalArgumentException: Already known: M(null)
You should send a mail to plantuml@gmail.com with this log (V8022beta9)

Regards,
asked Apr 8, 2015 in bug by Pierre.Sassoulas (370 points)

1 Answer

+1 vote
 
Best answer
This has been fixed in V8023.

Thanks again!
answered Apr 20, 2015 by plantuml (124,290 points)
selected Apr 20, 2015 by Pierre.Sassoulas
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...