Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 6:44 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Mar 25, 2009 11:52 pm 
Offline

Joined: Wed Feb 11, 2009 9:21 am
Posts: 3
Hello, I successfully made a Web Start version of my game, and it worked great until recently, I was adding some new functions to the game, and now everytime, when I try to run game through web start I get this error

Code:
java.security.AccessControlException: access denied (java.util.PropertyPermission org.newdawn.slick.pngloader read)
   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.checkPropertyAccess(Unknown Source)
   at java.lang.System.getProperty(Unknown Source)
   at org.newdawn.slick.opengl.ImageDataFactory.getImageDataFor(ImageDataFactory.java:25)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:274)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:230)
   at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:171)
   at org.newdawn.slick.Image.<init>(Image.java:183)
   at org.newdawn.slick.Image.<init>(Image.java:161)
   at org.newdawn.slick.Image.<init>(Image.java:149)
   at org.newdawn.slick.Image.<init>(Image.java:127)
   at TheGame.init(TheGame.java:180)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:369)
   at TheGame.main(TheGame.java:565)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)


It's obviously some access denied error :p
But I have no idea why it occurrs.
I didn't changed any system preferences, just loaded some new png files into the game.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 7:32 am 
Offline
Slick Zombie

Joined: Wed Apr 02, 2008 1:32 pm
Posts: 1313
Location: Italy
maybe do you use a .properties file for some system settings?

_________________
Blog | Last game Gravity Duck tribute | In progress Gravity Duck tribute


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 8:17 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Thats my fault, latest build I take it. It's a bug.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 9:18 am 
Offline

Joined: Wed Feb 11, 2009 9:21 am
Posts: 3
so Kev, when are you planing to fix it, I hope it's nothing complicated...
:D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 9:36 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Lunch today in this case (i.e. about 3 hours away for me). This breaks any PNG loading so it's kinda important ;)

I might even try and fit it in before then. You can always revert back to the old version in your webstart if you need it to work *now*.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 9:50 am 
Offline

Joined: Mon Mar 23, 2009 6:38 pm
Posts: 7
does anyone have a slick.jar from BEFORE that bug???
can't go on...
Spin


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 10:03 am 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
You mean one of these:

http://slick.cokeandcode.com/demos/versions/

The issue should noe be fixed in SVN btw, and webstart updated.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 26, 2009 10:05 am 
Offline

Joined: Mon Mar 23, 2009 6:38 pm
Posts: 7
ahhh...
many thanks. :-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group