You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Alexddupree <al...@gmail.com> on 2014/07/10 01:12:01 UTC

Javadoc aggregate NullPointerException

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
generation:
[ERROR] Exit code: 1 - C:\workspaces\win\tfs\****\Foo.java:21: type
org.springframework.context.ApplicationListener does not take parameters
[ERROR] public class Foo implements ApplicationContextAware,
ApplicationListener<ContextRefreshedEvent> {
[ERROR] ^
.
.
.
C:\workspaces\win\tfs\****\test\Bar.java:52: cannot find symbol
[ERROR] symbol  : class PostInsertEvent
[ERROR] location: class com.Barclass
[ERROR] public void BarFunct(PostInsertEvent event) {
[ERROR] ^
[ERROR] C:java.lang.NullPointerException
[ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:67)
[ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:29)
[ERROR] at
com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:439)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:386)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:424)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:162)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:114)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.util.ClassTree.<init>(ClassTree.java:73)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:104)
[ERROR] at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
[ERROR] at
com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
[ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[ERROR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
[ERROR] at
com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
[ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
[ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
[ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:128)
[ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:41)
[ERROR] at com.sun.tools.javadoc.Main.main(Main.java:31)
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"?>
<javadocOptions>
  <docletArtifacts>
    <docletArtifact />
  </docletArtifacts>
  <tagletArtifacts>
    <tagletArtifact />
  </tagletArtifacts>
  <excludePackageNames>
    <excludePackageName>org.foobar.*</excludePackageName>
  </excludePackageNames>
  <javadocResourcesDirectory>src/main/javadoc</javadocResourcesDirectory>
</javadocOptions>
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
error. 

My plugin configuration for javadoc:aggregate is as follows:
<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-javadoc-plugin</artifactId>
	<version>${maven-javadoc-plugin.version}</version>
	<executions>
		<execution>
			<id>attach-javadocs</id>
			<goals>
				<goal>aggregate</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<excludePackageNames>org.hibernate.*;org.spring.*</excludePackageNames>
		<verbose>true</verbose>
		<fork>true</fork>
		<showDeprecation>true</showDeprecation>
		<showWarnings>true</showWarnings>
		<source>${java.source.version}</source>
		<target>${java.target.version}</target>
		<compilerVersion>${java.source.version}</compilerVersion>
		<compilerArgument>-Xlint:all</compilerArgument>
		<minmemory>128m</minmemory>
		<maxmem>512m</maxmem>
		
		<encoding>${project.build.sourceEncoding}</encoding>
		
		<additionalparam>
			-charset UTF-8
			-docencoding UTF-8
			-version
			-author
			-breakiterator
			-linksource
			-sourcetab 4
			-windowtitle "${project.name} ${project.version} API Reference"
			-doctitle "${project.name} ${project.version} API Reference"
			-bottom "Copyright ${project.inceptionYear}-Present
${project.organization.name}. All Rights Reserved."
			-link http://java.sun.com/javase/6/docs/api/
			-link http://jsr311.java.net/nonav/releases/1.1
		</additionalparam>
	</configuration>
</plugin>

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: http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Javadoc aggregate NullPointerException

Posted by Paul Benedict <pb...@apache.org>.
I did a google search for the answer. This says Eclipse defers to Oracle's
javadoc.exe tool:
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Freference%2Fref-export-javadoc.htm

So Eclipse must be configuring the tool in a way that doesn't trigger the
NPE. The NPE from javadoc.exe is obviously a bug regardless.


Cheers,
Paul


On Thu, Jul 10, 2014 at 1:16 PM, Alexddupree <al...@gmail.com> wrote:

> Hey Paul
> I have tried 1.6 and 1.7 we haven't set up 1.8 yet so I haven't tried it. I
> can however generate javadoc in Eclipse for the same project. Does Eclipse
> use its own version of javadoc?
> Sorry if this is a newbie question I am an intern and trying to get up to
> speed.
>
> -Alex
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844p5799891.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Javadoc aggregate NullPointerException

Posted by Alexddupree <al...@gmail.com>.
Hey Paul 
I have tried 1.6 and 1.7 we haven't set up 1.8 yet so I haven't tried it. I
can however generate javadoc in Eclipse for the same project. Does Eclipse
use its own version of javadoc? 
Sorry if this is a newbie question I am an intern and trying to get up to
speed. 

-Alex



--
View this message in context: http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844p5799891.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


Re: Javadoc aggregate NullPointerException

Posted by Paul Benedict <pb...@apache.org>.
The NPE is in the javadoc compiler not Maven. You could submit the stack
trace to Oracle or do some research to determine if upgrading your JDK
fixes this problem.
On Jul 9, 2014 6:12 PM, "Alexddupree" <al...@gmail.com> wrote:

> 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
> generation:
> [ERROR] Exit code: 1 - C:\workspaces\win\tfs\****\Foo.java:21: type
> org.springframework.context.ApplicationListener does not take parameters
> [ERROR] public class Foo implements ApplicationContextAware,
> ApplicationListener<ContextRefreshedEvent> {
> [ERROR] ^
> .
> .
> .
> C:\workspaces\win\tfs\****\test\Bar.java:52: cannot find symbol
> [ERROR] symbol  : class PostInsertEvent
> [ERROR] location: class com.Barclass
> [ERROR] public void BarFunct(PostInsertEvent event) {
> [ERROR] ^
> [ERROR] C:java.lang.NullPointerException
> [ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:67)
> [ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:29)
> [ERROR] at
> com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:439)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:386)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:424)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:162)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:114)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.<init>(ClassTree.java:73)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:104)
> [ERROR] at
>
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
> [ERROR] at
> com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
> [ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [ERROR] at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
> [ERROR] at
> com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
> [ERROR] at
> com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
> [ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> [ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:128)
> [ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:41)
> [ERROR] at com.sun.tools.javadoc.Main.main(Main.java:31)
> 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"?>
> <javadocOptions>
>   <docletArtifacts>
>     <docletArtifact />
>   </docletArtifacts>
>   <tagletArtifacts>
>     <tagletArtifact />
>   </tagletArtifacts>
>   <excludePackageNames>
>     <excludePackageName>org.foobar.*</excludePackageName>
>   </excludePackageNames>
>   <javadocResourcesDirectory>src/main/javadoc</javadocResourcesDirectory>
> </javadocOptions>
> 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
> error.
>
> My plugin configuration for javadoc:aggregate is as follows:
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-javadoc-plugin</artifactId>
>         <version>${maven-javadoc-plugin.version}</version>
>         <executions>
>                 <execution>
>                         <id>attach-javadocs</id>
>                         <goals>
>                                 <goal>aggregate</goal>
>                         </goals>
>                 </execution>
>         </executions>
>         <configuration>
>
> <excludePackageNames>org.hibernate.*;org.spring.*</excludePackageNames>
>                 <verbose>true</verbose>
>                 <fork>true</fork>
>                 <showDeprecation>true</showDeprecation>
>                 <showWarnings>true</showWarnings>
>                 <source>${java.source.version}</source>
>                 <target>${java.target.version}</target>
>                 <compilerVersion>${java.source.version}</compilerVersion>
>                 <compilerArgument>-Xlint:all</compilerArgument>
>                 <minmemory>128m</minmemory>
>                 <maxmem>512m</maxmem>
>
>                 <encoding>${project.build.sourceEncoding}</encoding>
>
>                 <additionalparam>
>                         -charset UTF-8
>                         -docencoding UTF-8
>                         -version
>                         -author
>                         -breakiterator
>                         -linksource
>                         -sourcetab 4
>                         -windowtitle "${project.name} ${project.version}
> API Reference"
>                         -doctitle "${project.name} ${project.version} API
> Reference"
>                         -bottom "Copyright ${project.inceptionYear}-Present
> ${project.organization.name}. All Rights Reserved."
>                         -link http://java.sun.com/javase/6/docs/api/
>                         -link http://jsr311.java.net/nonav/releases/1.1
>                 </additionalparam>
>         </configuration>
> </plugin>
>
> 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:
> http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

RE: Javadoc aggregate NullPointerException

Posted by Alexddupree <al...@gmail.com>.
mgainty wrote
> MG>someone somewhere is tossing in a incorrect version of
> org.springframework.context.ApplicationListener
> MG>clean off your CLASSPATH e.g. export CLASSPATH=
> MG>rerun mvn validate javadoc:javadoc
> MG>if still a problem take the maven-javadoc-plugin (2.9) and set it to be
> the ONLY plugin in 
> <build>
> <plugins>
> MG>in a squeaky clean test -harness pom.xml
> MG>you might have a dependency or (dependency-management dependency from
> parent) which is 
> MG>tossing in a incorrect version of
> org.springframework.context.ApplicationListener
> MG>BTW: I ran your plugin in a standalone pom.xml and maven-javadoc-plugin
> generated all Javadoc without error

Thanks for the response MG. 
So I played around with a clean pom that has nothing in it but javadoc 2.9
and the properties I needed, however I still got the same null pointer
exception. 
I am on windows but there didn't seem to be a set CLASSPATH  though I
cleared it anyway. I also went through the whole project from the root and
edited all instances of spring.framework.version to the same version (do you
have any suggestions for other places to change?). I don't know if you read
it but I can compile just fine it is only the javadoc:aggregate generation
that is a problem so I am not sure how a different version of Spring would
get thrown in. If you look at my edit you should see an additional excluded
package that if I exclude it causes the javadoc to build correctly. I can
run the javadoc on other projects but this project is causing problems. 

Do I have to set up my own test -harness to look at the dependencies? 
Also I am running maven 3.0.5



--
View this message in context: http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844p5799889.html
Sent from the Maven - Users mailing list archive at Nabble.com.

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


RE: Javadoc aggregate NullPointerException

Posted by Martin Gainty <mg...@hotmail.com>.

> Date: Wed, 9 Jul 2014 16:12:01 -0700
> From: alexddupree@gmail.com
> To: users@maven.apache.org
> Subject: Javadoc aggregate NullPointerException
> 
> 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
> generation:
> [ERROR] Exit code: 1 - C:\workspaces\win\tfs\****\Foo.java:21: type
> org.springframework.context.ApplicationListener does not take parameters
> [ERROR] public class Foo implements ApplicationContextAware,
> ApplicationListener<ContextRefreshedEvent> {
> [ERROR] ^
MG>someone somewhere is tossing in a incorrect version of org.springframework.context.ApplicationListener
MG>clean off your CLASSPATH e.g. export CLASSPATH=
MG>rerun mvn validate javadoc:javadoc
MG>if still a problem take the maven-javadoc-plugin (2.9) and set it to be the ONLY plugin in <build><plugins>
MG>in a squeaky clean test -harness pom.xml
MG>you might have a dependency or (dependency-management dependency from parent) which is 
MG>tossing in a incorrect version of org.springframework.context.ApplicationListener
MG>BTW: I ran your plugin in a standalone pom.xml and maven-javadoc-plugin generated all Javadoc without error
> .
> .
> C:\workspaces\win\tfs\****\test\Bar.java:52: cannot find symbol
> [ERROR] symbol  : class PostInsertEvent
> [ERROR] location: class com.Barclass
> [ERROR] public void BarFunct(PostInsertEvent event) {
> [ERROR] ^
> [ERROR] C:java.lang.NullPointerException
> [ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:67)
> [ERROR] at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:29)
> [ERROR] at
> com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:439)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:386)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:424)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:162)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:114)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.util.ClassTree.<init>(ClassTree.java:73)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:104)
> [ERROR] at
> com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
> [ERROR] at
> com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
> [ERROR] at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [ERROR] at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
> [ERROR] at
> com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
> [ERROR] at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
> [ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
> [ERROR] at com.sun.tools.javadoc.Start.begin(Start.java:128)
> [ERROR] at com.sun.tools.javadoc.Main.execute(Main.java:41)
> [ERROR] at com.sun.tools.javadoc.Main.main(Main.java:31)
> 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"?>
> <javadocOptions>
>   <docletArtifacts>
>     <docletArtifact />
>   </docletArtifacts>
>   <tagletArtifacts>
>     <tagletArtifact />
>   </tagletArtifacts>
>   <excludePackageNames>
>     <excludePackageName>org.foobar.*</excludePackageName>
>   </excludePackageNames>
>   <javadocResourcesDirectory>src/main/javadoc</javadocResourcesDirectory>
> </javadocOptions>
> 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
> error. 
> 
> My plugin configuration for javadoc:aggregate is as follows:
> <plugin>
> 	<groupId>org.apache.maven.plugins</groupId>
> 	<artifactId>maven-javadoc-plugin</artifactId>
> 	<version>${maven-javadoc-plugin.version}</version>
> 	<executions>
> 		<execution>
> 			<id>attach-javadocs</id>
> 			<goals>
> 				<goal>aggregate</goal>
> 			</goals>
> 		</execution>
> 	</executions>
> 	<configuration>
> 		<excludePackageNames>org.hibernate.*;org.spring.*</excludePackageNames>
> 		<verbose>true</verbose>
> 		<fork>true</fork>
> 		<showDeprecation>true</showDeprecation>
> 		<showWarnings>true</showWarnings>
> 		<source>${java.source.version}</source>
> 		<target>${java.target.version}</target>
> 		<compilerVersion>${java.source.version}</compilerVersion>
> 		<compilerArgument>-Xlint:all</compilerArgument>
> 		<minmemory>128m</minmemory>
> 		<maxmem>512m</maxmem>
> 		
> 		<encoding>${project.build.sourceEncoding}</encoding>
> 		
> 		<additionalparam>
> 			-charset UTF-8
> 			-docencoding UTF-8
> 			-version
> 			-author
> 			-breakiterator
> 			-linksource
> 			-sourcetab 4
> 			-windowtitle "${project.name} ${project.version} API Reference"
> 			-doctitle "${project.name} ${project.version} API Reference"
> 			-bottom "Copyright ${project.inceptionYear}-Present
> ${project.organization.name}. All Rights Reserved."
> 			-link http://java.sun.com/javase/6/docs/api/
> 			-link http://jsr311.java.net/nonav/releases/1.1
> 		</additionalparam>
> 	</configuration>
> </plugin>
> 
> 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: http://maven.40175.n5.nabble.com/Javadoc-aggregate-NullPointerException-tp5799844.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>