Article View: borland.public.jbuilder.database
Article #142Re: UniversalPropertyRead Security Exception (security.checkpropsaccess.key)
From: Jeff
Date: Thu, 18 Dec 1997 00:00
Date: Thu, 18 Dec 1997 00:00
58 lines
3180 bytes
3180 bytes
The appletViewer doesn't have as stringent security as Netscape.
To access system variables you need to call Netscapes's Capabilities API.
Take a link at: http://developer.netscape.com/library/examples/index.html
Marc Kenig wrote:
>
> I'm using RmiJdbc to go from the "pre-release" Netscape Java 1.1 browser
>
> (Communicator 4.02J2) on a Sparc (Solaris 2.5.1) to an RmiJdbc server
> also on Solaris. (I connect to a Harmonia database)
>
> The application works just fine from appletviewer.
> In Netscape, however, I get the following Security Exception error:
> checkpropsaccess.key/UniversalProeprtyRead
> (see full log, below). Has anybody else encountered this? Does anybody
> have any
> idea what the matter could be? And, of course, most importantly, a
> workaround? (Yes, I realize I'm using a ''pre-release'' of
> Netscape Communicator, and yes, I'm going to rattle their cages and no,
> it's not on any of their FAQs or release notes).
>
> But I thought I'd ask and see if anybody has run into this particular
> issue?
>
> Marc Kenig
>
> -----------Begin Java Console log:
>
> Netscape Communications Corporation -- Java 1.1.2
> Type '?' for options.
> # Security Exception: checkpropsaccess.key
> url = jdbc:rmi://sunusbt/jdbc:harmonia:local:SUNPO;memtemp=true
> info = {}
> RMI_ADDRESS = //sunusbt/RmiJdbcServer
> JDBC_URL = jdbc:harmonia:local:SUNPO;memtemp=true
> # Security Exception: checkpropsaccess.key
> java.lang.ExceptionInInitializerError:
> netscape.security.AppletSecurityException: security.checkpropsaccess.key
>
> # UniversalPropertyRead privilege not enabled: Reading information
> stored in your computer, such as your user name
> at java.rmi.Naming.getRegistry(Naming.java:154)
> at java.rmi.Naming.lookup(Naming.java:55)
> at RmiJdbc.RJConnection.<init>(RJConnection.java:41)
> at RmiJdbc.RJDriver.connect(RJDriver.java:125)
> at java.sql.DriverManager.getConnection(DriverManager.java:91)
> at java.sql.DriverManager.getConnection(DriverManager.java:149)
> at SunPO.MainView.init(MainView.java:159)
> * at
> netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(DerivedAppletFrame.java:547)
>
> at
> java.awt.EventDispatchThread$EventPump.dispatchEvents(EventDispatchThread.java:71)
>
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
> at
> netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(DerivedAppletFrame.java:930)
Technical Details
Message-ID:
<349930FC.915C0FD@fl.ensco.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3498D244.D9D5C7E4@interserve.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1073da,acbaa3442231a874 X-Google-Attributes: gid1073da,public X-Google-Thread: ff01d,acbaa3442231a874 X-Google-Attributes: gidff01d,public From: Jeff <jeffe@fl.ensco.com> Subject: Re: UniversalPropertyRead Security Exception (security.checkpropsaccess.key) Date: 1997/12/18 Message-ID: <349930FC.915C0FD@fl.ensco.com> X-Deja-AN: 299341292 Content-Transfer-Encoding: 7bit References: <3498D244.D9D5C7E4@interserve.com> To: Marc Kenig <marc@interserve.com> Content-Type: text/plain; charset=us-ascii Organization: Ensco Inc Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.database,borland.public.jbuilder.applet-issues