Quantcast

Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

nsowatsk
Hi all

I have a Maven site based on .apt files. I have also created a book descriptor for the same site.

When I process the site, I get the error below.

I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today.

I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be using 1.4, and won't compile with iText 2.1.5.  

The intermediate xml seems to generated without problems. It is the xml->pdf/rtf stage that seems to have problems.

Any ideas anyone please?

Thanks

Nathan



task-segment: [site]
[INFO] ------------------------------------------------------------------------
[INFO] [doxia:render-books {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] com.lowagie.text.Table
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.ClassCastException: com.lowagie.text.Table
        at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source)
        at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
        at com.lowagie.text.xml.XmlParser.go(Unknown Source)
        at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
        at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
        at org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
        at org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
        at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163)
        at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142)
        at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009
[INFO] Final Memory: 9M/17M
[INFO] ------------------------------------------------------------------------
bash-3.2$
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

Vincent Siveton-2
Hi Nathan,

Could you create an issue with a test case in [1]. I will investigate there.

Cheers,

Vincent

[1] http://jira.codehaus.org/browse/DOXIA

2009/6/4, Nathan Sowatskey (nsowatsk) <[hidden email]>:

> Hi all
>
>  I have a Maven site based on .apt files. I have also created a book descriptor for the same site.
>
>  When I process the site, I get the error below.
>
>  I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today.
>
>  I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be using 1.4, and won't compile with iText 2.1.5.
>
>  The intermediate xml seems to generated without problems. It is the xml->pdf/rtf stage that seems to have problems.
>
>  Any ideas anyone please?
>
>  Thanks
>
>  Nathan
>
>
>
>  task-segment: [site]
>  [INFO] ------------------------------------------------------------------------
>  [INFO] [doxia:render-books {execution: default}]
>  [INFO] ------------------------------------------------------------------------
>  [ERROR] FATAL ERROR
>  [INFO] ------------------------------------------------------------------------
>  [INFO] com.lowagie.text.Table
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Trace
>  java.lang.ClassCastException: com.lowagie.text.Table
>         at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source)
>         at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>         at com.lowagie.text.xml.XmlParser.go(Unknown Source)
>         at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
>         at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
>         at org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
>         at org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
>         at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163)
>         at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142)
>         at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Total time: 6 seconds
>  [INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009
>  [INFO] Final Memory: 9M/17M
>  [INFO] ------------------------------------------------------------------------
>  bash-3.2$
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Problem with Tables, Doxia, APT Maven site and PDF/RTF generation

nsowatsk
Done:

http://jira.codehaus.org/browse/DOXIA-332

Many thanks :-)

Nathan


-----Original Message-----
From: Vincent Siveton [mailto:[hidden email]]
Sent: Thu 6/4/2009 11:09 PM
To: [hidden email]
Subject: Re: Problem with Tables, Doxia, APT Maven site and PDF/RTF generation
 
Hi Nathan,

Could you create an issue with a test case in [1]. I will investigate there.

Cheers,

Vincent

[1] http://jira.codehaus.org/browse/DOXIA

2009/6/4, Nathan Sowatskey (nsowatsk) <[hidden email]>:

> Hi all
>
>  I have a Maven site based on .apt files. I have also created a book descriptor for the same site.
>
>  When I process the site, I get the error below.
>
>  I have tried the latest Doxia 1.1.1-SNAPSHOT out of the svn repo today.
>
>  I have also looked at the iText code. The latest is 2.1.5. Doxia seems to be using 1.4, and won't compile with iText 2.1.5.
>
>  The intermediate xml seems to generated without problems. It is the xml->pdf/rtf stage that seems to have problems.
>
>  Any ideas anyone please?
>
>  Thanks
>
>  Nathan
>
>
>
>  task-segment: [site]
>  [INFO] ------------------------------------------------------------------------
>  [INFO] [doxia:render-books {execution: default}]
>  [INFO] ------------------------------------------------------------------------
>  [ERROR] FATAL ERROR
>  [INFO] ------------------------------------------------------------------------
>  [INFO] com.lowagie.text.Table
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Trace
>  java.lang.ClassCastException: com.lowagie.text.Table
>         at com.lowagie.text.xml.SAXiTextHandler.handleEndingTags(Unknown Source)
>         at com.lowagie.text.xml.SAXiTextHandler.endElement(Unknown Source)
>         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
>         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.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.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>         at com.lowagie.text.xml.XmlParser.go(Unknown Source)
>         at com.lowagie.text.xml.XmlParser.parse(Unknown Source)
>         at com.lowagie.text.xml.XmlToXXX.parse(Unknown Source)
>         at org.apache.maven.doxia.module.itext.ITextUtil.writePdf(ITextUtil.java:118)
>         at org.apache.maven.doxia.book.services.renderer.PdfBookRenderer.renderXML(PdfBookRenderer.java:50)
>         at org.apache.maven.doxia.book.services.renderer.AbstractITextBookRenderer.renderBook(AbstractITextBookRenderer.java:163)
>         at org.apache.maven.doxia.book.DefaultBookDoxia.renderBook(DefaultBookDoxia.java:142)
>         at org.apache.maven.doxia.plugin.DoxiaRenderBooksMojo.execute(DoxiaRenderBooksMojo.java:265)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:540)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:519)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:332)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>  [INFO] ------------------------------------------------------------------------
>  [INFO] Total time: 6 seconds
>  [INFO] Finished at: Thu Jun 04 22:10:19 CEST 2009
>  [INFO] Final Memory: 9M/17M
>  [INFO] ------------------------------------------------------------------------
>  bash-3.2$
>


Loading...