Dear all, i am getting following exception in this code, please do help me ,
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)
the code is as below
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(">");
}