Jump to content

Slick2d/LWJGL Webstart error. Cannot fix!

- - - - -

  • Please log in to reply
2 replies to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
Here is the error-
java.lang.reflect.InvocationTargetException

	at java.awt.EventQueue.invokeAndWait(Unknown Source)

	at org.lwjgl.util.applet.AppletLoader.run(AppletLoader.java:778)

	at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.ExceptionInInitializerError

	at org.lwjgl.Sys.createImplementation(Sys.java:111)

	at org.lwjgl.Sys.<clinit>(Sys.java:98)

	at org.newdawn.slick.GameContainer.getTime(GameContainer.java:447)

	at org.newdawn.slick.GameContainer.<init>(GameContainer.java:98)

	at org.newdawn.slick.AppletGameContainer$Container.<init>(AppletGameContainer.java:249)

	at org.newdawn.slick.AppletGameContainer.init(AppletGameContainer.java:126)

	at org.lwjgl.util.applet.AppletLoader.switchApplet(AppletLoader.java:1038)

	at org.lwjgl.util.applet.AppletLoader$3.run(AppletLoader.java:781)

	at java.awt.event.InvocationEvent.dispatch(Unknown Source)

	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)

	at java.awt.EventQueue.access$000(Unknown Source)

	at java.awt.EventQueue$1.run(Unknown Source)

	at java.awt.EventQueue$1.run(Unknown Source)

	at java.security.AccessController.doPrivileged(Native Method)

	at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)

	at java.awt.EventQueue.dispatchEvent(Unknown Source)

	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

	at java.awt.EventDispatchThread.run(Unknown Source)

Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.lwjgl.util.Debug 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 java.lang.Boolean.getBoolean(Unknown Source)

	at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:450)

	at org.lwjgl.LWJGLUtil$4.run(LWJGLUtil.java:448)

	at java.security.AccessController.doPrivileged(Native Method)

	at org.lwjgl.LWJGLUtil.getPrivilegedBoolean(LWJGLUtil.java:448)

	at org.lwjgl.LWJGLUtil.<clinit>(LWJGLUtil.java:267)

	... 22 more


Link to the webpage- PwnArena Web.

I really am stuck on how to fix this.

#2
aniruddhp

aniruddhp

    Newbie

  • Members
  • Pip
  • 3 posts
Hi,

Do you have an "extension " within your resources? This might be causing the problem as the security permissions for the extension may not be as per the permissions your other resources have.

Can you just put all the resources locally and please copy the jnlp file here so I can take a look at the security information?

Thanks,
Aniruddh

#3
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
I have fixed the problem. I researched the security error and realised it was because my game was trying to read/write to the file on my web-server. As the server is not hosted by me it did not have the appropriate privileges to access this resource. I fixed this problem by putting the image in the JAR itself and then accessing it through the JAR.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users