# RuntimePermission "setFactory"

jbedunah@tlgmedia.com
Thu, 22 Jul 1999 11:31:02 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jan Luehe: "Re: "Java Plug-In Security Warning" dialog gone / broken under 1.2.2 px (FCS)?"
- Previous message: De Andres Presa, Francisco: "Hello"

    From: jbedunah@tlgmedia.com

    To: java-security@java.sun.com

    Date: Thu, 22 Jul 1999 11:31:02 -0500

    Subject: RuntimePermission "setFactory"

Does anyone know why using JEditorPane's setPage(url) method throws an
AccessControlException in the 1.2.2.px plug-in but not in the 1.2.1 plug-in?

It's actually throwing it in HttpURLConnection.setFollowRedirects. Here's the
stack trace:

java.security.AccessControlException: access denied (java.lang.RuntimePermission
setFactory )
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.checkSetFactory(Unknown Source)
at java.net.HttpURLConnection.setFollowRedirects(Unknown Source)
at javax.swing.JEditorPane.getStream(Unknown Source)
at javax.swing.JEditorPane.setPage(Unknown Source)
at com.tlgmedia.BookBrowser.MainBrowser.setPage(MainBrowser.java:286)
at com.tlgmedia.BookBrowser.MainBrowser.setStartPage(MainBrowser.java:276)
at com.tlgmedia.BookBrowser.MainBrowser.start(MainBrowser.java:64)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I'm at a loss and I don't know if 1.2.1 was allowing something that shouldn't
have been allowed and 1.2.2 fixed it or what.

Here's the plug-in header information, in case it helps:

Java(TM) Plug-in: Version 1.2.2.px
Using JRE version 1.2.2
User home directory = C:\WINDOWS
Proxy Configuration: Manual Configuration
Proxy: 90.0.0.29:80
Proxy Overrides: http://Pope:8001,http://pope:8001,<local>

- Next message: Jan Luehe: "Re: "Java Plug-In Security Warning" dialog gone / broken under 1.2.2 px (FCS)?"
- Previous message: De Andres Presa, Francisco: "Hello"