camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Babak Vahdat (Issue Comment Edited) (JIRA)" <j...@apache.org>
Subject [jira] [Issue Comment Edited] (CAMEL-3774) camel-manual generation fails during release process
Date Tue, 03 Jan 2012 20:30:39 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-3774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178996#comment-13178996
] 

Babak Vahdat edited comment on CAMEL-3774 at 1/3/12 8:28 PM:
-------------------------------------------------------------

@Hadrian, just right before I gave it a test on my Windows box as well with a *consistent*
result compared to my Mac box, that's without the provided patch while doing

{code}
mvn clean install -Dtest=foo
{code}

on [1] I get:

{code}
[INFO] --- maven-html-to-pdf:2.10-SNAPSHOT:compile (default) @ camel-manual ---
[INFO] Downloading: http://camel.apache.org/book-in-one-page.html
FEHLER:  'NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does
not exist.'
[ERROR] Download or validation of 'http://camel.apache.org/book-in-one-page.html' failed:
org.apache.camel.CamelException: Failed to convert the HTML to tidy Markup
[INFO] Stored dummy file: C:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
since download of http://camel.apache.org/book-in-one-page.html failed.
{code}

And with the patch applied on my workspace I get:

{code}
[INFO] --- maven-html-to-pdf:2.10-SNAPSHOT:compile (default) @ camel-manual ---
[INFO] Set the XSL transformer factory class name to be 'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'
[INFO] Downloading: http://camel.apache.org/book-in-one-page.html
[INFO] Removed the set XSL transformer factory class name 'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'
from the system properties
[INFO] Stored: c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
[INFO] Converting to PDF with prince...
[INFO] About to execute PrinceXml (see www.princexml.com)
[INFO]  prince c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
[INFO] Stored: c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
{code}

Where the generated zip & tar artifacts both contain a proper HTML & PDF copy of the
manual. For any case I put my workspace setup just in the case you may want to compare with
yours:

Windows:
{code}
c:\dev\workspace\camel>mvn -verrsion
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: c:\dev\apache-maven-3.0.3\bin\..
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: c:\dev\jdk1.6\jre
Default locale: de_CH, platform encoding: Cp1252
OS name: "windows vista", version: "6.0", arch: "x86", family: "windows"
{code}

MacOS:
{code}
~/dev/workspace/camel>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: de_DE, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"

{code}

[1] https://svn.apache.org/repos/asf/camel/trunk/
                
      was (Author: bvahdat):
    @Hadrian, just right before I gave it a test on my Windows box as well with a *consistent*
result compared to my Mac box, that's without the provided patch while doing

{code}
mvn clean install -Dtest=foo
{code}

on [1] I get:

{code}
[INFO] --- maven-html-to-pdf:2.10-SNAPSHOT:compile (default) @ camel-manual ---
[INFO] Downloading: http://camel.apache.org/book-in-one-page.html
FEHLER:  'NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does
not exist.'
[ERROR] Download or validation of 'http://camel.apache.org/book-in-one-page.html' failed:
org.apache.camel.CamelException: Failed to convert the HTML to tidy Markup
[INFO] Stored dummy file: C:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
since download of http://camel.apache.org/book-in-one-page.html failed.
{code}

And with the patch applied on my workspace I get:

{code}
[INFO] --- maven-html-to-pdf:2.10-SNAPSHOT:compile (default) @ camel-manual ---
[INFO] Set the XSL transformer factory class name to be 'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'
[INFO] Downloading: http://camel.apache.org/book-in-one-page.html
[INFO] Removed the set XSL transformer factory class name 'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'
from the system properties
[INFO] Stored: c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
[INFO] Converting to PDF with prince...
[INFO] About to execute PrinceXml (see www.princexml.com)
[INFO]  prince c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
[INFO] Stored: c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
{code}

Where the generated zip & tar artifacts both contain a proper HTML & PDF copy of the
manual. For any cases I put my workspace setup just in the case you may want to compare with
yours:

Windows:
{code}
c:\dev\workspace\camel>mvn -verrsion
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: c:\dev\apache-maven-3.0.3\bin\..
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: c:\dev\jdk1.6\jre
Default locale: de_CH, platform encoding: Cp1252
OS name: "windows vista", version: "6.0", arch: "x86", family: "windows"
{code}

MacOS:
{code}
Babaks-iMac:camel bvahdat$ mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/share/maven
Java version: 1.6.0_29, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: de_DE, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.2", arch: "x86_64", family: "mac"
{code}

[1] https://svn.apache.org/repos/asf/camel/trunk/
                  
> camel-manual generation fails during release process
> ----------------------------------------------------
>
>                 Key: CAMEL-3774
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3774
>             Project: Camel
>          Issue Type: Task
>    Affects Versions: 2.6.0
>            Reporter: Hadrian Zbarcea
>            Assignee: Hadrian Zbarcea
>             Fix For: Future
>
>         Attachments: CAMEL-3774.patch, camel-manual-2.9-SNAPSHOT.pdf
>
>
> It works during a regular mvn install, but it fails during release:prepare. The bug is
somewhere in the maven-html-to-pdf plugin. I hope a mock release using mvn -X will reveal
the problem, but would take a frustrating amount of time. For now the available info is the
output:
> {code}
> [INFO] [INFO] [html-to-pdf:compile {execution: default}]
> [INFO] [INFO] Downloading: http://camel.apache.org/book-in-one-page.html
> [INFO] ERROR:  'NOT_FOUND_ERR: An attempt is made to reference a node in a context where
it does not exist.'
> [INFO] [ERROR] Download or validation of 'http://camel.apache.org/book-in-one-page.html'
failed: org.apache.camel.CamelException: Failed to convert the HTML to tidy Markup
> [INFO] [INFO] Stored dummy file: /w1/apache/release/camel270/tooling/camel-manual/target/site/manual/camel-manual-2.7.0.html
since download of http://camel.apache.org/book-in-one-page.html failed.
> {code}
> The error points to a DOM related issue, but since the downloaded manual gets overwritten
with the dummy file, I have no idea if the download got interrupted, or in what way the source
gets corrupted.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message