使用java 1.7生成javadoc:java 1.6中的java.lang.reflect.InvocationTargetException成功。有什么建议吗?

时间:2016-09-12 05:19:20

标签: java javadoc

当我尝试使用java 1.7生成javadoc时,由于下面提到的异常,我收到一个错误,而当我使用java 1.6时,它正在成功生成javadoc。出现异常的metod在jar文件中。

我在日志中收到的错误如下:

 [javadoc] javadoc: error - In doclet class com.vignette.portal.ant.internal.buildutility.doclet.VignetteDoclet,  method start has thrown an exception java.lang.reflect.InvocationTargetException
 [javadoc] java.util.MissingResourceException: Can't find resource for bundle com.sun.tools.doclets.internal.toolkit.resources.doclets, key doclet.Package
 [javadoc]     at java.util.ResourceBundle.getObject(ResourceBundle.java:395)
 [javadoc]     at java.util.ResourceBundle.getString(ResourceBundle.java:355)
 [javadoc]     at com.sun.tools.doclets.internal.toolkit.util.MessageRetriever.getText(MessageRetriever.java:100)
 [javadoc]     at com.sun.tools.doclets.internal.toolkit.Configuration.getText(Configuration.java:659)
 [javadoc]     at com.sun.tools.doclets.formats.html.markup.HtmlWriter.<init>(HtmlWriter.java:173)
 [javadoc]     at com.sun.tools.doclets.formats.html.markup.HtmlDocWriter.<init>(HtmlDocWriter.java:65)
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.abstraction.HtmlStandardWriter.<init>(HtmlStandardWriter.java:96)
 [javadoc] 1 error
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.SecondaryPageTypeDoclet$PackageFrame.<init>(SecondaryPageTypeDoclet.java:99)
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.SecondaryPageTypeDoclet.generate(SecondaryPageTypeDoclet.java:66)
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.VignetteDoclet.startGeneration(VignetteDoclet.java:74)
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.abstraction.Standard.start(Standard.java:66)
 [javadoc]     at com.vignette.portal.ant.internal.buildutility.doclet.VignetteDoclet.start(VignetteDoclet.java:46)
 [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [javadoc]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 [javadoc]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [javadoc]     at java.lang.reflect.Method.invoke(Method.java:606)
 [javadoc]     at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:280)
 [javadoc]     at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:160)
 [javadoc]     at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:397)
 [javadoc]     at com.sun.tools.javadoc.Start.begin(Start.java:167)
 [javadoc]     at com.sun.tools.javadoc.Main.execute(Main.java:59)
 [javadoc] 7429 warnings
 [javadoc]     at com.sun.tools.javadoc.Main.main(Main.java:49)

0 个答案:

没有答案