keepTmpFiles="true" => FileNotFoundException: svek.dot (access is denied)

0 votes
asked Feb 25, 2014 in Bug by fred (540 points)
Hello,
 
When testing latest beta (from answer to http://plantuml.sourceforge.net/qa/?qa=1638/rectangle-package-with-title-compartment ) I stumbled accross the following exception:
 
    [plantuml] java.io.FileNotFoundException: svek.dot (access is denied)
    [plantuml] at java.io.FileOutputStream.open(Native Method)
    [plantuml] at java.io.FileOutputStream.<init>(Unknown Source)
    [plantuml] at java.io.FileOutputStream.<init>(Unknown Source)
    [plantuml] at java.io.FileWriter.<init>(Unknown Source)
    [plantuml] at net.sourceforge.plantuml.svek.SvekUtils.traceString(SvekUtils.java:62)
    [plantuml] at net.sourceforge.plantuml.svek.SvekUtils.traceDotString(SvekUtils.java:56)
    [plantuml] at net.sourceforge.plantuml.svek.DotStringFactory.getSvg(DotStringFactory.java:250)
    [plantuml] at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek2.createFile(CucaDiagramFileMakerSvek2.java:197)
    [plantuml] at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:130)
    [plantuml] at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:104)
    [plantuml] at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:299)
    [plantuml] at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:222)
    [plantuml] at net.sourceforge.plantuml.PSystemUtils.exportDiagramsCuca(PSystemUtils.java:202)
    [plantuml] at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:65)
    [plantuml] at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:130)
    [plantuml] at net.sourceforge.plantuml.ant.PlantUmlTask.doFile(PlantUmlTask.java:202)
    [plantuml] at net.sourceforge.plantuml.ant.PlantUmlTask.processingSingleFile(PlantUmlTask.java:188)
    [plantuml] at net.sourceforge.plantuml.ant.PlantUmlTask.manageFileSet(PlantUmlTask.java:160)
    [plantuml] at net.sourceforge.plantuml.ant.PlantUmlTask.execute(PlantUmlTask.java:107)
    [plantuml] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [plantuml] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [plantuml] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [plantuml] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [plantuml] at java.lang.reflect.Method.invoke(Unknown Source)
    [plantuml] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [plantuml] at org.apache.tools.ant.Task.perform(Task.java:348)
    [plantuml] at org.apache.tools.ant.Target.execute(Target.java:392)
    [plantuml] at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [plantuml] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [plantuml] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [plantuml] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    ...
 
(message too long => see rest of stack trace in comment below)
 
Note that this happened when running PlantUML from an ant script under Eclipse (with same JRE set to true). I am not sure this would happen in other situations.
 
Note also that PlantUML is actually able to write files because it does write the PNG file (just not svek.dot for some reason).
 
I believe I had a similar issue with a previous version of PlantUML, but I can only confirm it with the latest beta.
 
 
Regards,
 
Fred
commented Feb 25, 2014 by fred (540 points)
[plantuml]  at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [plantuml]  at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [plantuml]  at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:672)
    [plantuml]  at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:498)
    [plantuml]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [plantuml]  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [plantuml]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [plantuml]  at java.lang.reflect.Method.invoke(Unknown Source)
    [plantuml]  at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
    [plantuml]  at org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:284)
    [plantuml]  at java.lang.Thread.run(Unknown Source)

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...