Maven 2 & 3

Exception when starting new page with AbstractMavenMultiPageReport

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 2.0.2
  • Fix Version/s: 2.0.5
  • Component/s: Sites & Reporting
  • Labels:
    None
  • Environment:
    OS X 10.3.4. running JDK 1.5 (1.5.0_06-93)
  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

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().

Activity

Hide
d.vicente added a comment -

I have the same problem.

When do you schedule a release for this bug ?

Thanks

Show
d.vicente added a comment - I have the same problem. When do you schedule a release for this bug ? Thanks
Hide
Kenney Westerhof added a comment -

The AbstractMavenMultiPage report has never worked and no longer exists.

Instead, use the latest maven-site-plugin (maybe even a snapshot),
and add a dependency on maven-reporting-api 2.1-SNAPSHOT (or the maven-site-plugin, a dirty hack).

Then let your report implement the MavenMultiPageReport interface.
In the new generate method there's a SinkFactory parameter you can use to create
additional sinks.

Show
Kenney Westerhof added a comment - The AbstractMavenMultiPage report has never worked and no longer exists. Instead, use the latest maven-site-plugin (maybe even a snapshot), and add a dependency on maven-reporting-api 2.1-SNAPSHOT (or the maven-site-plugin, a dirty hack). Then let your report implement the MavenMultiPageReport interface. In the new generate method there's a SinkFactory parameter you can use to create additional sinks.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: