加载JavascriptConfiguration.xml时出错

时间:2012-07-17 11:52:45

标签: java htmlunit

我第一次尝试使用HtmlUnit。 在Eclipse中工作以获得EE。 我的buildpath中有jar文件。 项目编译但运行时会给出运行时错误:

com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration loadConfiguration 严重:加载JavascriptConfiguration.xml时出错

显示java.lang.NullPointerException     在com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getConfigurationFileAsReader(JavaScriptConfiguration.java:256)     在com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.loadConfiguration(JavaScriptConfiguration.java:180)     在com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration。(JavaScriptConfiguration.java:142)     在com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:237)     在com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine。(JavaScriptEngine.java:117)     在com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:215)     在com.gargoylesoftware.htmlunit.WebClient。(WebClient.java:189)

已经找到一些帖子说明在哪里获取该文件以及放置它但没有任何帮助。 有人知道吗? 感谢

0 个答案:

没有答案