9805 - Generate JavaDoc crashes.

When I run the 'Generate JavaDoc' tool on valid compilable/runnable Java source code, it crashes with the following stack trace:


java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
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)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.java:65)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.java:213)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:107)
at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:72)
at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
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:585)
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)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(LayoutParser.java:79)
at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(ClassBuilder.java:108)
at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:155)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
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:585)
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)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlDoclet.java:159)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(AbstractDoclet.java:164)
at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(AbstractDoclet.java:106)
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:585)
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)



13 comments
Comment actions Permalink

Hello Dave,

There's no IDEA code in the stacktrace. Looks like a Sun bug to me.

When I run the 'Generate JavaDoc' tool on valid compilable/runnable
Java source code, it crashes with the following stack trace:

java.lang.IllegalArgumentException
at sun.net.www.ParseUtil.decode(ParseUtil.java:189)
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)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(URLClassLoader.java:359)
at java.lang.ClassLoader.getResource(ClassLoader.java:977)
at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:1159)
at javax.xml.parsers.SecuritySupport$4.run(SecuritySupport.java:72)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.xml.parsers.SecuritySupport.getResourceAsStream(SecuritySupport.
java:65)
at
javax.xml.parsers.FactoryFinder.findJarServiceProvider(FactoryFinder.j
ava:213)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:1
07)
at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
LayoutParser.java:72)
at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(Cla
ssBuilder.java:108)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlD
oclet.java:155)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFil
es(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDo
clet.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.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
at
com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
LayoutParser.java:79)
at
com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(Cla
ssBuilder.java:108)
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlD
oclet.java:155)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFil
es(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDo
clet.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.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)
com.sun.tools.doclets.internal.toolkit.util.DocletAbortException
at
com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(HtmlD
oclet.java:159)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFil
es(AbstractDoclet.java:164)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
AbstractDoclet.java:106)
at
com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(AbstractDo
clet.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.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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)
---
Original message URL:
http://www.jetbrains.net/devnet/message/5235867#5235867

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Does the 'Generate JavaDoc' tool option use a JavaDoc tool bundled with IDEA, or the host system's JavaDoc tool ?

If the former, then shouldn't JetBrains be bundling a JavaDoc tool that works?

0
Comment actions Permalink

Hello Dave,

IDEA uses javadoc tool from your jdk installation

Thank you
-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Does the 'Generate JavaDoc' tool option use a JavaDoc tool bundled
with IDEA, or the host system's JavaDoc tool ?

If the former, then shouldn't JetBrains be bundling a JavaDoc tool
that works?

---
Original message URL:
http://www.jetbrains.net/devnet/message/5235875#5235875



0
Comment actions Permalink

OK, thanks Anna - looks like JetBrains are off the hook...

Strangely, I get the same error whichever JDK I use (1.5.0_14, 1.6.0_07, 1.6.0_12) here on my work PC, and I have confirmed that it uses the javadoc.exe in the JDK bin directory - but when I generate JavaDoc for the same project on my home PC (both run Windows XP), it runs without any problem... weird.

0
Comment actions Permalink

There is probably a difference in the classpath between the two machines...

Bas

0
Comment actions Permalink

Maybe, you refer to some environment variable in the "Other command line arguments" dialog field, and the values are different on different computers. (Just a guess, no certain knowledge.)

0
Comment actions Permalink

Almost certainly... it's a good point, maybe an incompatible library is being picked up.

0
Comment actions Permalink

No, there aren't any additional arguments... it seems more likely that, as Bas suggested, it's a classpath problem.

I'll check it out. Anyway, thanks for the suggestions :-)

0
Comment actions Permalink

Yup, that was it - for some long-forgotten reason, I had a system classpath set. Deleting it fixed the problem.

Many thanks Bas, much appreciated

0
Comment actions Permalink

What you share is all my need and we all hope you can share us more info further time. And I like shopping online, for the coming Christmas Day ( http://www.overgift.com/ ) want to prepare beauty http://www.overgift.com** in that day, and search online, and find some info. More, used to buying kinds shoes online shop and yesterday I found unusual shoes called http://www.vibrambazaar.com/** which really tract my eyes. Then no words to say I bought a pair http://www.vibrambazaar.com/** not for myself, sent this as a gift for my father who love sport. So if you want to live a happy life you should concern more things around you, buy Christmas tree on http://www.overgift.com/** and http://www.vibrambazaar.com/** online shop. Come and more choices.

---
Original message URL: http://devnet.jetbrains.net/message/5278478#5278478

0
Comment actions Permalink

A round http://www.pandora-bracelets-australia.com/ cut has the http://www.pandora-bracelets-australia.com/ greatest http://www.pandora-bracelets-australia.com/pandora-charms/pandora-bangles/ number of facets, http://www.pandora-bracelets-australia.com/ and if properly proportioned, will appear http://www.pandora-bracelets-australia.com/ the most brilliant. An emerald http://www.pandora-bracelets-australia.com/pandora-earrings/ cut diamond has the fewest facets, http://www.pandora-bracelets-australia.com/pandora-beads/ so larger stones are need to make an impressive  display.Clarity: All diamonds, except the most rare, http://www.pandora-bracelets-australia.com/pandora-necklaces/ has some kind of mark,nick, or cloudiness to them http://www.pandora-bracelets-australia.com/ caused by flaws. http://www.pandora-bracelets-australia.com/ The clarity of the diamond is measured by an alphabetical and  numerical scale with the diamonds in the “F” category http://www.pandora-bracelets-australia.com/pandora-beads/ being completely http://www.pandora-bracelets-australia.com/pandora-beads/ flawless.

---
Original message URL: http://devnet.jetbrains.net/message/5279126#5279126

0

Please sign in to leave a comment.