error in generating Javadoc ..
Hi,
I'm trying to run a ant script to create javadoc. I'm using JDK 1.5 for the same. But I'm getting following error.
Can anybody give me some suggestion what could be wrong there. I'm not getting any files written after this error, and build is failing due to this.
javadoc: error - In doclet class x.y.z, method start has thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
at com.sun.tools.doclets.internal.toolkit.Configuration.setOptions(Configuration.java:404)
at a.b.c.d.Standard.start(Standard.java:63)
at a.b.c.start(c.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
1 error
at java.lang.reflect.Method.invoke(Method.java:585)
I'm really got frustrated in searching whats wrong in this.
Thanks in advance for any support and suggestions.
- Nrupesh
[1096 byte] By [
nrupesha] at [2007-11-27 6:08:40]

# 2
Hi,
Using JDK 1.5.0, and the ANT target which i'm running is shown below ..
<target name="javadoc_template">
<mkdir dir="${nb.output.directory}/${nb.internal.target}" />
<path id="doclet_pathref">
<path refid="v_classpath"/>
<fileset dir="${ant.home}/lib/lib_v">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${nb.install.directory}/lib/ext">
<include name="**/*.jar"/>
</fileset>
</path>
<javadoc destdir="${nb.output.directory}/${nb.internal.target}"
maxmemory="512M"
link="http://java.sun.com/j2se/1.5.0/docs/api/"
sourcepath="${nb.javadocprep.directory}/src"
overview="${nb.javadocprep.directory}/src/com/e/overview.html"
header="${build.datestamp}"
footer="${build.datestamp}"
doclet="com.a.b.c.VDoclet"
docletpathref="doclet_pathref"
packagelist="${basedir}/api_grouping/javadoc_def_packages_${nb.internal.target}.txt"
additionalparam="-showsecondarypages ${nb.install.directory}/bootstrap ${nb.internal.doclet_params} @${basedir}/api_grouping/javadoc_def_${nb.internal.target}.txt"
use="true"
access="${nb.internal.accesslevel}"
failonerror="true"
>
<classpath>
<path refid="v_classpath"/>
<pathelement location="${nb.sc.checkout.dir}/WEB-INF/lib/jakarta-servlet-2.3.jar"/>
<pathelement location="${nb.sc.checkout.dir}/WEB-INF/lib/verity.jar"/>
<pathelement location="${nb.sc.checkout.dir}/WEB-INF/lib/vindex.jar"/>
<pathelement location="${nb.sc.checkout.dir}/WEB-INF/lib/vsearch.jar"/>
</classpath>
</javadoc>
<copy todir="${nb.output.directory}/${nb.internal.target}" overwrite="true">
<fileset dir="${nb.javadocprep.directory}/src/com/e/">
<include name="*.gif"/>
<include name="*.html"/>
<exclude name="overview.html"/>
</fileset>
<fileset dir="${nb.javadocprep.directory}/src/">
<include name="copyrights.html"/>
</fileset>
</copy>
</target>
Message was edited by:
nrupesh