agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] Exception in read/write text files
Date: Sun, 18 Mar 2007 17:07:22 -0300
Message-ID: <d522589d0703181307t6fe295afn98c85209bfb67cf1@mail.gmail.com> (raw)

Hello friends,

Im trying read/write a text file using PL/Java. However, I am receiving the
following error:
The directory is C:\ statistics.txt. Somebody can help me?
Thanks a lot.


ERROR:  18 Mar 07 16:51:59 axml.Active java.lang.SecurityException: read on
C:\statistics.txt
java.lang.SecurityException: read on C:\statistics.txt
    at org.postgresql.pljava.internal.Backend$2.assertPermission(
Backend.java:187)
    at
org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.nonRecursiveCheck
(Backend.java:128)
    at
org.postgresql.pljava.internal.Backend$PLJavaSecurityManager.checkPermission
(Backend.java:106)
    at java.lang.SecurityManager.checkRead(Unknown Source)
    at java.io.File.exists(Unknown Source)
    at java.io.Win32FileSystem.canonicalize(Unknown Source)
    at java.io.File.getCanonicalPath(Unknown Source)
    at java.io.FilePermission$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.io.FilePermission.init(Unknown Source)
    at java.io.FilePermission.<init>(Unknown Source)
    at java.lang.SecurityManager.checkRead(Unknown Source)
    at java.io.File.exists(Unknown Source)
    at java.io.Win32FileSystem.canonicalize(Unknown Source)
    at java.io.File.getCanonicalPath(Unknown Source)
    at java.io.FilePermission$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.io.FilePermission.init(Unknown Source)
    at java.io.FilePermission.<init>(Unknown Source)
    at java.lang.SecurityManager.checkWrite(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileOutputStream.<init>(Unknown Source)
    at java.io.FileWriter.<init>(Unknown Source)
    at testes.StatisticsCollector.save(StatisticsCollector.java:102)
    at axml.Active.executeService(Active.java:20)



-- 
Cl?udio A. Ferraz - Analista de Sistemas
Mestrando em Banco de Dados COPPE/UFRJ
"Se n?o puder fazer tudo, fa?a tudo o que puder."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20070318/dfac2e34/attachment.html;



view thread (3+ messages)  latest in thread

Message-ID: <d522589d0703181307t6fe295afn98c85209bfb67cf1@mail.gmail.com>
Permalink:  ../d522589d0703181307t6fe295afn98c85209bfb67cf1@mail.gmail.com/
Also on:    postgresql.org/message-id/d522589d0703181307t6fe295afn98c85209bfb67cf1@mail.gmail.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] Exception in read/write text files
  In-Reply-To: <d522589d0703181307t6fe295afn98c85209bfb67cf1@mail.gmail.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