W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

Logger not set.

From: Seema Bhatnagar <seema.bhatnagar@systor.com>
Date: Mon, 24 Jun 2002 09:26:30 +0200
To: www-xsl-fo@w3.org
Message-ID: <OF8D3BFD1F.2433C480-ONC1256BE2.0028A666@systor.com>

hello all,
My code is something like this:-

          XMLReader parser = XMLReaderFactory.createXMLReader
("org.apache.xerces.parsers.SAXParser");

          Driver driver = new org.apache.fop.apps.Driver();
          parser.setContentHandler(driver.getContentHandler());
          driver.setXMLReader(parser);
          driver.setRenderer(Driver.RENDER_PDF);
          ByteArrayOutputStream byteStream = new ByteArrayOutputStream();

          InputSource xmlfoInput = new InputSource(new
ByteArrayInputStream(outByte.toByteArray()));

          driver.setOutputStream(out);

          driver.addElementMapping
("org.apache.fop.fo.StandardElementMapping");
         driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
          driver.setOutputStream(out);

          driver.render(parser, xmlfoInput);

it prints an error message Logger not set but generating the PDF. Could
anybody tell me the reason.
Thanks,
seema
Received on Monday, 24 June 2002 03:27:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT