pg.ddx.io pljava-dev@postgresql.org mailing list archivehelp / color / mirror / Atom feed
[Pljava-dev] NullPointerException w/o stack trace (was RE: class not found) 2+ messages / 0 participants [nested] [flat]
* [Pljava-dev] NullPointerException w/o stack trace (was RE: class not found) @ 2012-05-11 19:50 0 siblings, 1 reply; 2+ messages in thread From: @ 2012-05-11 19:50 UTC (permalink / raw) so i've worked my way past all of class stuff, and have been debugging my JDBC, but now i have a null pointer exception with no stack trace, neither on the console from psql nor in postgresql-Fri.log how do i figure out where this is coming from other than adding logging code to narrow it down? thanks, richard -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Fri 5/11/2012 11:42 AM To: pljava-dev at pgfoundry.org Subject: Re: [Pljava-dev] class not found -- ok, so classpath isn't set in the schema: gf=# select sqlj.get_classpath( 'public'); get_classpath --------------- (1 row) gf=# -- so i tried setting it gf=# select sqlj.set_classpath( 'public', '/tmp/gfs.jar'); ERROR: java.sql.SQLException: No such jar: /tmp/gfs.jar $ ls -l /tmp/gfs.jar -rw-r--r-- 1 root root 22030 May 11 15:13 /tmp/gfs.jar -- now there is no deployment descriptor in this jar, as it didn't appear that a deployment descriptor was a requirement. should i try adding one? -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Fri 5/11/2012 11:17 AM To: pljava-dev at pgfoundry.org Subject: Re: [Pljava-dev] class not found still can't find the class. any suggestions on what i should check? thanks, richard -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Thu 5/10/2012 10:33 AM To: pljava-dev at pgfoundry.org Subject: [Pljava-dev] class not found i'm trying to test out my pljava code, and i'm getting a class not found exception. the package & class names all look right to me, and the name in the jar_entry table looks right as well. i installed sqlj in the database where it's being used, not in template1 or anywhere else. is this correct? richard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20120511/e2fcc103/attachment.html; ^ permalink raw reply [nested|flat] 2+ messages in thread
* [Pljava-dev] NullPointerException w/o stack trace (was RE: classnot found) @ 2012-05-11 21:33 parent: 0 siblings, 0 replies; 2+ messages in thread From: @ 2012-05-11 21:33 UTC (permalink / raw) ok, i've worked out how to deal with this and am moving forward. i'm thinking i'll probably offer to help with some revisions to the documentation after i get to the other side of this process. richard -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Fri 5/11/2012 3:50 PM To: pljava-dev at pgfoundry.org Subject: [Pljava-dev] NullPointerException w/o stack trace (was RE: classnot found) so i've worked my way past all of class stuff, and have been debugging my JDBC, but now i have a null pointer exception with no stack trace, neither on the console from psql nor in postgresql-Fri.log how do i figure out where this is coming from other than adding logging code to narrow it down? thanks, richard -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Fri 5/11/2012 11:42 AM To: pljava-dev at pgfoundry.org Subject: Re: [Pljava-dev] class not found -- ok, so classpath isn't set in the schema: gf=# select sqlj.get_classpath( 'public'); get_classpath --------------- (1 row) gf=# -- so i tried setting it gf=# select sqlj.set_classpath( 'public', '/tmp/gfs.jar'); ERROR: java.sql.SQLException: No such jar: /tmp/gfs.jar $ ls -l /tmp/gfs.jar -rw-r--r-- 1 root root 22030 May 11 15:13 /tmp/gfs.jar -- now there is no deployment descriptor in this jar, as it didn't appear that a deployment descriptor was a requirement. should i try adding one? -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Fri 5/11/2012 11:17 AM To: pljava-dev at pgfoundry.org Subject: Re: [Pljava-dev] class not found still can't find the class. any suggestions on what i should check? thanks, richard -----Original Message----- From: pljava-dev-bounces at pgfoundry.org on behalf of Welty, Richard Sent: Thu 5/10/2012 10:33 AM To: pljava-dev at pgfoundry.org Subject: [Pljava-dev] class not found i'm trying to test out my pljava code, and i'm getting a class not found exception. the package & class names all look right to me, and the name in the jar_entry table looks right as well. i installed sqlj in the database where it's being used, not in template1 or anywhere else. is this correct? richard -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20120511/12e2f904/attachment.html; ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-05-11 21:33 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2012-05-11 19:50 [Pljava-dev] NullPointerException w/o stack trace (was RE: class not found) 2012-05-11 21:33 ` [Pljava-dev] NullPointerException w/o stack trace (was RE: classnot found)
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox