DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6933>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6933 getParser() NullPointer Problem in Code Summary: getParser() NullPointer Problem in Code Product: Fop Version: 0.20.1 Platform: PC OS/Version: Windows 9x Status: NEW Severity: Blocker Priority: Other Component: pdf renderer AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When I try to get to use the getParser in the Fop InputHandler method it is throwing a null pointer somewhere in this method I believe. This is preventing it from generating the pdf. I used this code on the command line app which worked, but when embedding it in a java application it gets hung up at this point. The version of fop being used is 0.20.1 . //render as pdf driver = new Driver(); driver.setRenderer(Driver.RENDER_PDF); //get xml file created file_XML = new File(getFileLocation(XMLEXT)); //set where userconfig.xml is located Options op = new Options(); op.loadUserconfiguration("C:\\apachedev\\Fop-0.20.1 \\conf\\userconfig.xml"); //get xsl file file_XSLT = new File(getFileLocation(XSLEXT)); //create the pdf inputHandler = new XSLTInputHandler(file_XML, file_XSLT); parser = inputHandler.getParser(); driver.setOutputStream(new FileOutputStream (getFileLocation(PDFEXT))); driver.render(parser, inputHandler.getInputSource()); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
