File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Javadoc NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Javadoc NullPointerException" Watch "Javadoc NullPointerException" New topic
Author

Javadoc NullPointerException

Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 142
    
    1
Hi,

I get a NullPointerException when I try to Generate Javadoc my entire project.



The project is titled DBConnections and Project Explorer shows it like this.

When I select either (default package) or demo.database it works fine, but of course the javadoc of the other package is not included. When I select both I get the NullPointerException.

Can someone help please?
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

It might help if you tell us how you invoked the javadoc tool and where you get the exception (including stack-trace).


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 142
    
    1
Hi Wouter,

I'll answer that as best I can. Let me know if I can provide more information.

I invoked javadoc from Eclipse menu Project >> Generate Javadoc

Here's the stack trace from the Eclipse console

java.lang.NullPointerException
at com.sun.tools.doclets.formats.html.PackageUseWriter.generatePackageUse(PackageUseWriter.java:180)
at com.sun.tools.doclets.formats.html.PackageUseWriter.generatePackageList(PackageUseWriter.java:124)
at com.sun.tools.doclets.formats.html.PackageUseWriter.generatePackageUse(PackageUseWriter.java:110)
at com.sun.tools.doclets.formats.html.PackageUseWriter.generatePackageUseFile(PackageUseWriter.java:99)
at com.sun.tools.doclets.formats.html.PackageUseWriter.generate(PackageUseWriter.java:78)
at com.sun.tools.doclets.formats.html.ClassUseWriter.generate(ClassUseWriter.java:116)
at com.sun.tools.doclets.formats.html.HtmlDoclet.generateOtherFiles(HtmlDoclet.java:92)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:122)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDoclet.java:64)
at com.sun.tools.doclets.formats.html.HtmlDoclet.start(HtmlDoclet.java:42)
at com.sun.tools.doclets.standard.Standard.start(Standard.java:23)
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 com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:269)
at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:143)
at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:340)
at com.sun.tools.javadoc.Start.begin(Start.java:128)
at com.sun.tools.javadoc.Main.execute(Main.java:41)
at com.sun.tools.javadoc.Main.main(Main.java:31)
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

It's a bug. See this. The javaDoc has been updated with Java 7 so maybe that may have fixed it.
Lou Pellegrini
Ranch Hand

Joined: Nov 11, 2003
Posts: 142
    
    1
Thank you Wouter!

Now this issue has stopped and I'm getting my javadoc.

But I'll keep this in mind in case I see it again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Javadoc NullPointerException
 
Similar Threads
Javadoc ?
Ant X JavaDoc
Issue Whie Deploying EJB on JBoss AS 5.1.0...
Ant X JavaDoc
how to compile using Eclipse