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)
Please sign in to leave a comment.
Hello Dave,
There's no IDEA code in the stacktrace. Looks like a Sun bug to me.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.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?
Hello Dave,
IDEA uses javadoc tool from your jdk installation
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
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.
There is probably a difference in the classpath between the two machines...
Bas
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.)
Almost certainly... it's a good point, maybe an incompatible library is being picked up.
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 :-)
See also:
http://forums.sun.com/thread.jspa?threadID=777383
http://forums.java.net/jive/message.jspa?messageID=214067
Bas
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
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
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
http://www.qvodsir.com/视频/经典人体艺术写真集/更没有一种色彩比人体的皮肤色更鲜嫩、滋润、透明、更有光泽和
http://www.qvodsir.com/动漫/火影忍者/动画迷们,欢迎来到 游久粉丝站。欢迎观看火影忍者动画417集http://www.qvodsir.com/动漫/喜羊羊与灰太狼/是每个小朋友的最爱,喜羊羊与灰太狼也是中国人的骄傲http://www.qvodsir.com/连续剧/宫锁心玉/进入了冷宫,情节相当虐心。http://www.qvodsir.com/动漫/死神/热血动漫竞技场,这里汇聚了热门动漫中的各路好手!
---
Original message URL: http://devnet.jetbrains.net/message/5286966#5286966