Article View: borland.public.jbuilder.java.api
Article #455Re: java.security.AccessControlException
From: Kevin Dean
Date: Fri, 22 Aug 2003 12:44
Date: Fri, 22 Aug 2003 12:44
43 lines
2645 bytes
2645 bytes
Security managers are context-specific. For example, running a stand-alone
Swing application has almost no security restrictions at all. Running the
same application as a Java Web Start application or as an applet will cause
the error you see unless the JAR is signed.
--
Check out our latest white papers at
http://www.datadevelopment.com/papers/index.html
BladeNET Scores With Borland Enterprise Tools
Team Development with JBuilder and Borland Enterprise Server
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
"Oliver Young" <no@spam.please> wrote in message
news:3f45d73e@newsgroups.borland.com...
>
> I got java.security.AccessControlException:
>
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission * read,write)
> at
>
java.security.AccessControlContext.checkPermission(AccessControlContext.java
> :270)
> at
> java.security.AccessController.checkPermission(AccessController.java:401)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
> at
> java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1259)
> at java.lang.System.getProperties(System.java:500)
> at org.setcce.doryMail.DMail.send(DMail.java:193)
>
> trying to do this:
>
> Properties props = System.getProperties();
> props.setProperty("mail.smtp.host", cSMTPHost);
> Session session = Session.getDefaultInstance(props, null);
>
> Problem is that this was working fine before.
>
>
Technical Details
Message-ID:
<3f461049@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f45d73e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,52620353082c52e8 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2003-08-22 05:48:18 PST From: "Kevin Dean" <NkOdSePaAnM@datadevelopment.com> Newsgroups: borland.public.jbuilder.java.api References: <3f45d73e@newsgroups.borland.com> Subject: Re: java.security.AccessControlException Date: Fri, 22 Aug 2003 08:44:33 -0400 Lines: 45 Organization: Dolphin Data Development Ltd. X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 24.57.150.243 Message-ID: <3f461049@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061556297 24.57.150.243 (22 Aug 2003 05:44:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!216.218.192.242!news.he.net!news-hog.berkeley.edu!ucberkeley!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail