| From: | jluo at teltronics(dot)com (Joves Luo) | 
|---|---|
| To: | |
| Subject: | [Pljava-dev] java.lang.SecurityException | 
| Date: | 2005-03-28 19:02:23 | 
| Message-ID: | 11C803742910E84E9CDBFD344773B814759F81@srqech02.teltronics.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pljava-dev | 
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>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Thomas Hallgren | 2005-03-28 19:09:59 | [Pljava-dev] java.lang.SecurityException | 
| Previous Message | Thomas Hallgren | 2005-03-28 18:15:55 | [Pljava-dev] java.lang.SecurityException |