Re: Examples of PostgreSQL JDBC driver fail
On Mon, 14 Aug 2000, Andreas Tille wrote:
> Unfortunately the examples in /usr/share/doc/libpgjava/examples
> just cause a coredump for me.
> I plan to write some servlets and would really like some examples
> using the PostgreSQL JDBC driver. Could someone give any examples
> for such a thing.
> I'm using postgresql 7.0.2-4 from woody and
> Package: libpgjava
> Version: 7.0-1
After updating to
the examples worked, even if example/psql says:
~> java example.psql jdbc:postgresql:testdb User pwd PostgreSQL psql example v6.3 rev 1
Connecting to Database URL = jdbc:postgresql:testdb
Connected to PostgreSQL 6.5.2
which is fairly wrong because the server is 7.0.2 (and there wasn't any other
on any of my boxes) but may be that's a different problem.
The only think which really sucks is that I really can't get a servlet
The contents of /var/log/apache/error.log is:
[Sun Aug 27 18:42:04 2000] [notice] Apache/1.3.9 (Unix) Debian/GNU AuthPostgreSQL/0.7.1 ApacheJServ/1.1 configured -- resuming normal operations
[Sun Aug 27 18:42:04 2000] [notice] suEXEC mechanism enabled (wrapper: /usr/lib/apache/suexec)
[Tue Aug 29 10:07:25 2000] [error] JServ: ajp12: Servlet Error: java.lang.NullPointerException: :
[Tue Aug 29 10:07:25 2000] [error] JServ: an error returned handling request via protocol "ajpv12"
I'm in really trouble and any help is appreciated!