Re: javax.xml.transform.TransformerException: java.lang.NullPointerException
Hi, you should give further info to permit the audience to reproduce what you get: - FOP version - description of FOP inputs and environment - etc. 2015-09-22 21:58 GMT+02:00 Jim <supp...@hrsg.ca>: > Stack trace > > javax.servlet.ServletException: > javax.xml.transform.TransformerException: java.lang.NullPointerException > org.apache.fop.servlet.FopServlet.doGet(FopServlet.java:158) > javax.servlet.http.HttpServlet.service(HttpServlet.java:624) > javax.servlet.http.HttpServlet.service(HttpServlet.java:731) > > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > > > line 158 is throw new ServletException(ex); > > > public void doGet(HttpServletRequest request, > HttpServletResponse response) throws > ServletException { > try { > //Get parameters > String foParam = request.getParameter(FO_REQUEST_PARAM); > String xmlParam = request.getParameter(XML_REQUEST_PARAM); > String xsltParam = request.getParameter(XSLT_REQUEST_PARAM); > String rootParam = > request.getParameter(ROOT_REQUEST_PARAM); > > //Analyze parameters and decide with method to use > if (foParam != null) { > renderFO(foParam, response); > } else if ((xmlParam != null) && (xsltParam != null)) { > renderXML(xmlParam,xsltParam,rootParam,response); > } else { > response.setContentType("text/html"); > PrintWriter out = response.getWriter(); > out.println("Error\n" > + "FopServlet ErrorNo 'fo' > " > + "request param given."); > } > } catch (Exception ex) { > throw new ServletException(ex); > } > } > > > > - > To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org > For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org > -- pascal - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
javax.xml.transform.TransformerException: java.lang.NullPointerException
Stack trace javax.servlet.ServletException: javax.xml.transform.TransformerException: java.lang.NullPointerException org.apache.fop.servlet.FopServlet.doGet(FopServlet.java:158) javax.servlet.http.HttpServlet.service(HttpServlet.java:624) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) line 158 is throw new ServletException(ex); public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { //Get parameters String foParam = request.getParameter(FO_REQUEST_PARAM); String xmlParam = request.getParameter(XML_REQUEST_PARAM); String xsltParam = request.getParameter(XSLT_REQUEST_PARAM); String rootParam = request.getParameter(ROOT_REQUEST_PARAM); //Analyze parameters and decide with method to use if (foParam != null) { renderFO(foParam, response); } else if ((xmlParam != null) && (xsltParam != null)) { renderXML(xmlParam,xsltParam,rootParam,response); } else { response.setContentType("text/html"); PrintWriter out = response.getWriter(); out.println("Error\n" + "FopServlet ErrorNo 'fo' " + "request param given."); } } catch (Exception ex) { throw new ServletException(ex); } } - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
AW: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source
AW: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Mathieu, With my trunk from around December the fo file works fine. I get lots of Image not found: images/draft.png and the two font warnings, but the pdf is complete with TOC, title, spot and bookmarks. Which fop version are you using? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 09:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
This is the latest from debian: # apt-cache policy fop fop: Installed: 1:0.95.dfsg-7 Candidate: 1:0.95.dfsg-7 Version table: *** 1:0.95.dfsg-7 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status So I am guessing this is an official release. I'd like to know if anyone else is using fop 0.95 and can reproduce the bug ? I'd like to know if this is related to fop 0.95 OR the debian packaging of fop 0.95. Thanks a bunch ! On Wed, Feb 17, 2010 at 10:35 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, With my trunk from around December the fo file works fine. I get lots of Image not found: images/draft.png and the two font warnings, but the pdf is complete with TOC, title, spot and bookmarks. Which fop version are you using? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 09:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Hi Georg, Thanks a bunch for the info. I'll raise the issue on the debian package itself. fop is pretty much useless if one cannot even use a simple anchor/ element ! Just for info I did compare trunk to fop 0.95 using diff -u: $ diff -x .svn -ru fop-0_95 trunk | wc 149462 621452 5984407 There has been quite some changes ! On Wed, Feb 17, 2010 at 11:08 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, Now we are talking. I can reproduce your error with the 0.95 binary freshly downloaded from apache. On a Windows7-System. So it's not a debian problem but if you can switch to trunk, the problem is solved. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 10:53 An: fop-users@xmlgraphics.apache.org Cc: 570...@bugs.debian.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) This is the latest from debian: # apt-cache policy fop fop: Installed: 1:0.95.dfsg-7 Candidate: 1:0.95.dfsg-7 Version table: *** 1:0.95.dfsg-7 0 500 http://ftp.fr.debian.org sid/main Packages 100 /var/lib/dpkg/status So I am guessing this is an official release. I'd like to know if anyone else is using fop 0.95 and can reproduce the bug ? I'd like to know if this is related to fop 0.95 OR the debian packaging of fop 0.95. Thanks a bunch ! On Wed, Feb 17, 2010 at 10:35 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, With my trunk from around December the fo file works fine. I get lots of Image not found: images/draft.png and the two font warnings, but the pdf is complete with TOC, title, spot and bookmarks. Which fop version are you using? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 09:32 An: fop-users@xmlgraphics.apache.org Betreff: Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Hi Georg, Thank you very much for your help ! Here it is attached as gzip compressed. It was generated from the xml with: xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml Thanks again On Wed, Feb 17, 2010 at 9:25 AM, Georg Datterl gdatt...@geneon.de wrote: Hi Mathieu, can you post the fo file, please? I'd like to help, but I don't have your transformation file. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH: www.irs-nbg.de Willmy PrintMedia GmbH: www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 14:17 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section
java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:375)
Hi there, I have a new segfault for you: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title blockquote para The emphasis role=boldanchor id=example.anchor.1/anchor/emphasis element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target. /para /blockquote /section /article which results in the attached .fo file. which later leads to: $ ./fop test2.fo test2.pdf Feb 17, 2010 11:36:37 AM org.apache.fop.apps.FOURIResolver resolve SEVERE: Error with opening URL 'http://docbook.sourceforge.net/release/images/draft.png': Network is unreachable Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:9588) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10285) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10980) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:11672) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:12361) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13050) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13736) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:14427) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15118) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15806) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:16496) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17186) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17873) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:18563) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:19253) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:19940) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:20631) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:21322) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:22010) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font Symbol,normal,700 not found. Substituting with Symbol,normal,400. Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent WARNING: Font ZapfDingbats,normal,700 not found. Substituting with ZapfDingbats,normal,400. Feb 17, 2010 11:36:37 AM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130
AW: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:375)
Hi Mathieu, Now it starts to be a problem for the more experienced users or developers. I can see prevLM, which is the layout manager of an old element, is null. The old element is a KnuthInlineBox with position = null, maybe a footnote element, but I'm not sure. I guess, it's somehow related to linebreaking, since setting hyphenation to false avoids the problem. As far as I can see, you have two options at the moment. Either disable hyphenation for the block containing the anchor or wait for the cavalry to arrive. fo:block space-before.optimum=1em space-before.minimum=0.8em space-before.maximum=1.2em hyphenate=false The fo:inline font-weight=bold fo:inline id=example.anchor.1/anchor/fo:inline element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target. /fo:block Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Mittwoch, 17. Februar 2010 11:37 An: fop-users@xmlgraphics.apache.org Betreff: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:375) Hi there, I have a new segfault for you: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title blockquote para The emphasis role=boldanchor id=example.anchor.1/anchor/emphasis element is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target. /para /blockquote /section /article which results in the attached .fo file. which later leads to: $ ./fop test2.fo test2.pdf Feb 17, 2010 11:36:37 AM org.apache.fop.apps.FOURIResolver resolve SEVERE: Error with opening URL 'http://docbook.sourceforge.net/release/images/draft.png': Network is unreachable Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:9588) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10285) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:10980) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:11672) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:12361) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13050) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:13736) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:14427) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15118) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:15806) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:16496) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17186) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Image not found. URI: http://docbook.sourceforge.net/release/images/draft.png. (See position 2:17873) Feb 17, 2010 11:36:37 AM org.apache.fop.events.LoggingEventListener processEvent SEVERE
Re: SEVERE: Exception java.lang.NullPointerException
Georg, This is incorrect I use xsltproc as a first step for doing the --xinclude step. So the output is exactly what I get running fop directly on the fo file. I do not see any line number referenced. I also used the -d option as indicated by the documentation. $ /usr/bin/xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl /home/mathieu/Projects/csm/Doc/CoSMo/ReferenceGuide/article.xml ... $ /usr/bin/fop -d -fo /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo -pdf /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 1:27:19 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'. Feb 16, 2010 1:27:19 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340
AW: SEVERE: Exception java.lang.NullPointerException
Hi Mathieu, Can you shorten the fo file as much as possible and post it? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Dienstag, 16. Februar 2010 13:26 An: fop-users@xmlgraphics.apache.org Betreff: Re: SEVERE: Exception java.lang.NullPointerException Georg, This is incorrect I use xsltproc as a first step for doing the --xinclude step. So the output is exactly what I get running fop directly on the fo file. I do not see any line number referenced. I also used the -d option as indicated by the documentation. $ /usr/bin/xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl /home/mathieu/Projects/csm/Doc/CoSMo/ReferenceGuide/article.xml ... $ /usr/bin/fop -d -fo /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.fo -pdf /home/mathieu/Projects/csm/Doc/bin/CoSMo/ReferenceGuide/article.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:17 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 1:27:18 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 1:27:19 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 1:27:19 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'. Feb 16, 2010 1:27:19 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107
java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
Could someone please try this example on their setup: $ xsltproc --stringparam fop1.extensions 1 --stringparam ulink.show 0 --xinclude -o out.fo /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl ./test.xml $ fop -fo out.fo -pdf out.pdf with test.xml: ?xml version='1.0' encoding='UTF-8'? !DOCTYPE article PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; [] article section titletitle/title para anchor id=myidx xreflabel=mylabel/ /para /section /article I am getting: $ fop -fo out.fo -pdf out.pdf [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 2:17:27 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1102) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.xinclude.XIncludeHandler.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:485) at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:214) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) Thanks -- Mathieu - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h
Re: java.lang.NullPointerException: org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350)
If this helps, I converted it to docbook 5 with the same result: $ cat test5.xml article xmlns=http://docbook.org/ns/docbook; version=5.0 sectioninfotitletitle/title/info para The anchor elementanchor xml:id=example.anchor.1/ is empty and contributes nothing to the flow of the content in which it occurs. It is only useful as a target. /para /section /article $ fop -xsl /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/fo/docbook.xsl -xml test5.xml -pdf test5.pdf [warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java Feb 16, 2010 1:40:47 PM org.apache.fop.cli.InputHandler warning WARNING: Making portrait pages on USletter paper (8.5inx11in) Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:47 PM org.apache.fop.fo.properties.CommonBorderPaddingBackground init SEVERE: Background image not available: images/draft.png Feb 16, 2010 1:40:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 16, 2010 1:40:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 16, 2010 1:40:48 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree SEVERE: Couldn't find hyphenation pattern en Feb 16, 2010 1:40:48 PM org.apache.fop.fo.FOTreeBuilder fatalError SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException Feb 16, 2010 1:40:48 PM org.apache.fop.cli.Main startFOP SEVERE: Exception javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - ; SystemID: file:/usr/share/xml/docbook/stylesheet/docbook-xsl-ns/fo/docbook.xsl; Line#: 309; Column#: 54 javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405) at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376) at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395
SEVERE: Exception java.lang.NullPointerException
Hi there, I am starring at the following fop execption and I am wondering how I can track it down back to the original XML -culprit- line. Here it is: [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'. Feb 15, 2010 4:09:48 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement
AW: SEVERE: Exception java.lang.NullPointerException
Hi Mathieu, Your problem is, you go from xml to pdf in one step. The second step generates an error and the exact location of the error gets lost. You can locate the error by taking one step after the other. Take your XML file, apply transformation. The result is a fo file. This fo file can then generate a pdf (or an error, in your case), but fop will tell you the (more or less) exact location of the error. Other possibility: Look somewhere after the second occurrence of an italic text in ZapfDingbats font. Third possibility: check if hyphenation is installed correctly. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Mathieu Malaterre [mailto:mathieu.malate...@gmail.com] Gesendet: Montag, 15. Februar 2010 16:09 An: fop-users@xmlgraphics.apache.org Betreff: SEVERE: Exception java.lang.NullPointerException Hi there, I am starring at the following fop execption and I am wondering how I can track it down back to the original XML -culprit- line. Here it is: [warning] /usr/bin/fop: Unable to locate xml-apis in /usr/share/java Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:47 PM org.apache.fop.fo.flow.table.TableColumn bind WARNING: table-layout=fixed and column-width unspecified = falling back to proportional-column-width(1) Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstruction.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/ProtocolReconstructionGeneral.png Feb 15, 2010 4:09:48 PM org.apache.fop.fo.flow.ExternalGraphic bind SEVERE: Image not found: Protocols/Sketches/SimulationResultAnalysis.png Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Symbol,normal,700' not found. Substituting with 'Symbol,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,normal,700' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.layoutmgr.inline.LineLayoutManager$LineBreakingAlgorithm updateData2 WARNING: Line 1 of a paragraph overflows the available area by more than 50 points. (fo:block, location: 41/59) Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,400' not found. Substituting with 'ZapfDingbats,normal,400'. Feb 15, 2010 4:09:48 PM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'ZapfDingbats,italic,700' not found. Substituting with 'any,italic,700'. Feb 15, 2010 4:09:48 PM org.apache.fop.cli.Main startFOP SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at org.apache.fop.cli.Main.main(Main.java:197) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:294) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116
java.lang.NullPointerException in FOP 20.5
Hi, I can not upgrade to .95, so I am forced to use 20.5 for a project. I know .20.5 is out-dated, but I dont have any options. I have a strange error that occurs only when outputing graphics. If I produce the PDF without graphics, it runs fine. here is the error: java.lang.NullPointerException org.apache.fop.apps.FOPException: java.lang.NullPointerException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3363) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.ja va:427) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Sou rce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:191) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) here is my command line: java -Djava.endorsed.dirs=%LOCAL_COMP_HOME% -cp %LOCAL_COMP_HOME%fop;%LOCAL_COMP_HOME%Fop\fop.jar;%LOCAL_COMP_HOME%xml-apis.jar;%LOCAL_COMP_HOME%xercesImpl.jar;C%LOCAL_COMP_HOME%fop\batik.jar;%LOCAL_COMP_HOME%fop\avalon-framework-cvs-20020806.jar;%LOCAL_COMP_HOME%fop\jimi-1.0.jar;%LOCAL_COMP_HOME%fop\jai_core.jar;%LOCAL_COMP_HOME%fop\jai_codec.jar; -Xms256m -Xmx1056m org.apache.fop.apps.Fop -d -xml %1 -xsl %STYLESHEET_HOME%my-fo.xsl -pdf %1.pdfpause Thanks for the help. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-in-FOP-20.5-tp23946221p23946221.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: java.lang.NullPointerException in FOP 20.5
nevermind... I was missing a .class file for an extension! a bonekrusher wrote: Hi, I can not upgrade to .95, so I am forced to use 20.5 for a project. I know .20.5 is out-dated, but I dont have any options. I have a strange error that occurs only when outputing graphics. If I produce the PDF without graphics, it runs fine. here is the error: java.lang.NullPointerException org.apache.fop.apps.FOPException: java.lang.NullPointerException at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111) at org.apache.fop.apps.Fop.main(Fop.java:62) - java.lang.RuntimeException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3363) at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.ja va:427) at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(Unknown Source) at org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Sou rce) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:191) at org.apache.fop.apps.Driver.render(Driver.java:498) at org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:106) at org.apache.fop.apps.Fop.main(Fop.java:62) here is my command line: java -Djava.endorsed.dirs=%LOCAL_COMP_HOME% -cp %LOCAL_COMP_HOME%fop;%LOCAL_COMP_HOME%Fop\fop.jar;%LOCAL_COMP_HOME%xml-apis.jar;%LOCAL_COMP_HOME%xercesImpl.jar;C%LOCAL_COMP_HOME%fop\batik.jar;%LOCAL_COMP_HOME%fop\avalon-framework-cvs-20020806.jar;%LOCAL_COMP_HOME%fop\jimi-1.0.jar;%LOCAL_COMP_HOME%fop\jai_core.jar;%LOCAL_COMP_HOME%fop\jai_codec.jar; -Xms256m -Xmx1056m org.apache.fop.apps.Fop -d -xml %1 -xsl %STYLESHEET_HOME%my-fo.xsl -pdf %1.pdfpause Thanks for the help. -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-in-FOP-20.5-tp23946221p23946717.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: java.lang.NullPointerException
pdiop wrote: I need your help everybody. I am getting the following error while running fop on resin : java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at What version of FOP are you running? Can you provide a sample FO that causes the error (not XML + XSLT) Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException
I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. I am not exactly using a fo file ut a xslt with fo inside and a xml, here is the sample of the xslt file: ?xml version=1.0 encoding=ISO-8859-1? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; exclude-result-prefixes=fo xsl:output method=xml version=1.0 omit-xml-declaration=no indent=yes/ !-- inclusion -- xsl:include href=all.xsl/ xsl:template match=cahier fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=simpleA4 page-height=29.7cm page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm margin-right=2cm fo:region-body margin-bottom=1cm / fo:region-after extent=0.5cm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=simpleA4 initial-page-number=1 fo:static-content flow-name=xsl-region-after fo:block text-align=end font-size=70% font-weight=normal xsl:textPage /xsl:textfo:page-number/ /fo:block /fo:static-content fo:flow flow-name=xsl-region-body font-size=60% font-weight=normal line-height=10px xsl:call-template name=entete/ !-- Début de la cration -- xsl:apply-templates select=cours/ xsl:apply-templates select=professeur/ xsl:call-template name=line/ xsl:if test=presentation/* xsl:apply-templates select=definition/ xsl:call-template name=space/ /xsl:if xsl:if test=coordonnees/* xsl:apply-templates select=adresse/ xsl:call-template name=space/ /xsl:if xsl:if test=materiel/* xsl:apply-templates select=contenu/ xsl:call-template name=space/ /xsl:if xsl:if test=evaluations/* xsl:apply-templates select=examens/ xsl:call-template name=space/ /xsl:if xsl:if test=/[EMAIL PROTECTED] xsl:call-template name=lois / xsl:call-template name=space/ /xsl:if xsl:if test=cours/* xsl:apply-templates select=cours/ /xsl:if /fo:flow /fo:page-sequence /fo:root /xsl:template I must also say that the program is running fine in a standalone version (web project) but once I integrate to a bigger project with lot of things in it I get the error. cbowditch wrote: pdiop wrote: I need your help everybody. I am getting the following error while running fop on resin : java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at What version of FOP are you running? Can you provide a sample FO that causes the error (not XML + XSLT) Thanks, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-tp16713234p16721673.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException
- Oorspronkelijk bericht - Van: pdiop [mailto:[EMAIL PROTECTED] Hi, Note that Chris has asked a *FO*, not a stylesheet. Reason why we always ask the *result* of the XSL transform, is that the step of transforming the base XML into FO is actually not done by FOP. On top of that, we cannot possibly reproduce your issue with a stylesheet alone. We'd need at least the included stylesheet and a sample XML. I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. Java 1.4.2? Which build? Is it the Sun JVM, or a different vendor? I am not exactly using a fo file ut a xslt with fo inside and a xml, here is the sample of the xslt file: snip / I must also say that the program is running fine in a standalone version (web project) but once I integrate to a bigger project with lot of things in it I get the error. I don't think the problem is situated in the FO itself. I suspect the issue is caused by the combination of XML parser and XSLT processor in the environment. Sun Java, for example, ships with versions of Xerces and Xalan, and in some (mainly older) builds, the included versions are a bit buggy. Try to make sure that the 'bigger' environment is using the same combination as in your local test. No idea how to configure this in Resin, but for the standard Java way, google around for 'Java endorsed' or 'Java bootclasspath'. HTH! Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.NullPointerException
I agree with Andreas' observations. Looking at the source code of 0.94, the SAX delegate is probably null which would suggest that this Caucho SAXBuilder class didn't call startDocument() before starting with startElement() calls. So, probably a breach of the SAX ContentHandler contract by the caller. On 16.04.2008 15:47:03 andreas.delmelle wrote: - Oorspronkelijk bericht - Van: pdiop [mailto:[EMAIL PROTECTED] Hi, Note that Chris has asked a *FO*, not a stylesheet. Reason why we always ask the *result* of the XSL transform, is that the step of transforming the base XML into FO is actually not done by FOP. On top of that, we cannot possibly reproduce your issue with a stylesheet alone. We'd need at least the included stylesheet and a sample XML. I am using Fop 0.94 with Resin 2.1.17 an Java 1.4. Java 1.4.2? Which build? Is it the Sun JVM, or a different vendor? I am not exactly using a fo file ut a xslt with fo inside and a xml, here is the sample of the xslt file: snip / I must also say that the program is running fine in a standalone version (web project) but once I integrate to a bigger project with lot of things in it I get the error. I don't think the problem is situated in the FO itself. I suspect the issue is caused by the combination of XML parser and XSLT processor in the environment. Sun Java, for example, ships with versions of Xerces and Xalan, and in some (mainly older) builds, the included versions are a bit buggy. Try to make sure that the 'bigger' environment is using the same combination as in your local test. No idea how to configure this in Resin, but for the standard Java way, google around for 'Java endorsed' or 'Java bootclasspath'. HTH! Cheers Andreas Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.NullPointerException
I need your help everybody. I am getting the following error while running fop on resin : java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:290) at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185) at com.caucho.xml.SAXBuilder.popElement(SAXBuilder.java:291) at com.caucho.xml.SAXBuilder.pop(SAXBuilder.java:277) at com.caucho.xml.SAXBuilder.startElement(SAXBuilder.java:187) at com.caucho.xsl.XslWriter.startElement(XslWriter.java:1044) at com.caucho.xsl.XslWriter.pushElement(XslWriter.java:443) at xsl._file_23a._._._c_23a._._plancours._plancours__xsl._xsl_template_39(_plancours__xsl.java:2017) at _xsl._file_23a._._._c_23a._plancours._plancours__xsl.applyNode(_plancours__xsl.java:2864) at _xsl._file_23a._._._c_23a.._plancours._plancours__xsl.applyNode(_plancours__xsl.java:2894) at com.caucho.xsl.StylesheetImpl.transform(StylesheetImpl.java:205) at com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:480) at com.caucho.xsl.TransformerImpl.transform(TransformerImpl.java:330) at pdf.PdfServlet.render(PdfServlet.java:106) at pdf.PdfServlet.renderXML(PdfServlet.java:86) at _pdf._pdfcontent__jsp._jspService(pdf/pdfContent.jsp:15) at com.caucho.jsp.JavaPage.service(JavaPage.java:75) at com.caucho.jsp.Page.subservice(Page.java:506) at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182) at com.caucho.server.http.Invocation.service(Invocation.java:315) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:253) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:171) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:534) -- View this message in context: http://www.nabble.com/java.lang.NullPointerException-tp16713234p16713234.html Sent from the FOP - Users mailing list archive at Nabble.com.
Re: FOP 0.95 BETA - java.lang.NullPointerException
Hi, I submitted a bug and uploaded a test.fo which may be causing the issue. Bug#: 44796 Regards, Andreas Delmelle-2 wrote: On Apr 4, 2008, at 15:34, bonekrusher wrote: Hi Not sure if this should be posted under bugs or sent to the list. If I am in error, please let me know. Running a transformation under FOP 0.95 BETA I receive the below error. However under FOP .094 I can produce a PDF. Can you post (or otherwise share) the FO with us, so that we can look into it? If you want, you can open up a Bugzilla-entry and attach the FO there. Thanks Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/FOP-0.95-BETA---java.lang.NullPointerException-tp16491465p16608358.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerException: java.lang.NullPointerException
Hello Jeremias, Are you saying that I should generate FO file from command line and share it with you? If not, can you please let me know from where I can get the FO file? I am using FOP 0.94 version. With Thanks! Newkid Jeremias Maerki-2 wrote: please just run the XSLT stage and take a look at the FO file that you generate with your stylesheet. -- View this message in context: http://www.nabble.com/javax.xml.transform.TransformerException%3A-java.lang.NullPointerException-tp16577116p16585362.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerException: java.lang.NullPointerException
Yes, that's what I'm saying. You can also do it in your application if you embedded FOP. From the command-line, you can do: fop -xml myxml.xml -xsl myxsl.xsl -foout out.fo This just runs the XSLT transformation. We usually don't like XML + XSLT because there are all sorts of things that can go wrong and it's more work to set it up in a test environment. If we just get the FO, we can more easily reproduce any problem (depending on the case, any images may also need to be made available). On the other hand, if you just run the XSLT stage you can verify yourself what your stylesheet produces and you can figure out what needs to be changed (This is certainly the first step before sending us the FO). HTH On 09.04.2008 15:08:22 Newkid wrote: Hello Jeremias, Are you saying that I should generate FO file from command line and share it with you? If not, can you please let me know from where I can get the FO file? I am using FOP 0.94 version. With Thanks! Newkid Jeremias Maerki-2 wrote: please just run the XSLT stage and take a look at the FO file that you generate with your stylesheet. -- View this message in context: http://www.nabble.com/javax.xml.transform.TransformerException%3A-java.lang.NullPointerException-tp16577116p16585362.html Sent from the FOP - Users mailing list archive at Nabble.com. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: javax.xml.transform.TransformerException: java.lang.NullPointerException
Hello Jeremias, I have attached the FO file with this reply for your reference. I am unable to find out the cause of the exceptions as all look pretty fine to me. Please advice. With Thanks! Newkid Jeremias Maerki-2 wrote: Yes, that's what I'm saying. You can also do it in your application if you embedded FOP. From the command-line, you can do: fop -xml myxml.xml -xsl myxsl.xsl -foout out.fo This just runs the XSLT transformation. We usually don't like XML + XSLT because there are all sorts of things that can go wrong and it's more work to set it up in a test environment. If we just get the FO, we can more easily reproduce any problem (depending on the case, any images may also need to be made available). On the other hand, if you just run the XSLT stage you can verify yourself what your stylesheet produces and you can figure out what needs to be changed (This is certainly the first step before sending us the FO). HTH http://www.nabble.com/file/p16601756/TestOutput.fo TestOutput.fo -- View this message in context: http://www.nabble.com/javax.xml.transform.TransformerException%3A-java.lang.NullPointerException-tp16577116p16601756.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FOP 0.95 BETA - java.lang.NullPointerException
On Apr 8, 2008, at 20:54, bonekrusher wrote: I can not post the FO as it has some sensative data. I will try to recreate the problem and post a bug. Thanks for the guidance. No problem. Did you also try running FOP with the -d command-line option? Did you receive a stack-trace with the exception? If so, can you post that? Maybe that could already provide us with a clue as to which part of the code triggers the NPE. Cheers Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.xml.transform.TransformerException: java.lang.NullPointerException
Hi there! Can any one put some lights on the below mention concern? Apr 9, 2008 4:27:59 AM org.apache.fop.fo.FOTreeBuilder fatalError SEVERE: java.lang.NullPointerException javax.xml.transform.TransformerException: java.lang.NullPointerException at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1276) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) at XML2PDF.main(XML2PDF.java:130) Caused by: java.lang.NullPointerException at org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264) at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:192) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1224) ... 4 more - java.lang.NullPointerException at org.apache.fop.area.AreaTreeHandler.endDocument(AreaTreeHandler.java:264) at org.apache.fop.fo.FOTreeBuilder.endDocument(FOTreeBuilder.java:171) at org.apache.xalan.transformer.ResultTreeHandler.endDocument(ResultTreeHandler.java:192) at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1224) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:668) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1129) at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1107) at XML2PDF.main(XML2PDF.java:130) I'm getting the same when I passed a Binarystream instead of XML file to XSLT transformation as input.. i.e. // Providing BinaryStream of data as input to XSLT transformation Source src = new StreamSource(BinaryStream); Result res = new SAXResult(fop.getDefaultHandler()); transformer.transform(src, res); Please advice. With Thanks! Newkid -- View this message in context: http://www.nabble.com/javax.xml.transform.TransformerException%3A-java.lang.NullPointerException-tp16577116p16577116.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
SystemId Unknown; java.lang.NullPointerException
Hi I get a very strange error SystemId Unknown; Line #1; Column #1020; java.lang.NullPointerException in FOP 0.94 embedded mode and found out that the issue is fixed in FOP 0.95beta1. Unfortunately beta1 is not really usable yet as all my fonts are enlarged and the pages are shrunken, etc. The error above must be related to AWTRenderer or MIME_FOP_AWT_PREVIEW related methods. The error appears if I use AWTRenderer and then afterwards try to save any xsl-fo based PDF file to disk via Fop fop = GlobalObjects.obtainFopFactory().newFop(MimeConstants.MIME_PDF, userAgent, outputStream)... After using AWTRenderer I have to exit the JVM to get the file creation working again. As soon as I preview MIME_PDF does not work any longer. I wonder if there is any chance that I could get a patch, or a hint where to fix the code. I could then do to build on my own. If this is not possible, could you let me know when 0.95 is scheduled to be released? It took me 5 days to change all our xsl-foo and related Java code to version 0.94 compatibility. Therefore I cannot go back to version 0.20.5. Your help in this is greatly appreciated. Best regards Daniel Putra South Africa
FOP 0.95 BETA - java.lang.NullPointerException
Hi, Not sure if this should be posted under bugs or sent to the list. If I am in error, please let me know. Running a transformation under FOP 0.95 BETA I receive the below error. However under FOP .094 I can produce a PDF. SEVERE: Exception java.lang.NullPointerException at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:217) at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:125) at org.apache.fop.cli.Main.startFOP(Main.java:166) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.fop.cli.Main.startFOPWithDynamicClasspath(Main.java:132) at org.apache.fop.cli.Main.main(Main.java:199) - java.lang.NullPointerException at org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.applyChanges(InlineStackingLayoutManager.java:350) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findHyphenationPoints(LineLayoutManager.java:1480) at org.apache.fop.layoutmgr.inline.LineLayoutManager.findOptimalBreakingPoints(LineLayoutManager.java:950) at org.apache.fop.layoutmgr.inline.LineLayoutManager.createLineBreaks(LineLayoutManager.java:917) at org.apache.fop.layoutmgr.inline.LineLayoutManager.getNextKnuthElements(LineLayoutManager.java:607) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:60) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:218) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:170) at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:246) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.table.TableCellLayoutManager.getNextKnuthElements(TableCellLayoutManager.java:170) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.createElementsForRowGroup(RowGroupLayoutManager.java:120) at org.apache.fop.layoutmgr.table.RowGroupLayoutManager.getNextKnuthElements(RowGroupLayoutManager.java:60) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getKnuthElementsForRowIterator(TableContentLayoutManager.java:226) at org.apache.fop.layoutmgr.table.TableContentLayoutManager.getNextKnuthElements(TableContentLayoutManager.java:170) at org.apache.fop.layoutmgr.table.TableLayoutManager.getNextKnuthElements(TableLayoutManager.java:246) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.BlockStackingLayoutManager.getNextKnuthElements(BlockStackingLayoutManager.java:289) at org.apache.fop.layoutmgr.BlockLayoutManager.getNextKnuthElements(BlockLayoutManager.java:116) at org.apache.fop.layoutmgr.FlowLayoutManager.getNextKnuthElements(FlowLayoutManager.java:107) at org.apache.fop.layoutmgr.PageBreaker.getNextKnuthElements(PageBreaker.java:145) at org.apache.fop.layoutmgr.AbstractBreaker.getNextBlockList(AbstractBreaker.java:552) at org.apache.fop.layoutmgr.PageBreaker.getNextBlockList(PageBreaker.java:137) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:302) at org.apache.fop.layoutmgr.AbstractBreaker.doLayout(AbstractBreaker.java:264) at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:106) at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:234) at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:123) at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:340) at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:169) at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101
Re: FOP 0.95 BETA - java.lang.NullPointerException
On Apr 4, 2008, at 15:34, bonekrusher wrote: Hi Not sure if this should be posted under bugs or sent to the list. If I am in error, please let me know. Running a transformation under FOP 0.95 BETA I receive the below error. However under FOP .094 I can produce a PDF. Can you post (or otherwise share) the FO with us, so that we can look into it? If you want, you can open up a Bugzilla-entry and attach the FO there. Thanks Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]