agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] java.lang.SecurityException
Date: Mon, 28 Mar 2005 14:02:23 -0500
Message-ID: <11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.com> (raw)
Thomas Hallgren wrote:
>
>Ok, that looks good. Still, according to your stacktrace, an attempt is
>made to load the PGtoXML.jar using the system classloader which in turn
>tells me that either your CLASSPATH environment variable or the
>pljava.classpath in the postgresql.conf contains this jar. You should
>remove that setting.
>
>Regards,
>Thomas Hallgren
>
Thank you, that seemed to do the trick on the securityexception. But
now I am getting another exception:
***Exception:
java.lang.ClassNotFoundException: org.postgresql.Driver
java.lang.ClassNotFoundException: org.postgresql.Driver
at org.postgresql.pljava.sqlj.Loader.findClass(Loader.java:193)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at PGtoXML.OWDBConnection.<init>(OWDBConnection.java:10)
at PGtoXML.OWDBtoXML.<init>(OWDBtoXML.java:18)
at PGtoXML.PGtoXML.getXmlString(PGtoXML.java:7)
LOG: Exception
LOG: in thread "main"
java.lang.NullPointerException
at PGtoXML.OWDBtoXML.makeDBXML(OWDBtoXML.java:39)
at PGtoXML.OWDBtoXML.makeDBXML(OWDBtoXML.java:34)
at PGtoXML.PGtoXML.getXmlString(PGtoXML.java:8)
ERROR: java.lang.NullPointerException
My code imports classes from another jar file (Postgresql JDBC). I
installed all the jar files that are needed to run my program. The
program compiles and runs on windows as a java program, and runs on
windows as a pljava function. It just doesn't work when I do the same
thing for Linux. Please let me know what I need to do.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20050328/61a3c1c0/attachment.html;
view thread (35+ messages) latest in thread
Message-ID: <11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.com>
Permalink: ../11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.com/
Also on: postgresql.org/message-id/11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.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
In-Reply-To: <11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.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