From: fluca1978 at infinito.it (Luca Ferrari) Date: Thu, 3 Jun 2010 15:43:21 +0200 Subject: [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection In-Reply-To: <201006031539.14616.fluca1978@infinito.it> References: <201006031052.33192.fluca1978@infinito.it> <8661B041D452404E8088FBD47D2443BE019EC515@NDCEXCUS703.int.asurion.com> <201006031539.14616.fluca1978@infinito.it> Message-ID: <201006031543.21939.fluca1978@infinito.it> On Thursday 03 June 2010 03:39:14 pm Luca Ferrari's cat walking on the keyboard wrote: > java.lang.NoClassDefFoundError: Could not initialize class > sun.security.provider.NativePRNG I've noted that when the function is called the first time the logs are differents and provide the following stacktrace: Caused by: java.lang.SecurityException: read on /dev/random at org.postgresql.pljava.internal.Backend$1.assertPermission(Backend.java:176) at org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.nonRecursiveCheck(Backend.java:111) at org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.checkPermission(Backend.java:89) at java.lang.SecurityManager.checkRead(SecurityManager.java:871) at java.io.File.exists(File.java:731) at sun.security.provider.NativePRNG$1.run(NativePRNG.java:60) at java.security.AccessController.doPrivileged(Native Method) at sun.security.provider.NativePRNG.initIO(NativePRNG.java:57) at sun.security.provider.NativePRNG.(NativePRNG.java:54) ... 31 more 2010-06-03 15:39:43 CEST ERROR: java.lang.ExceptionInInitializerError so it seems a problem of reading /dev/random, even if the user has the permissions: $ ls -l /dev/random crw-rw-rw- 1 root root 1, 8 2010-06-03 15:31 /dev/random Any idea? Thanks, Luca