State diagrams do not work. I'm using Redmine with Jar files

0 votes
asked Oct 11, 2017 in Bug by anonymous

Hello,

I've installed the PlantUML plugin for Redmine and everything looks fine.

But I cannot make any State diagram to work. Examples:

[*] --> State1
State1 --> [*]
State1 : this is a string
State1 : this is another string

State1 -> State2
State2 --> [*]

(yes, I used the start and end tags)

The jar versions I've tested are:

plantuml-8059.jar

plantuml.1.2017.16.jar

This is the way I use it:

/usr/bin/java -Djava.io.tmpdir=/var/tmp -Djava.awt.headless=true -jar /var/www/redmine/plugins/plantuml/bin/20171003-plantuml.1.2017.16.jar ${@}

As I said before, every other diagram works fine, but not State diagrams.

Thanks for your help

 

 

 

1 Answer

0 votes
answered Oct 11, 2017 by plantuml (158,940 points)

So this is not working:
@startuml
[*] --> State1
@enduml


And this is working:
@startuml
class Foo
@enduml


Right ?
 

commented Oct 16, 2017 by anonymous
No. Fail too.
Activity diagram, Trees and Gantt works (the types I've tested successfully up to this point)
commented Oct 16, 2017 by plantuml (158,940 points)
Ok, this means there is an issue with your GraphViz installation.
See http://plantuml.com/graphviz-dot
Can you try the following diagram:
@startuml
testdot
@enduml
Thanks!
commented Oct 17, 2017 by anonymous
Graphviz installed. Now, some test works, some test fails, because uppercase letters. Example:

This fails:
[*] --> State1
State1 --> [*]
State1 : this is a string
State1 : this is another string

State1 -> State2
State2 --> [*]

This works:
[*] --> state1
State1 --> [*]
State1 : this is a string
State1 : this is another string

State1 -> State2
State2 --> [*]

(the difference is in the first line:
[*] --> State1
and
[*] --> state1

Regards,
Herman.
commented Oct 17, 2017 by anonymous
We've discovered that there is a cache issue here.
The fail examples works as soon as we change from png to svg.
;)
...