agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] SecurityException read file
Date: Wed, 20 Apr 2005 12:13:47 +0200
Message-ID: <42662B5B.6050100@mailblocks.com> (raw)
In-Reply-To: <1742.10.0.0.30.1113991848.squirrel@10.0.0.30>
References: <1742.10.0.0.30.1113991848.squirrel@10.0.0.30>
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
view thread (3+ messages) latest in thread
Message-ID: <42662B5B.6050100@mailblocks.com>
Permalink: ../42662B5B.6050100@mailblocks.com/
Also on: postgresql.org/message-id/42662B5B.6050100@mailblocks.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Subject: Re: [Pljava-dev] SecurityException read file
In-Reply-To: <42662B5B.6050100@mailblocks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox