There is a problem when geting the TXT format for composite state diagram

0 votes
asked Dec 9, 2019 in Bug by Nikesh
	at net.sourceforge.plantuml.posimo.Path.<init>(
	at net.sourceforge.plantuml.cucadiagram.CucaDiagram.createFilesTxt(
	at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(
	at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(
	at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(
	at net.sourceforge.plantuml.servlet.DiagramResponse.sendDiagramInternal(
	at net.sourceforge.plantuml.servlet.DiagramResponse.sendDiagram(
	at net.sourceforge.plantuml.servlet.UmlDiagramService.doGet(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.eclipse.jetty.servlet.ServletHolder.handle(
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(
	at org.eclipse.jetty.servlet.ServletHandler.doScope(
	at org.eclipse.jetty.server.session.SessionHandler.doScope(
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(
	at org.eclipse.jetty.server.Server.handle(
	at org.eclipse.jetty.server.HttpChannel.handle(
	at org.eclipse.jetty.server.HttpConnection.onFillable(
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(
	at org.eclipse.jetty.util.thread.QueuedThreadPool$
commented Dec 10, 2019 by albert (2,900 points)
Looks to me that this is probably the same / similar / related to the problem as reported by me on June 14, 2018 at

My reported problem looks a bit different though.
commented Dec 10, 2019 by albert (2,900 points)
@Nikesh would be nice to have the version of plantuml you used as well as a small case.

1 Answer

0 votes
answered Dec 10, 2019 by Nikesh

I am using the Web version of the plantUML ( At this time, I do not know where to check the Version. I am using the same sample code from the web

title Simple Composite State Model
[*] --> NeilDiamond
state NeilDiamond

state "Neil Diamond" as NeilDiamond {
  state Dancing
  state Singing
  state Smiling
  Dancing --> Singing: hello
  Singing --> Smiling
  Smiling --> Dancing


And when i tried to convert to TXt , it showed the error message mentioned above.

Also, Additionaly, the txt diagram does not show arrows for simple diagram for example


title Simple State Model
[*] --> GlassEmpty
GlassEmpty --> [*]
GlassEmpty : Contents - void

GlassEmpty -> GlassFull
GlassFull : Water
GlassFull --> [*]

note right
this is a note
end note


THe above code on converting to text yields the following

,---------------.  ,---------.        
|GlassEmpty     |  |GlassFull|        
|---------------|  |---------|        
|Contents - void|--|Water    |        
|---------------|  |---------|        
`---------------'  `---------'        
             ,----.   ,--------------.
             |*end|   |this is a note|
             |----|   |--------------|
             `----'   `--------------'

which does not show any arrows/direction