You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andy <li...@persistability.plus.com> on 2012/07/02 21:04:29 UTC

Maven v3.0.3, PDF plugin v1.1 : fo:list-block is not a valid child element of fo:list-block

Hi,

I have an application using Maven1 for documentation currently, and wanted to 
upgrade to Maven3 in the (vain?) hope of getting the PDF plugin to work. The 
problem with the PDF plugin in Maven1 on this application is one of 
StackOverflowException in FOP due to the size of the docs. I've just migrated 
an amount of the docs for use in Maven3. I can get "site" to run (still to 
write a skin that lays it out as I want it), but when I run the PDF plugin I 
get

... (all files in XDOC format), validated and parsed ok.

[DEBUG] Generating: 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.pdf
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 23.177s
[INFO] Finished at: Mon Jul 02 19:58:50 BST 2012
[INFO] Final Memory: 21M/494M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pdf-
plugin:1.1:pdf (default-cli) on project datanucleus-site: Error during 
document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-pdf-plugin:1.1:pdf (default-cli) on project 
datanucleus-site: Error during document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        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:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error during 
document generation: Error creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        at org.apache.maven.plugins.pdf.PdfMojo.generatedPdf(PdfMojo.java:574)
        at org.apache.maven.plugins.pdf.PdfMojo.execute(PdfMojo.java:391)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.doxia.docrenderer.DocumentRendererException: Error 
creating PDF from 
/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo: org.apache.fop.fo.ValidationException: 
file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child 
element of fo:list-block.
        at 
org.apache.maven.doxia.docrenderer.pdf.fo.FoPdfRenderer.generatePdf(FoPdfRenderer.java:349)
        at 
org.apache.maven.doxia.docrenderer.pdf.fo.FoPdfRenderer.render(FoPdfRenderer.java:175)
        at 
org.apache.maven.doxia.docrenderer.AbstractDocumentRenderer.render(AbstractDocumentRenderer.java:160)
        at org.apache.maven.plugins.pdf.PdfMojo.generatedPdf(PdfMojo.java:561)
        ... 22 more
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:


My pdf.xml is 
<document xmlns="http://maven.apache.org/DOCUMENT/1.0.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/DOCUMENT/1.0.1 
http://maven.apache.org/xsd/document-1.0.1.xsd"
  outputName="maven-pdf-plugin">
  <meta>
    <title>Maven PDF Plugin</title>
    <author>The Apache Maven Project</author>
  </meta>

  <cover>
    <coverTitle>${project.name}</coverTitle>
    <coverSubTitle>v. ${project.version}</coverSubTitle>
    <coverType>User Guide</coverType>
    <projectName>${project.name}</projectName>
  </cover>
</document>




Any ideas of what to try? Is this a bug in FOP, or the PDF plugin?

TIA
-- 
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven v3.0.3, PDF plugin v1.1 : fo:list-block is not a valid child element of fo:list-block

Posted by Lukas Theussl <lt...@apache.org>.

Andy wrote:
>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
>>> document generation: Error creating PDF from
>>> /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/mav
>>> en- pdf-plugin.fo: org.apache.fop.fo.ValidationException:
>>> file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pd
>>> f/maven- pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a
>>> valid child element of fo:list-block.
>>
>> Did you look at the maven-pdf-plugin.fo file under target/pdf/ to see
>> what the fo file looks like? Seems like you ran into a bug, but I
>> don't know enough to say what caused it. If the fo file is wrong, then
>> either your original file has issues or whatever translated the
>> original into this fo file would seem to have an issue.
> 
> Well I looked at it, but then since I'm not familiar with this FO format 
> wouldn't know what is wrong with it. Since all XDOC files validated, then I'd 
> assume the original file has no issue. Either way I have it in a separate 
> project and is 100% reproduceable. Raised it as 
> https://jira.codehaus.org/browse/MPDF-57

How did you validate the xdocs? When I run 'mvn -Dvalidate=true
site:site' on the project you attached at MPDF-57 I get stuck
immediately with basic validation errors (no schema definition). See
http://maven.apache.org/plugins/maven-site-plugin/faq.html#Can_I_validate_xml

HTH,
-Lukas


> 
> 
> 
> Thanks for your reply.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven v3.0.3, PDF plugin v1.1 : fo:list-block is not a valid child element of fo:list-block

Posted by Andy <li...@persistability.plus.com>.
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
> > document generation: Error creating PDF from
> > /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/mav
> > en- pdf-plugin.fo: org.apache.fop.fo.ValidationException:
> > file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pd
> > f/maven- pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a
> > valid child element of fo:list-block.
> 
> Did you look at the maven-pdf-plugin.fo file under target/pdf/ to see
> what the fo file looks like? Seems like you ran into a bug, but I
> don't know enough to say what caused it. If the fo file is wrong, then
> either your original file has issues or whatever translated the
> original into this fo file would seem to have an issue.

Well I looked at it, but then since I'm not familiar with this FO format 
wouldn't know what is wrong with it. Since all XDOC files validated, then I'd 
assume the original file has no issue. Either way I have it in a separate 
project and is 100% reproduceable. Raised it as 
https://jira.codehaus.org/browse/MPDF-57



Thanks for your reply.
-- 
Andy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven v3.0.3, PDF plugin v1.1 : fo:list-block is not a valid child element of fo:list-block

Posted by Wayne Fay <wa...@gmail.com>.
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
> document generation: Error creating PDF from
> /home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
> pdf-plugin.fo: org.apache.fop.fo.ValidationException:
> file:/home/andy/work/datanucleus/documentation/m2_accessplatform/target/pdf/maven-
> pdf-plugin.fo:28264:175: Error(28264/175): fo:list-block is not a valid child
> element of fo:list-block.

Did you look at the maven-pdf-plugin.fo file under target/pdf/ to see
what the fo file looks like? Seems like you ran into a bug, but I
don't know enough to say what caused it. If the fo file is wrong, then
either your original file has issues or whatever translated the
original into this fo file would seem to have an issue.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org