我在這個代碼獲得以下異常, 請你幫我,javax.imageio.IIOException:無法創建輸出流! (在Java)
javax.imageio.IIOException: Can't create output stream!
de.laures.cewolf.ChartRenderingException: Can't create output stream!
javax.servlet.jsp.JspException: Can't create output stream!
at de.laures.cewolf.taglib.tags.ChartMapTag.doStartTag(ChartMapTag.java:117)
代碼如下
try {
Dataset dataset = PageUtils.getDataset(chartId, pageContext);
Writer out = pageContext.getOut();
final boolean isIE = BrowserDetection.isIE((HttpServletRequest) pageContext.getRequest());
if (hasToolTips()) {
enableToolTips(out, isIE);
}
out.write("<MAP name=\"" + chartId + "\">\n");
ChartRenderingInfo info = (ChartRenderingInfo) root.getRenderingInfo();
Iterator entities = info.getEntityCollection().iterator();
while (entities.hasNext()) {
ChartEntity ce = (ChartEntity) entities.next();
out.write("\n<AREA shape=\"" + ce.getShapeType() + "\" ");
out.write("COORDS=\"" + ce.getShapeCoords() + "\" ");
if (ce instanceof XYItemEntity)
{
dataset = ((XYItemEntity)ce).getDataset();
}
if (!(ce instanceof LegendItemEntity)) {
if (hasToolTips()) {
writeOutToolTip(dataset, out, isIE, ce);
}
if (hasLinks()) {
writeOutLink(linkGenerator, dataset, out, ce);
}
}
out.write(">");
}
堆棧跟蹤不包括,我使用的是Oracle 10服務器,更多的有用信息,可以請你告訴我怎麼給訪問權限,並在那裏將是這個臨時文件夾 – manoj 2010-08-12 06:26:51
你好,你能告訴我關於訪問權限,以及我必須給予訪問權限嗎? – manoj 2010-08-16 07:12:49