You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Adam Winer (JIRA)" <ji...@codehaus.org> on 2006/02/09 02:40:47 UTC

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

Exception when starting new page with AbstractMavenMultiPageReport
------------------------------------------------------------------

         Key: MNG-2056
         URL: http://jira.codehaus.org/browse/MNG-2056
     Project: Maven 2
        Type: Bug

  Components: Sites & Reporting  
    Versions: 2.0.2    
 Environment: OS X 10.3.4. running JDK 1.5 (1.5.0_06-93)
    Reporter: Adam Winer


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


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