Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.lang.SecurityException: showDocument url permission denied

991627Feb 18 2013 — edited Feb 18 2013
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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 18 2013
Added on Feb 18 2013
1 comment
1,631 views