Hello Guest

java.lang.reflect. InvocationTargetException, only with Java

  • 1 Replies
java.lang.reflect. InvocationTargetException, only with Java
« on: November 14, 2006, 14:24:25 »

Help to solve a problem, please.

With the help of JavaWebStart I start the program:

import org.lwjgl.util. *;
public class Test
     public static void main (String [] args)
        Timer t = new Timer ();
       System.exit (0);

Thus I receive

java.lang.reflect. InvocationTargetException
    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.continueLaunch (Unknown Source)
    at com.sun.javaws. Launcher.handleApplicationDesc (Unknown Source)
    at com.sun.javaws. Launcher.handleLaunchFile (Unknown Source)
    at com.sun.javaws. Launcher.run (Unknown Source)
    at java.lang. Thread.run (Unknown Source)
Caused by: java.lang. ExceptionInInitializerError
    at org.lwjgl. Sys.createImplementation (Sys.java:112)
    at org.lwjgl. Sys. <clinit> (Sys.java:100)
    at org.lwjgl.util. Timer. <clinit> (Timer.java:50)
    at Test.main (Test.java:7)
   ... 11 more
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$3.run (LWJGLUtil.java:440)
    at java.security. AccessController.doPrivileged (Native Method)
    at org.lwjgl. LWJGLUtil.getPrivilegedBoolean (LWJGLUtil.java:438)
    at org.lwjgl. LWJGLUtil. <clinit> (LWJGLUtil.java:268)
   ... 15 more


import org.lwjgl.util. *;
public class Test
     public static void main (String [] args)
       Color c = new Color ();
        System.exit (0);

works normally.

« Reply #1 on: November 14, 2006, 14:35:22 »
That's strange, it looks like you don't have permission to read a java property (org.lwjgl.util.Debug).

Unfortunatly, I don't have any idea what would cause that :?
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D