From: | l(dot)paige at live(dot)com (Larry) |
---|---|
To: | |
Subject: | [Pljava-dev] java.lang.SecurityException: Can’t read standard JDK classes |
Date: | 2011-09-12 17:42:15 |
Message-ID: | 1315849335169-4795068.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
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-tp4795068p4795068.html
Sent from the PL/Java mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Johann 'Myrkraverk' Oskarsson | 2011-09-12 18:29:29 | [Pljava-dev] java.lang.SecurityException: Can’t read standard JDK classes |
Previous Message | Vorarlberger | 2011-09-08 11:04:08 | [Pljava-dev] Return a Anonymous ResultSet |