Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1521

FOP-0.95-BETA - org.apache.fop.fo.ValidationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Incomplete
    • 2.5
    • None
    • fo/unqualified
    • None
    • Operating System: Windows XP
      Platform: PC
    • 44796

    Description

      Hi,

      This bug is related to post http://www.nabble.com/FOP-0.95-BETA---java.lang.NullPointerException-ts16491465.html.

      I am recieving the following error in .95 beta and not in 0.94.

      SEVERE: Exception
      javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Error(22/56): column-number or number of cells in the row overflows the number of fo:table-column specified for the table.
      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)

      ---------

      javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Error(22/56): column-number or number of cells in the row overflows the number of fo:table-column specified for the table.
      at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501)
      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 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)
      Caused by: org.apache.fop.fo.ValidationException: Error(22/56): column-number or number of cells in the row overflows the number of fo:table-column specified for the table.
      at org.apache.fop.fo.flow.table.TableCellContainer.addTableCellChild(TableCellContainer.java:50)
      at org.apache.fop.fo.flow.table.TableRow.addChildNode(TableRow.java:92)
      at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:317)
      at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
      at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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:484)
      ... 9 more
      ---------
      org.apache.fop.fo.ValidationException: Error(22/56): column-number or number of cells in the row overflows the number of fo:table-column specified for the table.
      at org.apache.fop.fo.flow.table.TableCellContainer.addTableCellChild(TableCellContainer.java:50)
      at org.apache.fop.fo.flow.table.TableRow.addChildNode(TableRow.java:92)
      at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:317)
      at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
      at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(TransformerIdentityImpl.java:1072)
      at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
      at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(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:484)
      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 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)

      I've attached a sample FO.

      Regards,

      Phil

      Attachments

        1. output.txt
          5 kB
          bonekrusher
        2. test2.txt
          2 kB
          bonekrusher

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            philip.vallone@verizon.net bonekrusher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: