JDK-6319902 : Javadoc tool throws IllegalArgumentException on execution
  • Type: Bug
  • Component: tools
  • Sub-Component: javadoc(tool)
  • Affected Version: 5.0u4
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-09-05
  • Updated: 2014-05-05
  • Resolved: 2005-10-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
1.5.0_04 and 6.0_48

ADDITIONAL OS VERSION INFORMATION :
Windows XP

A DESCRIPTION OF THE PROBLEM :
On running the Javadoc command using 1.5.0 or 6.0, the javadoc command terminates with a IllegalArgumentException. This can be rectified by clearing the classpath and trying again. It does not show up using 1.4.2_08.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Run the command javadoc "source name" against any source file

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Documentation generated
ACTUAL -
java.lang.IllegalArgumentException is thrown

ERROR MESSAGES/STACK TRACES THAT OCCUR :
The stack trace is given below - 
Loading source file test.java...
Constructing Javadoc information...
Standard Doclet version 1.5.0_04
Building tree for all the packages and classes...
Generating test.html...
java.lang.IllegalArgumentException
        at sun.net.www.ParseUtil.decode(ParseUtil.java:183)
        at sun.misc.URLClassPath$FileLoader.<init>(URLClassPath.java:863)
        at sun.misc.URLClassPath$3.run(URLClassPath.java:319)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:313)
        at sun.misc.URLClassPath.getLoader(URLClassPath.java:290)
        at sun.misc.URLClassPath.findResource(URLClassPath.java:141)
        at java.net.URLClassLoader$2.run(URLClassLoader.java:362)

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Clear the classpath and try again.

Comments
EVALUATION Same as 6219854. This is a class path issue.
14-10-2005