"ASCII ART" - title produces a java.lang.IllegalStateException

0 votes
asked Dec 22, 2022 in Bug by kirchsth (6,660 points)

If I try to get the current version of the PlantUML web server as "ASCII art", it returns a java.lang.IllegalStateException.

@startuml
title %version()
@enduml

http://www.plantuml.com/plantuml/txt/SoWkIImgAStDuIh9BCb9LL0jIoqgpipFqz3aSaZDIm5A0000

java.lang.IllegalStateException: net.sourceforge.plantuml.posimo.Cluster@5f6e833a
	at net.sourceforge.plantuml.posimo.DotxMaker.printCluster(DotxMaker.java:77)
	at net.sourceforge.plantuml.posimo.DotxMaker.createDotString(DotxMaker.java:64)
	at net.sourceforge.plantuml.posimo.GraphvizSolverB.solve(GraphvizSolverB.java:89)
	at net.sourceforge.plantuml.cucadiagram.dot.CucaDiagramTxtMaker.<init>(CucaDiagramTxtMaker.java:116)
	at net.sourceforge.plantuml.baraye.CucaDiagram.createFilesTxt(CucaDiagram.java:670)
	at net.sourceforge.plantuml.baraye.CucaDiagram.exportDiagramInternal(CucaDiagram.java:612)
	at net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:188)
	at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:135)
	at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:179)
	at net.sourceforge.plantuml.servlet.DiagramResponse.sendDiagram(DiagramResponse.java:159)
	at net.sourceforge.plantuml.servlet.UmlDiagramService.doGet(UmlDiagramService.java:98)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:717)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1644)
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:164)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1615)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:479)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:459)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:281)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)
	at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
	at java.base/java.lang.Thread.run(Thread.java:832)

1 Answer

0 votes
answered Dec 22, 2022 by The-Lu (70,400 points)
selected Dec 22, 2022 by kirchsth
 
Best answer

Hello K., and all,

Yes there seems to be a defect.

Then here is a possible workaround using creole, as:

@startcreole
%version()
@endcreole

Enjoy,
Regards.

commented Dec 22, 2022 by kirchsth (6,660 points)
Hi The-Lu,
thank you that is a very good workaround.
BR Helmut
...