[Pljava-dev] SecurityException read file

From: thhal at mailblocks(dot)com (Thomas Hallgren)
To:
Subject: [Pljava-dev] SecurityException read file
Date: 2005-04-20 10:13:47
Message-ID: 42662B5B.6050100@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Jordi Marqu?s wrote:

> I need read file into pljava trigger, but when I read the file I
> obtain the following error:
>
> java.lang.SecurityException: read on C:\postgresql\test.txt
>
> Somebody knows the solution
>
> Thank you very much

As most of the PostgreSQL PL's, PL/Java comes with two language
handlers, a "java" and a "javaU". The former is "trusted" and will not
permit your functions access to the file system. You need to use
LANGUAGE javaU in your function declaration.

Regards,
Thomas Hallgren

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Luca Rasconi 2005-04-20 10:15:26 [Pljava-dev] java.lang.SecurityException
Previous Message Jordi Marquès 2005-04-20 10:10:48 [Pljava-dev] SecurityException read file