[Pljava-dev] SecurityException read file

Lists: pljava-dev
From: jordi(dot)marques at iigov(dot)org (Jordi Marquès )
To:
Subject: [Pljava-dev] SecurityException read file
Date: 2005-04-20 10:10:48
Message-ID: 1742.10.0.0.30.1113991848.squirrel@10.0.0.30
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev

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
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


From: jordi(dot)marques at iigov(dot)org (Jordi Marquès )
To:
Subject: [Pljava-dev] SecurityException read file
Date: 2005-04-20 10:27:18
Message-ID: 1804.10.0.0.30.1113992838.squirrel@10.0.0.30
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pljava-dev