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

0 votes
asked Dec 9, 2019 in Bug by Nikesh
java.lang.IllegalArgumentException
	at net.sourceforge.plantuml.posimo.Path.<init>(Path.java:52)
	at net.sourceforge.plantuml.cucadiagram.dot.CucaDiagramTxtMaker.<init>(CucaDiagramTxtMaker.java:113)
	at net.sourceforge.plantuml.cucadiagram.CucaDiagram.createFilesTxt(CucaDiagram.java:456)
	at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:406)
	at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:201)
	at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
	at net.sourceforge.plantuml.servlet.DiagramResponse.sendDiagramInternal(DiagramResponse.java:185)
	at net.sourceforge.plantuml.servlet.DiagramResponse.sendDiagram(DiagramResponse.java:142)
	at net.sourceforge.plantuml.servlet.UmlDiagramService.doGet(UmlDiagramService.java:91)
	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.lang.Thread.run(Thread.java:724)
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 https://forum.plantuml.net/7799/problem-with-utxt-ascii-output-standard-commands-also-tscxml?show=7799#q7799

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 (https://www.planttext.com/) At this time, I do not know where to check the Version. I am using the same sample code from the web

@startuml
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
}

@enduml

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

@startuml

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

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

note right
this is a note
end note

@enduml

THe above code on converting to text yields the following

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

which does not show any arrows/direction
...