我有一个使用来自MicroFocus公司的公共API的应用程序。我目前不打算在API上做太多事情,更简单的是使用X.509身份验证向网站进行身份验证。
我正在Eclipse Mars.2版本(4.5.2)中构建应用程序,并针对Java JRE 1.8执行该应用程序。
我希望我能提供代码,但是我被告知了它的专有性,但是目前,当我启动应用程序时,它连接到服务器,提示我进行X.509认证并返回会话。
当尝试完成身份验证部分时,我在Eclipe中收到以下错误消息:
netscape.javascript.JSException
at netscape.javascript.JSObject.getWindow(Unknown Source)
at com.wrq.javascript.JavaScriptInvoker.a(Unknown Source)
at com.wrq.javascript.JavaScriptInvoker.access$000(Unknown Source)
at com.wrq.javascript.JavaScriptInvoker$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.wrq.javascript.JavaScriptInvoker.doPrivJavaScriptCall(Unknown Source)
at com.wrq.scrp.rmclient.RMCUIManager$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at com.wrq.scrp.rmclient.RMCUIManager$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
我们已要求提供SDK的公司提供帮助,这就是他们所说的。
我相信异常错误与参数无关,而是由此SDK Java应用程序使用的类路径中缺少某些内容引起的。
我不是计算机的管理员,无法设置CLASSPATH环境变量,但被告知有一种方法可以通过Eclipse完成。