java.lang.NoSuchMethodError: org.postgresql.copy.CopyManager.copyIn(Ljava/lang/String;Ljava/io/InputStream;)J

Поиск
Список
Период
Сортировка
От John Abraham
Тема java.lang.NoSuchMethodError: org.postgresql.copy.CopyManager.copyIn(Ljava/lang/String;Ljava/io/InputStream;)J
Дата
Msg-id d814260d-d87d-4e31-8b48-c0f2442b2b86@o30g2000yqb.googlegroups.com
обсуждение исходный текст
Список pgsql-jdbc
Hmm this is strange.  I compile against postgresql-8.4-701.jdbc4.jar
and call the method copyIn


            CopyManager copyManager = new CopyManager((BaseConnection)
conn);
            FileInputStream devEventStream = new
FileInputStream(logFileNameAndPath);
            copyManager.copyIn("copy development_events from stdin CSV
HEADER", devEventStream);

and it all compiles nicely, but when I try to run it I get

java.lang.NoSuchMethodError:
org.postgresql.copy.CopyManager.copyIn(Ljava/lang/String;Ljava/io/
InputStream;)J

In my experience, usually a NoSuchMethodError means that I'm running
against a different .jar file then the one I compiled against.  So I
ran it within eclipse, and got the same error.

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

Предыдущее
От: Devrim GÜNDÜZ
Дата:
Сообщение: Re: How to change the date in a postgres database via JDBC
Следующее
От: shilpa r
Дата:
Сообщение: path and classpath settings