Re: Driver fails to connect

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: Driver fails to connect
Дата
Msg-id 002001c1d541$e52544e0$807ba8c0@inspiron
обсуждение исходный текст
Ответ на Driver fails to connect  (PaulU71555@aol.com)
Список pgsql-jdbc
Paul,
 
Chances are the class loader is going to load pgjdbc2.jar first and take it as the Driver. there must be more code than this though?
 
Can you send us a snippet of code that reproduces the error?
 
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of PaulU71555@aol.com
Sent: Tuesday, March 26, 2002 9:34 PM
To: pgsql-jdbc@postgresql.org
Subject: [JDBC] Driver fails to connect

Hi.

Using J2sdk1.4.0, Postgresql7.2, and a patch, 1.4b3.

Try: DriverManager.getConnection("jdbc:postgresql:Paul","Paul","")

Get: java.lang.NoSuchFieldError: current_row
      at org.postgresql.Driver.connect(source file unknown, pc 0x82063333)

The preceding is preceded by (18 iterations of) Warning: Major/Minor version number mismatch.

I'm sure this is some sort of configuration glitch.  I have postgresql.jar and pgjdbc2.jar in the same directory which is in my classpath.  What am I missing/what did I not do/what did I not do that I should have?

Thanks,
Paul

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: PaulU71555@aol.com
Дата:
Сообщение: Driver fails to connect
Следующее
От: Barry Lind
Дата:
Сообщение: Re: [PATCHES] little error messages fix