1 Reply Latest reply: Feb 18, 2013 1:49 AM by Kayaman RSS

    java.lang.SecurityException: showDocument url permission denied

    991627
      Hi,

      We get below given error in one of the java application when we use the java version which is higher than 1.6.0_24.


      java.lang.SecurityException: showDocument url permission denied
      at sun.plugin2.main.client.MessagePassingExecutionContext.showDocument(Unknown Source)
      at sun.plugin2.applet.Plugin2Manager$AppletContextImpl.showDocument(Unknown Source)
      at vrts.CreateCrystalReports.createTransmittal(CreateCrystalReports.java:52)
      at vrts.JFrameOldProjectWizard.createTransmittalAndOCS(JFrameOldProjectWizard.java:289)
      at vrts.JFrameOldProjectWizard$6.actionPerformed(JFrameOldProjectWizard.java:240)
      at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)



      We get this error in below given code where it tries to open a HTML file.

      appletContext.showDocument(urlObj,"_blank");

      Can you please provide solution for this issue so that code should work in any java versions.

      Thanks,
      Swathi

      Edited by: 988624 on Feb 17, 2013 11:06 PM