xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Cryder" <christi...@granitepeaks.com>
Subject Connection reset by peer exception
Date Wed, 15 Oct 2003 01:21:14 GMT
Hi folks,

I am using  Batik to try and render a document like this:

    //---Get a DOMImplementation
    DOMImplementation domImpl =

    //---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 );

    Writer writer = new OutputStreamWriter( outputStream, "UTF-8" );
    svgGenerator.stream( writer, false );


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

    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)

Any suggestions on what I'm doing wrong here? The problem occurs in both IE
and Mozilla...

Christian Cryder
Internet Architect, ATMReports.com
Project Chair, BarracudaMVC - http://barracudamvc.org
"Coffee? I could quit anytime, just not today"

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message