I did not have the table nested within an fo:block.  And yes, the error
was, as you can see, uninformative.


Thanks again for everyone's help...

Curtis

[ERROR] org.apache.fop.fo.flow.Table
org.apache.fop.apps.FOPException: org.apache.fop.fo.flow.Table
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:11
1)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

---------

java.lang.ClassCastException: org.apache.fop.fo.flow.Table
        at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:509)
        at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
        at
org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav
a:236)
        at org.apache.fop.fo.flow.Table.layout(Table.java:282)
        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
        at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:
400)
        at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:33
8)
        at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source
)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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.fop.apps.Driver.render(Driver.java:498)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
6)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

---------

java.lang.ClassCastException: org.apache.fop.fo.flow.Table
        at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:509)
        at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:271)
        at
org.apache.fop.fo.flow.AbstractTableBody.layout(AbstractTableBody.jav
a:236)
        at org.apache.fop.fo.flow.Table.layout(Table.java:282)
        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
        at
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
        at
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java:
400)
        at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:33
8)
        at
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
Source
)
        at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknow
n Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known 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.fop.apps.Driver.render(Driver.java:498)
        at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:10
6)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

Curtis Fisher




                                                                           
             Glen Mazza                                                    
             <[EMAIL PROTECTED]                                             
             m>                                                         To 
                                       [email protected]    
             04/14/2005 01:28                                           cc 
             PM                                                            
                                                                   Subject 
                                       --- Potential SPAM ---: RE: Can     
             Please respond to         tables be nested within one         
             [EMAIL PROTECTED]         another...                          
              hics.apache.org                                              
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




--- "Andreas L. Delmelle" <[EMAIL PROTECTED]>
wrote:
>
> Could you be a bit more precise? What kind of error
> are you getting when FOP
> 'blows up'?
>

I think he placed an fo:table *immediately* under the
fo:header, and there's no informative user-friendly
error in 0.20.5 to tell him that that's not allowed in
XSL or FOP [1].  Sans validation exception, FOP
continues running with an input it has not been
programmed to handle, and eventually "blows up" with
any number of run time exceptions--NPE's,
ClassCastExceptions, etc.--that would tend to occur
under the circumstances.

The ValidationExceptions prevent that from happening
in the future 1.0--FOP halts with a
ValidationException on input streams that it has not
been programmed to accept (e.g., fo:table under
fo:table-header, fo:root under fo:inline), and gives a
clear message of the error in the input.  No more
vague runtime exception "blowups" that don't give the
feedback needed to the user when there are problems
with the stylesheet.

Glen

[1]
http://www.w3.org/TR/2001/REC-xsl-20011015/slice6.html#fo_table-header
 (see Contents)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to