The command newpage in a use case diagram leads to a java exception

0 votes
asked Feb 13, 2014 in Bug by heiko_folkerts (120 points)
Saving the following code in a plain text file and running plantuml on it gives the java exception below. Removing the newpage command makes the exception to disappear.

Begin code:

@startuml qqq.png
 title Test für Anwendungsfälle
 usecase (irgendwas) as uc1
 usecase (Noch etwas) as uc2
 actor Tester
 Tester --> uc1
 newpage
 Tester --> uc2
@enduml

end code

 

The output on stderr for this is:

java.lang.UnsupportedOperationException: STILL_UNKNOWN
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.createEntityImageBlock(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.printEntityInternal(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.printEntity(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.printEntities(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.createFile(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(Unknown Source)
 at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(Unknown Source)
 at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(Unknown Source)
 at net.sourceforge.plantuml.UmlDiagram.exportDiagram(Unknown Source)
 at net.sourceforge.plantuml.NewpagedDiagram.exportDiagram(Unknown Source)
 at net.sourceforge.plantuml.PSystemUtils.exportDiagramsNewpaged(Unknown Source)
 at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(Unknown Source)
 at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(Unknown Source)
 at net.sourceforge.plantuml.Run.manageFileInternal(Unknown Source)
 at net.sourceforge.plantuml.Run.processArgs(Unknown Source)
 at net.sourceforge.plantuml.Run.manageAllFiles(Unknown Source)
 at net.sourceforge.plantuml.Run.main(Unknown Source)

1 Answer

0 votes
answered Feb 14, 2014 by plantuml (295,000 points)

Ok, thanks for the report.
We have fixed this in the following beta:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

However, in your case, you will have to use something like:

@startuml
title Test fur Anwendungsfalle
usecase (irgendwas) as uc1
usecase (Noch etwas) as uc2
actor Tester
Tester --> uc1
newpage
actor Tester
usecase (Noch etwas) as uc2
Tester --> uc2
@enduml

 
The main reason is that "newpage" keyword in that case starts a brand new context, as if it was a brand new diagram.
So you have to specify again the name of usecase.

This is not perfect, but at least it's working.
 

...