agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] question on reading files using PL/Java
Date: Mon, 29 Aug 2011 02:27:55 +0000 (UTC)
Message-ID: <1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net> (raw)
In-Reply-To: <1272945581.828364.1314584478394.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net>

I am trying to read some xml files on that are posted on the server's hard drive using the jdom library from with in PL/Java. Everything works fine outside PL/Java. I can read the xml file and parse the document no problem. However, from within PL/Java I am getting a security exception when I attempt to open the file. I have checked all the permissions on the file and everything seems OK. By default, PL/Java not allowed to read files on the server's hard drive? If not, is there a way I can configure it to allow this? 


ERROR: java.lang.SecurityException: read on /home/tomkincaid/pgdevel/pljava/ubiq-aug-2011-aug3.xml 
tomkincaid=# \q 
[tomkincaid at localhost pljava]$ cp ubiq-aug-2011-aug3.xml /tmp/xmltest.xml 
[tomkincaid at localhost pljava]$ psql 
edb-psql (9.0.4.14) 
Type "help" for help. 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110829/44f8cf47/attachment.html;



view thread (3+ messages)  latest in thread

Message-ID: <1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net>
Permalink:  ../1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net/
Also on:    postgresql.org/message-id/1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net

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] question on reading files using PL/Java
  In-Reply-To: <1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net>

* 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