Hi folks, I am using Batik to try and render a document like this:
//---Get a DOMImplementation DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation(); //---Create an instance of org.w3c.dom.Document Document document = domImpl.createDocument( null, "svg", null ); //---Create an instance of the SVG Generator SVGGraphics2D svgGenerator = new SVGGraphics2D( document ); chart.setGraphics2D( svgGenerator ); chart.render(); Writer writer = new OutputStreamWriter( outputStream, "UTF-8" ); svgGenerator.stream( writer, false ); writer.flush(); writer.close(); The chart object here is an instance of jChart (Java charting framework that uses Batik). I am working in Win2k, JDK 1.4.2_01, Tomcat 4.1, and I'm not having a problem finding the libraries. Instead, when I get to this line here: svgGenerator.stream( writer, false ); I get the following exception: error encoding chart:org.apache.batik.svggen.SVGGraphics2DIOException: Connection reset by peer: socket write error org.apache.batik.svggen.SVGGraphics2DIOException: Connection reset by peer: socket write error at org.apache.batik.svggen.XmlWriter.writeXml(Unknown Source) at org.apache.batik.svggen.SVGGraphics2D.stream(Unknown Source) at org.apache.batik.svggen.SVGGraphics2D.stream(Unknown Source) at org.jCharts.encoders.SVGEncoder.encode(SVGEncoder.java:103) at org.jCharts.encoders.ServletEncoderHelper.encodeServlet(ServletEncoderHelper .java:76) Any suggestions on what I'm doing wrong here? The problem occurs in both IE and Mozilla... tia, Christian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]