Problems when I try to use the plantuml.jar to get the simplest sequence diagram. How to solve the problem?

0 votes
asked Dec 6, 2013 in To be sorted by anonymous
 
li@SanSan:~/lsm/Emacs$ java -jar plantuml.jar -verbose sequenceDiagram.txt
 
(0.000 - 2 Mo) 0 Mo - PlantUML Version 7986
(0.011 - 2 Mo) 0 Mo - GraphicsEnvironment.isHeadless() false
(0.018 - 3 Mo) 0 Mo - Setting current dir: .
(0.019 - 3 Mo) 0 Mo - Setting current dir: /home/li/lsm/Emacs
(0.020 - 3 Mo) 0 Mo - Using default charset
(0.022 - 3 Mo) 0 Mo - Setting current dir: /home/li/lsm/Emacs
(0.025 - 3 Mo) 0 Mo - Setting current dir: /home/li/lsm/Emacs
(0.025 - 3 Mo) 0 Mo - Reading file: sequenceDiagram.txt
Exception in thread "main" java.util.regex.PatternSyntaxException: At position 5 in regular expression pattern:
repeated token is zero-width assertion
(?:\s*(\<{2}.*\>{2}))?
    ^
   at java.util.regex.Pattern.<init>(libgcj.so.12)
   at java.util.regex.Pattern.compile(libgcj.so.12)
   at net.sourceforge.plantuml.command.regex.RegexLeaf.<init>(Unknown Source)
   at net.sourceforge.plantuml.classdiagram.command.CommandCreateClass.getRegexConcat(Unknown Source)
   at net.sourceforge.plantuml.classdiagram.command.CommandCreateClass.<init>(Unknown Source)
   at net.sourceforge.plantuml.classdiagram.ClassDiagramFactory.createCommands(Unknown Source)
   at net.sourceforge.plantuml.command.UmlDiagramFactory.<init>(Unknown Source)
   at net.sourceforge.plantuml.command.UmlDiagramFactory.<init>(Unknown Source)
   at net.sourceforge.plantuml.classdiagram.ClassDiagramFactory.<init>(Unknown Source)
   at net.sourceforge.plantuml.PSystemBuilder.getAllFactories(Unknown Source)
   at net.sourceforge.plantuml.PSystemBuilder.createPSystem(Unknown Source)
   at net.sourceforge.plantuml.BlockUml.createSystem(Unknown Source)
   at net.sourceforge.plantuml.BlockUml.getSystem(Unknown Source)
   at net.sourceforge.plantuml.BlockUml.getDiagram(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)
Caused by: gnu.java.util.regex.REException: At position 5 in regular expression pattern:
repeated token is zero-width assertion
   at gnu.java.util.regex.RE.initialize(libgcj.so.12)
   at gnu.java.util.regex.RE.<init>(libgcj.so.12)
   at gnu.java.util.regex.RE.initialize(libgcj.so.12)
   at gnu.java.util.regex.RE.<init>(libgcj.so.12)
   at gnu.java.util.regex.RE.initialize(libgcj.so.12)
   at gnu.java.util.regex.RE.<init>(libgcj.so.12)
   at gnu.java.util.regex.RE.<init>(libgcj.so.12)
   at java.util.regex.Pattern.<init>(libgcj.so.12)
   ...18 more
 

1 Answer

0 votes
answered Dec 6, 2013 by plantuml (211,860 points)

I would say that this is caused by your version of Java.

Could you tell us which one are you using:
java -version

We have slightly change the regex, so the following version may work better:
https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

Anyway, since it has obviously never been tested with your Java implementation, it's likely to crash somewhere else.
Just keep us informed.

Thanks,
 

...