This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 24636 - Exception in doclet class com.sun.tools.doclets.standard.Standard, method start
Summary: Exception in doclet class com.sun.tools.doclets.standard.Standard, method start
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Javadoc (show other bugs)
Version: 3.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-11 12:05 UTC by Werner Schorstein
Modified: 2003-10-03 13:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Werner Schorstein 2002-06-11 12:05:06 UTC
I have installed netbeans 3.3.2 bevore some days und i tried to generate a javadoc of 
a little source-code.
But i allways receive the following reports in the output window:

Loading source file D:\PROJEKTE\Java\objects\MyPlot.java...
Constructing Javadoc information...
Standard Doclet version 1.4.0
Generating D:\netbeans\javadoc\constant-values.html...
Building tree for all the packages and classes...
Building index for all the packages and classes...
Generating D:\netbeans\javadoc\overview-tree.html...
Generating D:\netbeans\javadoc\index-all.html...
Generating D:\netbeans\javadoc\deprecated-list.html...
Building index for all classes...
Generating D:\netbeans\javadoc\allclasses-frame.html...
Generating D:\netbeans\javadoc\allclasses-noframe.html...
Generating D:\netbeans\javadoc\index.html...
Generating D:\netbeans\javadoc\packages.html...
Generating D:\netbeans\javadoc\MyPlot.html...
1 error

javadoc: In doclet class com.sun.tools.doclets.standard.Standard,  method start has 
thrown an exception java.lang.reflect.InvocationTargetException
java.lang.NullPointerException
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:176)
        at 
com.sun.tools.javadoc.PackageDocImpl.documentation(PackageDocImpl.java:76)
        at com.sun.tools.javadoc.DocImpl.comment(DocImpl.java:77)
        at com.sun.tools.javadoc.DocImpl.tags(DocImpl.java:107)
        at 
com.sun.tools.doclets.standard.HtmlStandardWriter.serialDocInclude(HtmlStandardWrit
er.java:1381)
        at 
com.sun.tools.doclets.standard.HtmlStandardWriter.serialInclude(HtmlStandardWriter.j
ava:1362)
        at com.sun.tools.doclets.standard.tags.SeeTaglet.toString(SeeTaglet.java:105)
        at 
com.sun.tools.doclets.standard.HtmlStandardWriter.generateTagInfo(HtmlStandardWrit
er.java:1494)
        at 
com.sun.tools.doclets.standard.ClassWriter.generateClassFile(ClassWriter.java:234)
        at com.sun.tools.doclets.standard.ClassWriter.generate(ClassWriter.java:95)
        at 
com.sun.tools.doclets.standard.Standard.generateClassCycle(Standard.java:245)
        at 
com.sun.tools.doclets.standard.Standard.generateClassFiles(Standard.java:195)
        at com.sun.tools.doclets.standard.Standard.startGeneration(Standard.java:166)
        at com.sun.tools.doclets.standard.Standard.start(Standard.java:44)
        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:324)
        at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:196)
        at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:95)
        at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:288)
        at com.sun.tools.javadoc.Start.begin(Start.java:114)
        at com.sun.tools.javadoc.Main.execute(Main.java:44)
        at com.sun.tools.javadoc.Main.main(Main.java:34)

How can i corect the bug?
What can i do?
Comment 1 Svata Dedic 2002-06-11 12:13:00 UTC
It seems more like javadoc tool bug rather than a NetBeans' one. Can
you please look into your ide.log file, the command used to invoke
"javadoc" tool should be logged near the end of it. Please paste the
exact command here for reference.
Comment 2 Werner Schorstein 2002-06-11 15:03:13 UTC
Here comes ide.log:
----------------------------------------------------------------------
---------
>Log Session: Dienstag, 11. Juni 2002 15.44 Uhr CEST
>System Info: 
  Product Version       = NetBeans IDE 3.3.2 (Build 200206050332)
  IDE Versioning        = IDE/1 spec=1.43.3 impl=200206050332
  Operating System      = Windows 98 version 4.10 running on x86
  Java; VM; Vendor      = 1.4.0; Java HotSpot(TM) Client VM 1.4.0-b92; 
Sun Microsystems Inc.
  Java Home             = E:\J2SDK1.4.0\JRE
  System Locale; Encod. = de_DE; Cp1252
  Home Dir; Current Dir = C:\WINDOWS; E:\Programme\netbeans
  IDE Install; User Dir = E:\PROGRAMME\NETBEANS; d:\netbeans
  CLASSPATH             = 
E:\PROGRAMME\NETBEANS\lib\patches\openide-compat.jar;E:\PROGRAMME\NETB
EANS\lib\core.jar;E:\PROGRAMME\NETBEANS\lib\openide.jar;E:\PROGRAMME\N
ETBEANS\lib\ext\crimson.jar;E:\PROGRAMME\NETBEANS\lib\ext\jh.jar;E:\PR
OGRAMME\NETBEANS\lib\ext\regexp.jar;E:\PROGRAMME\NETBEANS\lib\ext\rmi-
ext.jar;E:\PROGRAMME\NETBEANS\lib\ext\terminalemulator.jar;E:\PROGRAMM
E\NETBEANS\lib\ext\xerces.jar;E:\J2SDK1~1.0\lib\dt.jar;E:\J2SDK1~1.0\l
ib\tools.jar
----------------------------------------------------------------------
---------
Existing modules:
	Ant [org.apache.tools.ant.module/2 2.7.3 200206050332]
	Applet [org.netbeans.modules.applet/1 1.7.3 200206050332]
	Auto Update [org.netbeans.modules.autoupdate/1 2.1.2 
200206050332]
	Bean Patterns [org.netbeans.modules.beans/1 1.7.3 
200206050332]
	Built-in CVS Client [org.netbeans.modules.cvsclient/1 1.4.3 
200206050332]
	CVS Command-Line Client Backward Compatibility 
[org.netbeans.modules.vcs.cmdline.compat/1 1.0.2 200206050332]
	Editor [org.netbeans.modules.editor/1 1.8.3 200206050332]
	External HTML Browser [org.netbeans.modules.extbrowser/1 0.3.3 
200206050332]
	Form Editor [org.netbeans.modules.form/2 1.7.3 200206050332]
	General Online Help [org.netbeans.modules.usersguide/1 1.9.2 
200206050332]
	HTML [org.netbeans.modules.html/1 1.8.3 200206050332]
	HTTP Server [org.netbeans.modules.httpserver/1 1.7.3 
200206050332]
	IDE Core [org.netbeans.core/1 1.1]
	Image [org.netbeans.modules.image/1 1.7.2 200206050332]
	Internationalization [org.netbeans.modules.i18n/1 1.9.3 
200206050332]
	Internationalization of Form [org.netbeans.modules.i18n.form/2 
1.8.3 200206050332]
	JAR Packager [org.netbeans.modules.jarpackager/2 1.9.3 
200206050332]
	JNDI [org.netbeans.modules.jndi/1 1.4.3 200206050332]
	JPDA Debugger [org.netbeans.modules.debugger.jpda/1 1.9.3 
200206050332]
	JSP Syntax Coloring [org.netbeans.modules.web.core.syntax/1 
1.5.2 200206050332]
	JSP/Servlet [org.netbeans.modules.web.core/1 1.5.2 
200206050332]
	Java Source Files [org.netbeans.modules.java/1 1.7.3 
200206050332]
	Javadoc [org.netbeans.modules.javadoc/1 1.7.3 200206050332]
	New Module Wizard [org.netbeans.modules.apisupport.lite/1 
0.2.3 200206050332]
	Projects [org.netbeans.modules.projects/1 1.7.3 200206050332]
	RMI [org.netbeans.modules.rmi/1 1.4.3 200206050332]
	Resource Bundle Syntax Coloring 
[org.netbeans.modules.properties.syntax/1 1.7.3 200206050332]
	Resource Bundles [org.netbeans.modules.properties/1 1.7.3 
200206050332]
	Scripting Support [org.netbeans.modules.scripting/1 1.4.2 
200206050332]
	Sourceless Java Classes [org.netbeans.modules.clazz/1 1.8.3 
200206050332]
	Text [org.netbeans.modules.text/1 1.7.3 200206050332]
	Tomcat 3.2 Server [org.netbeans.modules.web.tomcat/1 1.3.2 
200206050332]
	User Utilities [org.netbeans.modules.utilities/1 1.7.3 
200206050332]
	VCS Generic Command-Line Support 
[org.netbeans.modules.vcs.advanced/1 1.5.3 200206050332]
path="" :jsp: init
[IDE-Exec] Executing:
0 .= E:\J2SDK1.4.0\JRE\..\bin\javadoc
1 .= -protected
2 .= -J-Xmx96m
3 .= -d
4 .= D:\netbeans\javadoc
5 .= -sourcepath
6 .= D:\PROJEKTE\Java\objects;
7 .= -classpath
8 .= 
d:\netbeans\system;d:\netbeans\system;E:\PROGRAMME\NETBEANS\system;E:\
Programme\netbeans\docs\ant-api.zip;d:\netbeans\javadoc;E:\Programme\n
etbeans\modules\ext\AbsoluteLayout.jar;E:\Programme\netbeans\modules\e
xt\servlet-2.2.jar;E:\Programme\netbeans\beans\TimerBean.jar;D:\PROJEK
TE\Java\go2cel;D:\PROJEKTE\Java\objects;E:\Programme\Ptolemy\Ptplot 
5.1p1;E:\PROGRAMME\NETBEANS\lib\core.jar;E:\PROGRAMME\NETBEANS\lib\ope
nide.jar;E:\PROGRAMME\NETBEANS\lib\ext\crimson.jar;E:\PROGRAMME\NETBEA
NS\lib\ext\jh.jar;E:\PROGRAMME\NETBEANS\lib\ext\regexp.jar;E:\PROGRAMM
E\NETBEANS\lib\ext\rmi-ext.jar;E:\PROGRAMME\NETBEANS\lib\ext\terminale
mulator.jar;E:\PROGRAMME\NETBEANS\lib\ext\xerces.jar;E:\J2SDK1~1.0\lib
\dt.jar;E:\J2SDK1~1.0\lib\tools.jar;E:\J2SDK1.4.0\JRE\lib\rt.jar;E:\J2
SDK1.4.0\JRE\lib\i18n.jar;E:\J2SDK1.4.0\JRE\lib\sunrsasign.jar;E:\J2SD
K1.4.0\JRE\lib\jsse.jar;E:\J2SDK1.4.0\JRE\lib\jce.jar;E:\J2SDK1.4.0\JR
E\lib\charsets.jar;E:\J2SDK1.4.0\JRE\classes;;E:\J2SDK1.4.0\JRE\lib\ex
t\dnsns.jar;E:\J2SDK1.4.0\JRE\lib\ext\ldapsec.jar;E:\J2SDK1.4.0\JRE\li
b\ext\localedata.jar;E:\J2SDK1.4.0\JRE\lib\ext\sunjce_provider.jar;E:\
PROGRAMME\NETBEANS\modules\autoload\classfile.jar;E:\PROGRAMME\NETBEAN
S\modules\beans.jar;E:\PROGRAMME\NETBEANS\modules\utilities.jar;E:\PRO
GRAMME\NETBEANS\modules\autoload\j2eeserver.jar;E:\PROGRAMME\NETBEANS\
modules\autoupdate.jar;E:\PROGRAMME\NETBEANS\modules\autoload\vcscore.
jar;E:\PROGRAMME\NETBEANS\modules\jarpackager.jar;E:\PROGRAMME\NETBEAN
S\modules\scripting.jar;E:\PROGRAMME\NETBEANS\modules\ext\jython.jar;E
:\PROGRAMME\NETBEANS\modules\docs\scripting-manual.zip;E:\PROGRAMME\NE
TBEANS\modules\ext\djava.jar;E:\PROGRAMME\NETBEANS\modules\ext\bsh-1.0
1.jar;E:\PROGRAMME\NETBEANS\modules\applet.jar;E:\PROGRAMME\NETBEANS\m
odules\cvscompat.jar;E:\PROGRAMME\NETBEANS\modules\properties.jar;E:\P
ROGRAMME\NETBEANS\modules\jndi.jar;E:\PROGRAMME\NETBEANS\modules\docs\
jndi.jar;E:\PROGRAMME\NETBEANS\modules\image.jar;E:\PROGRAMME\NETBEANS
\modules\java.jar;E:\PROGRAMME\NETBEANS\modules\ext\javac.jar;E:\PROGR
AMME\NETBEANS\modules\ext\java-gj.jar;E:\PROGRAMME\NETBEANS\modules\js
p-tomcat.jar;E:\PROGRAMME\NETBEANS\modules\i18n.jar;E:\PROGRAMME\NETBE
ANS\modules\html.jar;E:\PROGRAMME\NETBEANS\modules\autoload\openidex.j
ar;E:\PROGRAMME\NETBEANS\modules\autoload\debuggerCore.jar;E:\PROGRAMM
E\NETBEANS\modules\rmi.jar;E:\PROGRAMME\NETBEANS\modules\docs\rmi.jar;
E:\PROGRAMME\NETBEANS\modules\ant.jar;E:\PROGRAMME\NETBEANS\modules\ex
t\ant-optional-1.4.1.jar;E:\PROGRAMME\NETBEANS\modules\docs\ant-manual
.zip;E:\PROGRAMME\NETBEANS\modules\ext\ant-1.4.1.jar;E:\PROGRAMME\NETB
EANS\modules\editor.jar;E:\PROGRAMME\NETBEANS\modules\ext\nb-editor.ja
r;E:\PROGRAMME\NETBEANS\modules\extbrowser.jar;E:\PROGRAMME\NETBEANS\m
odules\clazz.jar;E:\PROGRAMME\NETBEANS\modules\usersguide.jar;E:\PROGR
AMME\NETBEANS\modules\docs\usersguide.jar;E:\PROGRAMME\NETBEANS\module
s\text.jar;E:\PROGRAMME\NETBEANS\modules\jpdaDebugger.jar;E:\PROGRAMME
\NETBEANS\modules\projects.jar;E:\PROGRAMME\NETBEANS\modules\apisuppor
t-lite.jar;E:\PROGRAMME\NETBEANS\modules\docs\apisupport-lite.jar;E:\P
ROGRAMME\NETBEANS\modules\jsp-syntax.jar;E:\PROGRAMME\NETBEANS\modules
\javacvs.jar;E:\PROGRAMME\NETBEANS\modules\ext\cvslib.jar;E:\PROGRAMME
\NETBEANS\modules\properties-syntax.jar;E:\PROGRAMME\NETBEANS\modules\
vcsgen.jar;E:\PROGRAMME\NETBEANS\modules\httpserver.jar;E:\PROGRAMME\N
ETBEANS\modules\ext\webserver.jar;E:\PROGRAMME\NETBEANS\modules\autolo
ad\servletapi.jar;E:\PROGRAMME\NETBEANS\modules\autoload\..\ext\servle
t-2.2.jar;E:\PROGRAMME\NETBEANS\modules\form.jar;E:\PROGRAMME\NETBEANS
\modules\ext\AbsoluteLayout.jar;E:\PROGRAMME\NETBEANS\modules\i18n-for
m.jar;E:\PROGRAMME\NETBEANS\modules\javadoc.jar;E:\PROGRAMME\NETBEANS\
modules\jsp.jar;E:\PROGRAMME\NETBEANS\modules\ext\jasper.jar
9 .= D:\PROJEKTE\Java\objects\MyPlot.java

Comment 3 Svata Dedic 2002-06-12 07:27:55 UTC
Thanks.
So far it seems that the javadoc tool has a bug; let's narrow that
down. There are a number of convenience libraries passed to javadoc to
search and it can go mad if one seems corrupted for it.

Please go to
Tools - Options - Code Documentation - JavaDoc Executors - <the
executor that you have used>. Then select its "External Process"
property, open a custom editor for that (click the elipsis), a window
with another property sheet will appear.
Now again click the elipsis in "External Process" property. In the
window please remove "{:}{classpath}{:}{bootclasspath}{:}{library}"
from the commandline - so the -classpath switch should read only
"-classpath {filesystems}".
This will trim down the number of entries on -classpath to just those
mounted in FileSystems (having COMPILE capability).
Close all the windows and try to generate the docs again.

If there's some error in NB setup, the error should go away. If not,
you probably should report the bug to JavaSoft who makes javadoc tool.
Comment 4 Werner Schorstein 2002-06-12 08:59:56 UTC
With your suggested correction it works fine now.
Thanks.
Comment 5 Jan Becicka 2003-10-03 13:36:33 UTC
Verified