maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexddupree <>
Subject Javadoc aggregate NullPointerException
Date Wed, 09 Jul 2014 23:12:01 GMT
I am trying to create an aggregate javadoc for a multi module project. The
project compiles with mvn install -DskipTests (I am not running tests on my
machine). When I run mvn validate javadoc:javadoc it works and compiles all
of the javadoc in each modules \target\apidocs directory. Then when I run
either mvn validate javadoc:javadoc javadoc:aggregate or mvn validate
javadoc:aggregate fails partway through with about 1200 lines of errors.
Some examples of types are:

Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:aggregate (default-cli)
on project commons-superpom: An error has occurred in JavaDocs report
[ERROR] Exit code: 1 - C:\workspaces\win\tfs\****\ type
org.springframework.context.ApplicationListener does not take parameters
[ERROR] public class Foo implements ApplicationContextAware,
ApplicationListener<ContextRefreshedEvent> {
C:\workspaces\win\tfs\****\test\ cannot find symbol
[ERROR] symbol  : class PostInsertEvent
[ERROR] location: class com.Barclass
[ERROR] public void BarFunct(PostInsertEvent event) {
[ERROR] C:java.lang.NullPointerException
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at<init>(
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at
[ERROR] at
[ERROR] at java.lang.reflect.Method.invoke(
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
[ERROR] at
After it crashes all that is left in the /target directory next to my parent
pom.xml is 2 files 1 is javadoc-bundle-options which contains an xml file:

<?xml version="1.0" encoding="UTF-8"?>
    <docletArtifact />
    <tagletArtifact />
and the second is site which contains a file called apidocs which contains 3
files javadoc.bat, options, and packages. They contain what they appear to
contain a batch script to run the javadoc.exe with those options and on
those packages. When run without modification the javadoc.bat file fails
with the same errors though slightly different output. 

The first error I copied is straight up wrong. ApplicationListener is
parameterized and can take ContextRefreshedEvent per the spring
documentation. PostInsertEvent is correctly imported as well in the second

My plugin configuration for javadoc:aggregate is as follows:
			-charset UTF-8
			-docencoding UTF-8
			-sourcetab 4
			-windowtitle "${} ${project.version} API Reference"
			-doctitle "${} ${project.version} API Reference"
			-bottom "Copyright ${project.inceptionYear}-Present
${}. All Rights Reserved."

If I exclude the commented package then the build runs fine. If however I
exclude all of the files in the package and not the package then it crashes
with very similar errors. I can generate the javadoc just fine in eclipse. I
can stop the nullpointerexception if I edit the options file generated after
a failure to use 3.3.2.GA/hibernate-core-3.3.2.GA.jar instead of
hibernate-core-4.1.8.Final.jar and then run the bat file. This produces a
complete aggregate javadoc site however, there are several errors relating
to @Typedef in the run. Javadoc 1.7_60 and 1.6_45 both fail in the same way. 

View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message