From: | tjkincaid at comcast(dot)net (tjkincaid at comcast(dot)net) |
---|---|
To: | |
Subject: | [Pljava-dev] question on reading files using PL/Java |
Date: | 2011-08-29 02:27:55 |
Message-ID: | 1270594531.828544.1314584875392.JavaMail.root@sz0075a.westchester.pa.mail.comcast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2011-08-29 06:02:48 | [Pljava-dev] question on reading files using PL/Java |
Previous Message | Johann 'Myrkraverk' Oskarsson | 2011-08-02 17:23:17 | [Pljava-dev] PLJAVA is returning wrong Timestamp (patch is attached) |