Bug 44796 - FOP-0.95-BETA - org.apache.fop.fo.ValidationException
Summary: FOP-0.95-BETA - org.apache.fop.fo.ValidationException
Status: CLOSED INVALID
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fo tree (show other bugs)
Version: trunk
Hardware: PC Windows XP
: P2 major
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-10 04:58 UTC by bonekrusher
Modified: 2012-04-01 13:49 UTC (History)
0 users



Attachments
Error Report (5.29 KB, text/plain)
2008-04-10 05:01 UTC, bonekrusher
Details
Sample FO (1.88 KB, text/plain)
2008-04-10 05:03 UTC, bonekrusher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bonekrusher 2008-04-10 04:58:35 UTC
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
Comment 1 bonekrusher 2008-04-10 05:01:21 UTC
Created attachment 21805 [details]
Error Report

Sample FO to replicate error
Comment 2 bonekrusher 2008-04-10 05:03:01 UTC
Created attachment 21806 [details]
Sample FO

Attached is a sample fo. Rename ext to .fo
Comment 3 Jeremias Maerki 2008-04-10 05:35:26 UTC
Well, as the error message tells you there is a cell overflow. In your FO, the second cell in the table-body has a number-columns-spanned="2" so you effectively have three columns but you only specified the width for two. So this is no bug but a problem in your FO.
Comment 4 bonekrusher 2008-04-10 12:16:06 UTC
As always,  Jeremias thank you!

(In reply to comment #3)
> Well, as the error message tells you there is a cell overflow. In your FO, the
> second cell in the table-body has a number-columns-spanned="2" so you
> effectively have three columns but you only specified the width for two. So
> this is no bug but a problem in your FO.

Comment 5 Glenn Adams 2012-04-01 13:49:51 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs