Encountering java.lang.IllegalArgumentException

0 votes
asked Jan 15, 2020 in Bug by msawye16 (140 points)

I just updated PlantUML to the latest version and I am now encountering an exception.

The UML was fine with the previous version I was using [1.2018.11]

Here is the console output:

Error java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
        at net.sourceforge.plantuml.cucadiagram.CucaDiagram.getGroup(CucaDiagram.java:434)
        at net.sourceforge.plantuml.classdiagram.command.CommandLinkClass.getFoo1(CommandLinkClass.java:285)
        at net.sourceforge.plantuml.classdiagram.command.CommandLinkClass.executeArg(CommandLinkClass.java:188)
        at net.sourceforge.plantuml.classdiagram.command.CommandLinkClass.executeArg(CommandLinkClass.java:69)
        at net.sourceforge.plantuml.command.SingleLineCommand2.execute(SingleLineCommand2.java:149)
        at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:55)
        at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:124)
        at net.sourceforge.plantuml.command.UmlDiagramFactory.executeFewLines(UmlDiagramFactory.java:128)
        at net.sourceforge.plantuml.command.UmlDiagramFactory.createSystem(UmlDiagramFactory.java:110)
        at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:123)
        at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:153)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:148)
        at net.sourceforge.plantuml.DirWatcher2$1.call(DirWatcher2.java:94)
        at net.sourceforge.plantuml.DirWatcher2$1.call(DirWatcher2.java:90)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
You should send a mail to plantuml@gmail.com or post to http://plantuml.com/qa with this log (V1.2020.00)

2 Answers

0 votes
answered Jan 15, 2020 by plantuml (294,960 points)
Sorry about that...
Could you post your diagram or a minimal example that is not working ?

Thanks,
commented Jan 15, 2020 by Mark Sawyer

This is a stripped down version of my UML that exhibits the exception.

@startuml

package MyFoo {
    class MyFoo.MyFoo
}
MyFoo -- Target

package My.Module {
    package My.Module.Defines {
    }
    class My.Module.Class {
    }
    My.Module.Class --> My.Module.Defines
}
My.Module --> MyFoo

@enduml
0 votes
answered Jan 15, 2020 by plantuml (294,960 points)

Many thanks for the report.

Preparing http://alphadoc.plantuml.com/doc/asciidoc/en/poll-about-package-and-namespace we've done some preliminary refactorings which were supposed to be safe (and which were not :-) )

Anyway, this is fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if you find other regressions.

Thanks again and sorry about that !

commented Jan 15, 2020 by msawye16 (140 points)
Problem solved ... Fixed ... and no worries ... you were very prompt in responding to my bug report.

Many thanks for your work on a great application.

/mbs
...