de.laures.cewolf - IIOException:无法创建输出流

时间:2013-09-26 10:55:42

标签: java tomcat cewolf

我知道这是一个长镜头屁股很少继续下去,但任何人都有任何关于Cewolf图像渲染会导致这种异常的线索吗?

我想知道cewolf期待的是否有特定的位置/路径/文件夹或权限。

localhost.log

de.laures.cewolf.util.Renderer.renderChart

系统err.log

javax.imageio.IIOException: Can't create output stream

SEVERE: CewolfServlet: Can't create output stream!
de.laures.cewolf.ChartRenderingException: Can't create output stream!
    at de.laures.cewolf.util.Renderer.renderChart(Renderer.java:120)
...

Caused by: javax.imageio.IIOException: Can't create output stream!
    at javax.imageio.ImageIO.write(ImageIO.java:1560)
    at org.jfree.chart.encoders.SunPNGEncoderAdapter.encode(SunPNGEncoderAdapter.java:128)
    at org.jfree.chart.encoders.EncoderUtil.writeBufferedImage(EncoderUtil.java:137)
    at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:176)
    at de.laures.cewolf.util.Renderer.handlePNG(Renderer.java:142)
    at de.laures.cewolf.util.Renderer.renderChart(Renderer.java:108)
    ... 37 more
Caused by: javax.imageio.IIOException: Can't create cache file!
    at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
    at javax.imageio.ImageIO.write(ImageIO.java:1558)
    ... 42 more
Caused by: java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively(Native Method)
    at java.io.File.checkAndCreate(File.java:1705)
    at java.io.File.createTempFile0(File.java:1726)
    at java.io.File.access$100(File.java:120)
    at java.io.File$1.createTempFile(File.java:1955)
    at sun.misc.IOUtils.createTempFile(IOUtils.java:88)
    at javax.imageio.stream.FileCacheImageOutputStream.<init>(FileCacheImageOutputStream.java:71)
    at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(OutputStreamImageOutputStreamSpi.java:50)
    at javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
    ... 43 more
26-Sep-2013 03:38:26 org.apache.catalina.core.ApplicationContext log

这适用于我的机器,但不是我刚刚设置的新机器,但我没有做任何不同的事情。

提前干杯

KS

1 个答案:

答案 0 :(得分:0)

看起来应用程序尝试根据以下内容输出到不存在的目录:

Caused by: java.io.IOException: The system cannot find the path specified

希望它可以帮助你前进。

修改 哦,我现在看到你想知道那条路在哪里。在那里帮不了你。我认为它是在servlet中设置的。