Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-998

Invalid byte 1 of 1-byte UTF-8 sequence Exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.6
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      Operating System: Solaris
      Platform: Sun

      Description

      Hi

      I face the below exception when we use Batik jars with Birt whe we call the below lines and it makes my log Big because on each report view its printed in log.
      how we can solve this exception ? or catch it ?

      TranscoderOutput output = new TranscoderOutput( ostream );
      transcoder.transcode( input, output );

      i got this exception :

      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: java.io.IOException: Invalid byte 1 of 1-byte UTF-8 sequence.
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown Source)
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown Source)
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
      ERROR [09 13 2011 17:27:08.581 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
      ERROR [09 13 2011 17:27:08.582 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.eclipse.birt.report.engine.util.SvgFile.transSvgToArray(SvgFile.java:80)
      ERROR [09 13 2011 17:27:08.582 EEST] - Throwable.printStackTrace - >>>>>>>>SOut: at org.eclipse.birt.report.engine.util.SvgFile.transSvgToArray(SvgFile.java:58)

      Best regards

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              wmashal@gmail.com Wael Mashal
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: