[Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection

From: fluca1978 at infinito(dot)it (Luca Ferrari)
To:
Subject: [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection
Date: 2010-06-03 13:43:21
Message-ID: 201006031543.21939.fluca1978@infinito.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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.<clinit>(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

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2010-06-03 14:32:41 [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection
Previous Message Luca Ferrari 2010-06-03 13:39:14 [Pljava-dev] cannot set the classpath to a specific jar to get anexternal connection