agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Error trapping help
Date: Mon, 25 Sep 2006 18:23:19 +0200
Message-ID: <45180277.3040200@tada.se> (raw)
In-Reply-To: <45180048.4040800@softhome.net>
References: <4517F5F4.2020804@softhome.net>
<4517F8D3.1080404@tada.se>
<45180048.4040800@softhome.net>
Scott Petersen wrote:
> Caused by: java.lang.SecurityException: read on C:\Program
> Files\PostgreSQL\8.1\data\jasperreports.properties
> at
>
Looks like your JRLoader attempts to read from your filesystem. That is
not permitted in a trusted function. In order to do that, you must use
LANGUAGE javaU in your CREATE FUNCTION so that you get the untrusted
language handler. A better solution is probably to provide the
jasperreport.properties in some other way, a resource in a jar that is
loaded or something. I don't know Jasper very well so I can't help you
there.
Regards,
Thomas Hallgren
view thread (4+ messages)
Message-ID: <45180277.3040200@tada.se>
Permalink: ../45180277.3040200@tada.se/
Also on: postgresql.org/message-id/45180277.3040200@tada.se
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] Error trapping help
In-Reply-To: <45180277.3040200@tada.se>
* 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