You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/03/06 21:25:06 UTC
DO NOT REPLY [Bug 6933] New: -
getParser() NullPointer Problem in Code
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: fop-dev@xml.apache.org
ReportedBy: Drew.Felder@ams.com
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: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org