Eclipse - throw JavaDoc - NullPointerException

I did not create JavaDocs for the Android project, which I worked on for about a month. I just tried and I get the following output (without output to the output directory):

Building tree for all the packages and classes... 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:447) at com.sun.tools.doclets.internal.toolkit.util.Util.getAllInterfaces(Util.java:485) at com.sun.tools.doclets.internal.toolkit.util.ClassTree.processType(ClassTree.java:184) at com.sun.tools.doclets.internal.toolkit.util.ClassTree.buildTree(ClassTree.java:136) 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:601) 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) 2016 warnings 

I create documents at the project level (Android) and include the ActionBarSherlock and the Facebook Android project. Regardless of whether I include them, the documentation still does not work.

I am trying to run this in the Eclipse Java EE IDE for web developers, Indigo, Build 20120216-1857

JavaDoc Command:

 /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/javadoc 

Playing with the configuration a bit and I get the following error:

full/path/BaseModelListAdapter.java:147: error: unmappable character for encoding ASCII * @param parent?

A line that:

* @param parentß

Removing this line fixes one of the errors, but I still get weird ones, like the inability to find the base Android packages:

/full/path/CompositeCategoryAdapter.java:7: error: package android.view does not exist import android.view.View; ^

And character errors:

 BaseModelListAdapter.java:420: error: cannot find symbol public static BaseModelItemRowViewHolder createInstance( View v ) ^ symbol: class View location: class BaseModelItemRowViewHolder 
+4
source share
1 answer

You probably need to run:

 javadoc -encoding utf-8 

Alternatively, you can simply use Unicode escape sequences (e.g. \u0000 ) rather than including Unicode characters directly.

Perhaps a related question: Unicode in javadoc and comments?

+3
source

All Articles