You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Jean-Baptiste Quenot (JIRA)" <ji...@apache.org> on 2007/09/18 15:19:43 UTC

[jira] Created: (IVY-605) XmlReportOutputter not safe

XmlReportOutputter not safe
---------------------------

                 Key: IVY-605
                 URL: https://issues.apache.org/jira/browse/IVY-605
             Project: Ivy
          Issue Type: Bug
          Components: Core
            Reporter: Jean-Baptiste Quenot


When issuing several "resolve" task in parallel on several projects having the *same* Ivy file, it may happen that the generated XML reports in ivy cache are overwritten.  And thus at a given moment in time, this file may appear empty, as FileOutputStream overwrites the destination directly.  When using the "report" task (also in parallel), this leads to the following error:

{noformat}
[ivy:report] Transforming into /path/to/myproject/target/ivy-reports
[ivy:report] Processing /path/to/ivy-cache/myproject-compile.xml to /path/to/myproject/target/ivy-reports/myproject-compile.html
[ivy:report] Loading stylesheet /path/to/ivy-cache/ivy-report.xsl
[ivy:report] Processing /path/to/ivy-cache/myproject-default.xml to /path/to/myproject/target/ivy-reports/myproject-default.html
[ivy:report] : Error! Premature end of file.

BUILD FAILED
build.xml:19: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.

Total time: 33 seconds
[ivy:report] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
[ivy:report] Failed to process null
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IVY-605) XmlReportOutputter not safe

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12528527 ] 

Maarten Coene commented on IVY-605:
-----------------------------------

There is a workaround in the latest alpha release.
If you specify a different "resolveId" property for each resolve task, different XML reports are created for each parallel task

Maarten

> XmlReportOutputter not safe
> ---------------------------
>
>                 Key: IVY-605
>                 URL: https://issues.apache.org/jira/browse/IVY-605
>             Project: Ivy
>          Issue Type: Bug
>          Components: Core
>            Reporter: Jean-Baptiste Quenot
>
> When issuing several "resolve" task in parallel on several projects having the *same* Ivy file, it may happen that the generated XML reports in ivy cache are overwritten.  And thus at a given moment in time, this file may appear empty, as FileOutputStream overwrites the destination directly.  When using the "report" task (also in parallel), this leads to the following error:
> {noformat}
> [ivy:report] Transforming into /path/to/myproject/target/ivy-reports
> [ivy:report] Processing /path/to/ivy-cache/myproject-compile.xml to /path/to/myproject/target/ivy-reports/myproject-compile.html
> [ivy:report] Loading stylesheet /path/to/ivy-cache/ivy-report.xsl
> [ivy:report] Processing /path/to/ivy-cache/myproject-default.xml to /path/to/myproject/target/ivy-reports/myproject-default.html
> [ivy:report] : Error! Premature end of file.
> BUILD FAILED
> build.xml:19: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
> Total time: 33 seconds
> [ivy:report] : Error! com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.
> [ivy:report] Failed to process null
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.