graphviz dot exeutable not found

0 votes
asked Feb 9 in Question / help by Hicham

java.lang.NullPointerExceptionnet.sourceforge.plantuml.cucadiagram.dot.AbstractGraphviz.findExecutableOnPath(AbstractGraphviz.java:57)
net.sourceforge.plantuml.cucadiagram.dot.AbstractGraphviz.searchDotExe(AbstractGraphviz.java:78)
net.sourceforge.plantuml.cucadiagram.dot.AbstractGraphviz.<init>(AbstractGraphviz.java:70)
net.sourceforge.plantuml.cucadiagram.dot.GraphvizLinux.<init>GraphvizLinux.java:43)
net.sourceforge.plantuml.cucadiagram.dot.GraphvizUtils.create(GraphvizUtils.java:79)
net.sourceforge.plantuml.svek.DotStringFactory.getGraphvizVersionInternal(DotStringFactory.java:283)
net.sourceforge.plantuml.svek.DotStringFactory.getGraphvizVersion(DotStringFactory.java:277)
net.sourceforge.plantuml.svek.GeneralImageBuilder.printEntityInternal(GeneralImageBuilder.java:306)
net.sourceforge.plantuml.svek.GeneralImageBuilder.printEntity(GeneralImageBuilder.java:285)
net.sourceforge.plantuml.svek.GeneralImageBuilder.printEntities(GeneralImageBuilder.java:277)
net.sourceforge.plantuml.svek.GeneralImageBuilder.printGroup(GeneralImageBuilder.java:533)
net.sourceforge.plantuml.svek.GeneralImageBuilder.printGroups(GeneralImageBuilder.java:495)
net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:146)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:103)
net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:69)
net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:377)
net.sourceforge.plantuml.classdiagram.ClassDiagram.exportDiagramInternal(ClassDiagram.java:191)
net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:236)
net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:133)
net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(PSystemUtils.java:234)
net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:90)
net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:155)
net.sourceforge.plantuml.Run.manageFileInternal(Run.java:506)
net.sourceforge.plantuml.Run.processArgs(Run.java:401)
net.sourceforge.plantuml.Run.manageAllFiles(Run.java:370)
net.sourceforge.plantuml.Run.main(Run.java:186)

Getting this error in findExecutableOnPath

The httpd process that runs this mediawiki has  

PATH=....:/usr/bin

>>>ls -la /usr/bin/dot
-rwxr-xr-x. 1 root root 16648 Jul 31  2019 /usr/bin/dot

>>>rpm -qv plantuml
plantuml-1.2019.1-2.fc31.noarch

Looking at https://github.com/plantuml/plantuml/blob/v1.2019.1/src/net/sourceforge/plantuml/cucadiagram/dot/AbstractGraphviz.java

line 57 points nowhere. is that the right version?

1 Answer

0 votes
answered Feb 10 by plantuml (213,160 points)

Can you double-check your PlantUML version, using:

@startuml
version
@enduml

My guess is that you are not running last version.

...