[
http://jira.codehaus.org/browse/MSITE-377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=161961#action_161961
]
Jörg Hohwiller commented on MSITE-377:
--------------------------------------
Sometimes I also get this one (but maybe then the xdoc file was odd -
however the NPE is not very helpful. The user should at least get feedback
which file could NOT be processed so a surrounding catch would help here):
java.lang.NullPointerException
at
org.apache.maven.doxia.module.xdoc.XdocParser.handleEndTag(XdocParser.java:467)
at
org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(AbstractXmlParser.java:92)
at
org.apache.maven.doxia.parser.AbstractXmlParser.parse(AbstractXmlParser.java:53)
at
org.apache.maven.doxia.module.xdoc.XdocParser.parse(XdocParser.java:99)
at org.apache.maven.doxia.DefaultDoxia.parse(DefaultDoxia.java:59)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:342)
at
org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:46)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:269)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:101)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:133)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:100)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> empty page for xdoc generated
> -----------------------------
>
> Key: MSITE-377
> URL: http://jira.codehaus.org/browse/MSITE-377
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-7, 2.0-beta-8
> Reporter: Jörg Hohwiller
>
> In my project I have two xdoc files that both use the toc-macro invented with
> DOXIA-40.
> When I generate the site of my project with "mvn site", I get an entirely
> empty page for one of these xdoc files (setup-devel.xml),
> while when I do "mvn site:stage" the same happens about the other xdoc file
> (conventions.xml).
> This appears to me like a very odd bug.
> If it may help, you can use my project to reproduce this:
> http://m-m-m.svn.sourceforge.net/svnroot/m-m-m/trunk/
> If you run "mvn -N site" (you might only checkout src and pom.xml from trunk)
> you get the described problem with empty setup-devel.html.
> Staging the site might be a little fiddly though...
> My history about this:
> For my project I am struggeling with maven-site-plugin since years.
> After 2.0-beta-5 was released I was quite happy since I was able to stage the
> entire site of my complex multi-module-project.
> However later versions invented new features like an autogenerated
> table-of-contents (DOXIA-40) that I started to use.
> Then I figured out that beta-6 and beta-7 were very buggy about creating
> links to sub-modules (MSITE-275).
> Now all my hope is up to beta-8 that I am awaiting, where these bugs are
> fixed. But I end up with this new problem.
--
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