我知道这是一个长镜头,几乎没有什么可做的,但是有人知道什么会导致 Cewolf 图像渲染出现这种异常吗?
我想知道 cewolf 是否有任何特定的位置/路径/文件夹或权限。
本地主机日志
de.laures.cewolf.util.Renderer.renderChart
系统错误日志
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