[jira] Updated: (MNG-2056) Exception when starting new page with AbstractMavenMultiPageReport

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (MNG-2056) Exception when starting new page with AbstractMavenMultiPageReport

JIRA jira@codehaus.org
     [ http://jira.codehaus.org/browse/MNG-2056?page=all ]

Kenney Westerhof updated MNG-2056:
----------------------------------

    Fix Version/s:     (was: 2.0.5)
                   2.0.6

> Exception when starting new page with AbstractMavenMultiPageReport
> ------------------------------------------------------------------
>
>                 Key: MNG-2056
>                 URL: http://jira.codehaus.org/browse/MNG-2056
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Sites & Reporting
>    Affects Versions: 2.0.2
>         Environment: OS X 10.3.4. running JDK 1.5 (1.5.0_06-93)
>            Reporter: Adam Winer
>             Fix For: 2.0.6
>
>
> Attempts to call AbstractMavenMultiPageReport.startPage() from a custom report result in the following exception:
> Caused by: java.io.EOFException: input contained no data
>         at org.codehaus.plexus.util.xml.pull.MXParser.fillBuf(MXParser.java:2979)
>         at org.codehaus.plexus.util.xml.pull.MXParser.more(MXParser.java:3022)
>         at org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1407)
>         at org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1392)
>         at org.codehaus.plexus.util.xml.pull.MXParser.next(MXParser.java:1090)
>         at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:172)
>         at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:83)
>         at org.codehaus.plexus.util.xml.Xpp3DomBuilder.build(Xpp3DomBuilder.java:48)
>         at org.codehaus.doxia.module.xhtml.decoration.model.DecorationModelReader.createNavigation(DecorationModelReader.java:30)
>         at org.codehaus.doxia.site.renderer.DefaultSiteRenderer.createSink(DefaultSiteRenderer.java:244)
>         at org.apache.maven.reporting.sink.SinkFactory.getSink(SinkFactory.java:76)
>         at org.apache.maven.reporting.AbstractMavenMultiPageReport.getSink(AbstractMavenMultiPageReport.java:79)
>         at org.apache.maven.reporting.AbstractMavenMultiPageReport.startPage(AbstractMavenMultiPageReport.java:85)
> FYI, I'm creating the SinkFactory for the multipage report using:
>     SinkFactory factory = new SinkFactory();
>     factory.setSiteRenderer(getSiteRenderer());
>     factory.setSiteDirectory(getOutputDirectory());
>     setSinkFactory(factory);
> Without this code, you just get a NullPointerException in AbstractMavenMultiPageReport.getSink().

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira