1 Reply Latest reply on Aug 18, 2011 5:45 AM by EJP

    ShowDocument url permission denied

    818166
      Hi,
      I'm trying to run an applet with the following code:
      <code>
      if(qbm.runningAsApplet())
                {
                     qbm.getContext().showDocument (url, "_blank");
                }
      </code>

      And I'm getting the following exceptions:
      Exception in thread "AWT-EventQueue-3" java.lang.SecurityException: ShowDocument url permission denied
           at com.sun.jnlp.BasicServiceImpl.showDocument(Unknown Source)
           at com.slb.im.federator.qbm.utilities.UrlLinkExecutor.executeUrl(UrlLinkExecutor.java:543)
           at com.slb.im.federator.qbm.utilities.UrlLinkExecutor.execute(UrlLinkExecutor.java:391)
           at com.slb.im.federator.qbm.launchmanager.UrlLaunchProcessorBase.completeExecute(UrlLaunchProcessorBase.java:359)
           at com.slb.im.federator.qbm.launchmanager.UrlLaunchProcessorBase.execute(UrlLaunchProcessorBase.java:351)
           at com.slb.im.federator.qbm.launchmanager.UrlLaunchProcessorBase.execute(UrlLaunchProcessorBase.java:186)
           at com.slb.im.federator.qbm.launchmanager.cmds.LaunchAction.completeLaunch(LaunchAction.java:181)
           at com.slb.im.federator.qbm.launchmanager.cmds.LaunchAction.execute(LaunchAction.java:163)
           at com.slb.im.federator.qbm.launchmanager.cmds.LaunchAction.mouseReleased(LaunchAction.java:296)
           at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
           at java.awt.Component.processMouseEvent(Unknown Source)
           at javax.swing.JComponent.processMouseEvent(Unknown Source)
           at java.awt.Component.processEvent(Unknown Source)
           at java.awt.Container.processEvent(Unknown Source)
           at java.awt.Component.dispatchEventImpl(Unknown Source)
           at java.awt.Container.dispatchEventImpl(Unknown Source)
           at java.awt.Component.dispatchEvent(Unknown Source)
           at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
           at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
           at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
           at java.awt.Container.dispatchEventImpl(Unknown Source)
           at java.awt.Component.dispatchEvent(Unknown Source)
           at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
           at java.awt.EventQueue.access$000(Unknown Source)
           at java.awt.EventQueue$1.run(Unknown Source)
           at java.awt.EventQueue$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
           at java.awt.EventQueue$2.run(Unknown Source)
           at java.awt.EventQueue$2.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
           at java.awt.EventQueue.dispatchEvent(Unknown Source)
           at com.slb.im.util.WaitCursorEventQueue.dispatchEvent(WaitCursorEventQueue.java:56)
           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)

      This happens on java 1.6.0_26 update, where as the code is working fine in update 23. Kindly let me know if there is any work around for this, as this issue has been mentioned as a bug in update 24. But I couldnt find any workaround.

      Thank you.