Forum Stats

  • 3,838,515 Users
  • 2,262,378 Discussions
  • 7,900,681 Comments

Discussions

javadoc:aggregate throws nullpointerexception

Blackfield
Blackfield Member Posts: 2

Environment:

  • Javadoc 2.9.1
  • Java version: 1.7.0_51
  • maven 3.3.3
  • Jenkins 1.522

One of the our projects' build recently failing at the javadoc:aggregate step.


Stack trace :

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:aggregate (default-cli) on project XXX: An error has occurred in JavaDocs report generation:

Exit code: 1 - /var/jenkins/workspace/../XXX.java:4: error: package org.springframework.util does not exist

import org.springframework.util.Assert;


.. bunch of other errors...


java.lang.NullPointerException

at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:83)

at com.sun.tools.javadoc.TypeMaker.getType(TypeMaker.java:44)

at com.sun.tools.javadoc.ClassDocImpl.superclassType(ClassDocImpl.java:496)

at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:459)

at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:497)

at com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:194)

at com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:146)

at com.sun.tools.doclets.internal.toolkit.util.ClassTree.<init>(ClassTree.java:91)

at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:123)

at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:83)

at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:63)

at com.sun.tools.doclets.standard.Standard.start(Standard.java:39)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)

at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)

at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)

at com.sun.tools.javadoc.Start.begin(Start.java:167)

at com.sun.tools.javadoc.Main.execute(Main.java:59)

at com.sun.tools.javadoc.Main.main(Main.java:49)


Additional info:

  • The project's pom and its base pom have not been updated recently, in the past - it was able to generate javadoc:aggregate.
  • If I changed the javadoc switch to javadoc:javadoc, the documents are generated successfully. The issue occurs if we use javadoc:aggregate switch.

     > mvn clean install javadoc:aggregate     (this fails with NPE error)

     > mvn clean install javadoc:javadoc        (this works)


The issue appears to be similar to Javadoc aggregate NullPointerException

However, it is unclear what the resolution was.


Any idea on how to troubleshoot this issue further?

Thank you in advance.

Best Answer

Answers

This discussion has been closed.