Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (808)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (872)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Applet security..  (Read 2268 times)
0 Members and 1 Guest are viewing this topic.
Offline Renoria

Junior Devvie




...


« Posted 2009-04-14 05:55:23 »

1  
2  
3  
4  
5  
6  
7  
8  
9  
java.security.AccessControlException: access denied (java.lang.RuntimePermission setSecurityManager)
   at java.security.AccessControlContext.checkPermission(Unknown Source)
   at java.security.AccessController.checkPermission(Unknown Source)
   at java.lang.SecurityManager.checkPermission(Unknown Source)
   at java.lang.System.setSecurityManager0(Unknown Source)
   at java.lang.System.setSecurityManager(Unknown Source)
   at drc.Main.init(Main.java:74)
   at sun.applet.AppletPanel.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


I keep getting that. Even if I try to change a thread's name I get that error. Any workaround?
Offline Markus_Persson

JGO Wizard


Medals: 19
Projects: 19


Mojang Specifications


« Reply #1 - Posted 2009-04-14 08:36:44 »

It seems you're trying to set a new security manager in line 74 in Main.java. You're not allowed to do that.

[edit:]
There should be no work-around. If you find one, you've found a security flaw in java.

Play Minecraft!
Offline Riven
Administrator

« JGO Overlord »


Medals: 1371
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #2 - Posted 2009-04-14 08:49:46 »

I think he got some totally different security Exception (when setting the thread's name), and then tried to remove the security manager with System.setSecurityManager(null).



It shouldn't be a problem to set the name of a Thread in its constructor.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Renoria

Junior Devvie




...


« Reply #3 - Posted 2009-04-14 12:46:31 »

I think he got some totally different security Exception (when setting the thread's name), and then tried to remove the security manager with System.setSecurityManager(null).



It shouldn't be a problem to set the name of a Thread in its constructor.

yeah thats exactly what happened.. Apache MINA tries to set the name of a thread and it gave an exception. I can't go and edit the MINA libraries..
Offline Riven
Administrator

« JGO Overlord »


Medals: 1371
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #4 - Posted 2009-04-14 13:01:20 »

MINA also resolves hostnames, which is illegal in the sandbox, so you can't connect to your own host.

It's just sad how MINA criples itself.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Pages: [1]
  ignore  |  Print  
 
 

 
Riven (848 views)
2019-09-04 15:33:17

hadezbladez (5799 views)
2018-11-16 13:46:03

hadezbladez (2605 views)
2018-11-16 13:41:33

hadezbladez (6215 views)
2018-11-16 13:35:35

hadezbladez (1501 views)
2018-11-16 13:32:03

EgonOlsen (4736 views)
2018-06-10 19:43:48

EgonOlsen (5794 views)
2018-06-10 19:43:44

EgonOlsen (3278 views)
2018-06-10 19:43:20

DesertCoockie (4176 views)
2018-05-13 18:23:11

nelsongames (5503 views)
2018-04-24 18:15:36
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!