agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] java.lang.SecurityException: Can’t read standard JDK classes
Date: Mon, 12 Sep 2011 10:42:15 -0700 (PDT)
Message-ID: <1315849335169-4795068.post@n5.nabble.com> (raw)

Hi, could someone please help resolve this problem.

I?ve been writing a Pl/Java function, very similar to the one found here:
http://wiki.tada.se/index.php?title=Functions_returning_sets#Using_the_ResultSetProvider_interface

However, everything seems to work well, until I embed some XPath code
inside. Below is a small snippet:

import javax.xml.xpath.XPath;
import javax.xml.xpath.XPathConstants;
import javax.xml.xpath.XPathExpression;
import javax.xml.xpath.XPathFactory;

... 

XPathFactory factory = XPathFactory.newInstance();
XPath xpath = factory.newXPath();
XPathExpression expr = xpath.compile(schema.getPathExpr(att));
Node node = (Node) expr.evaluate(msg.document(), XPathConstants.NODE);

It seems that, all is fine when accessing standard ?java?, however, it seems
to break when I start using ?javax.*? files.

The exception I get is:

"java.lang.SecurityException: read on
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar?

Any help as to how I can resolve this would be appreciated!

--
View this message in context: http://postgresql.1045698.n5.nabble.com/java-lang-SecurityException-Can-t-read-standard-JDK-classes-...
Sent from the PL/Java mailing list archive at Nabble.com.




view thread (2+ messages)  latest in thread

Message-ID: <1315849335169-4795068.post@n5.nabble.com>
Permalink:  ../1315849335169-4795068.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1315849335169-4795068.post@n5.nabble.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] java.lang.SecurityException: Can’t read standard JDK classes
  In-Reply-To: <1315849335169-4795068.post@n5.nabble.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