🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.jbuilder.java.api
5 messages
5 total messages Started by Oliver Young Fri, 22 Aug 2003 08:39
java.security.AccessControlException
#454
Author: Oliver Young
Date: Fri, 22 Aug 2003 08:39
23 lines
1771 bytes
    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.
Re: java.security.AccessControlException
#455
Author: Kevin Dean
Date: Fri, 22 Aug 2003 12:44
43 lines
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.
>
>
Re: java.security.AccessControlException
#463
Author: Oliver Young
Date: Mon, 25 Aug 2003 05:59
5 lines
1184 bytes
  Thank you for your help. I'm executing my app as console app (not as an
applet or anything simmilar). The only security manager in my app is RMI
security manager. Could someone please tell me what I should do to fix this
exception?
Re: java.security.AccessControlException
#464
Author: Oliver Young
Date: Mon, 25 Aug 2003 10:56
2 lines
1038 bytes
    I've fixed it.
Re: java.security.AccessControlException
#466
Author: Kevin Dean
Date: Mon, 25 Aug 2003 16:47
19 lines
1584 bytes
Please post the solution here in case someone else is running into the
problem.

-- 
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:3f49eb10@newsgroups.borland.com...
>
>     I've fixed it.
>
>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads