Skip to main content

Error using Java WebStart with JDIC 0.9.5

1 reply [Last post]
milman
Offline
Joined: 2008-12-09

I am trying to use WebStart with JDIC 0.9.5 for the embedded browser capability. I am getting the following error when trying to instantiate the org.jdesktop.jdic.browser.WebBrowser from within the Web Start application. I have checked the Webstart/JDIC instructions several times and believe I am following them correctly.

Any help would be appreciated.

The stack trace is:

ava.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkMemberAccess(Unknown Source)
at java.lang.Class.checkMemberAccess(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at org.jdesktop.jdic.init.JNLPClassLoaderAccessor$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.jdesktop.jdic.init.JNLPClassLoaderAccessor.(Unknown Source)
at org.jdesktop.jdic.init.JdicManager.init(Unknown Source)
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm$1.run(ReportForm.java:225)
at java.security.AccessController.doPrivileged(Native Method)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.initBrowser(ReportForm.java:222)
at com.broadsoft.bwcallcenter.gui.panel.FlexReportForm.initBrowser(FlexReportForm.java:92)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.setPage(ReportForm.java:347)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.loadHomePage(ReportForm.java:197)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.setFormVisible(ApplicationPanel.java:1345)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.updateMonitoringFormVisibility(ApplicationPanel.java:985)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.sessionUpdated(ApplicationPanel.java:1184)
at com.broadsoft.bwcallcenter.gui.controller.ApplicationPanelController.sessionUpdated(ApplicationPanelController.java:72)
at com.broadsoft.bwcallcenter.gui.controller.UIControllerManager.sessionUpdated(UIControllerManager.java:484)
at com.broadsoft.bwcallcenter.gui.controller.UIController$57.run(UIController.java:1179)
at java.awt.event.InvocationEvent.dispatch(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)
java.lang.NullPointerException
at org.jdesktop.jdic.init.JNLPClassLoaderAccessor.findLibrary(Unknown Source)
at org.jdesktop.jdic.init.JdicManager.init(Unknown Source)
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm$1.run(ReportForm.java:225)
at java.security.AccessController.doPrivileged(Native Method)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.initBrowser(ReportForm.java:222)
at com.broadsoft.bwcallcenter.gui.panel.FlexReportForm.initBrowser(FlexReportForm.java:92)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.setPage(ReportForm.java:347)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.loadHomePage(ReportForm.java:197)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.setFormVisible(ApplicationPanel.java:1345)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.updateMonitoringFormVisibility(ApplicationPanel.java:985)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.sessionUpdated(ApplicationPanel.java:1184)
at com.broadsoft.bwcallcenter.gui.controller.ApplicationPanelController.sessionUpdated(ApplicationPanelController.java:72)
at com.broadsoft.bwcallcenter.gui.controller.UIControllerManager.sessionUpdated(UIControllerManager.java:484)
at com.broadsoft.bwcallcenter.gui.controller.UIController$57.run(UIController.java:1179)
at java.awt.event.InvocationEvent.dispatch(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)
java.security.PrivilegedActionException: org.jdesktop.jdic.init.JdicInitException: java.lang.NullPointerException
at org.jdesktop.jdic.init.JdicManager.loadLibrary(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm$1.run(ReportForm.java:225)
at java.security.AccessController.doPrivileged(Native Method)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.initBrowser(ReportForm.java:222)
at com.broadsoft.bwcallcenter.gui.panel.FlexReportForm.initBrowser(FlexReportForm.java:92)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.setPage(ReportForm.java:347)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.loadHomePage(ReportForm.java:197)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.setFormVisible(ApplicationPanel.java:1345)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.updateMonitoringFormVisibility(ApplicationPanel.java:985)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.sessionUpdated(ApplicationPanel.java:1184)
at com.broadsoft.bwcallcenter.gui.controller.ApplicationPanelController.sessionUpdated(ApplicationPanelController.java:72)
at com.broadsoft.bwcallcenter.gui.controller.UIControllerManager.sessionUpdated(UIControllerManager.java:484)
at com.broadsoft.bwcallcenter.gui.controller.UIController$57.run(UIController.java:1179)
at java.awt.event.InvocationEvent.dispatch(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)
Caused by: org.jdesktop.jdic.init.JdicInitException: java.lang.NullPointerException
at org.jdesktop.jdic.init.JdicManager.init(Unknown Source)
... 22 more
Caused by: java.lang.NullPointerException
at java.io.File.(Unknown Source)
... 23 more
isDefaultBrowserMozilla
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath()Ljava/lang/String;
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.nativeGetBrowserPath(Native Method)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.getBrowserPath(Unknown Source)
at org.jdesktop.jdic.browser.internal.WebBrowserUtil.isDefaultBrowserMozilla(Unknown Source)
at org.jdesktop.jdic.browser.MsgClient.(Unknown Source)
at org.jdesktop.jdic.browser.NativeEventThread.(Unknown Source)
at org.jdesktop.jdic.browser.WebBrowser.(Unknown Source)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm$1.run(ReportForm.java:225)
at java.security.AccessController.doPrivileged(Native Method)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.initBrowser(ReportForm.java:222)
at com.broadsoft.bwcallcenter.gui.panel.FlexReportForm.initBrowser(FlexReportForm.java:92)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.setPage(ReportForm.java:347)
at com.broadsoft.bwcallcenter.gui.panel.ReportForm.loadHomePage(ReportForm.java:197)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.setFormVisible(ApplicationPanel.java:1345)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.updateMonitoringFormVisibility(ApplicationPanel.java:985)
at com.broadsoft.bwcallcenter.gui.panel.ApplicationPanel.sessionUpdated(ApplicationPanel.java:1184)
at com.broadsoft.bwcallcenter.gui.controller.ApplicationPanelController.sessionUpdated(ApplicationPanelController.java:72)
at com.broadsoft.bwcallcenter.gui.controller.UIControllerManager.sessionUpdated(UIControllerManager.java:484)
at com.broadsoft.bwcallcenter.gui.controller.UIController$57.run(UIController.java:1179)
at java.awt.event.InvocationEvent.dispatch(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)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
milman
Offline
Joined: 2008-12-09

I was able to find a solution. I fond a posting on javaranch where they had similar problem with Webstart. The solution (which also worked for me) was
adding the following bit of code to grant all permissions:

Policy.setPolicy( new Policy() {
public PermissionCollection
getPermissions(CodeSource codesource) {
Permissions perms = new Permissions();
perms.add(new AllPermission());
return(perms);
}
public void refresh(){
}
});

http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=5...