pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedPb with Spring & Metadat
12+ messages / 4 participants
[nested] [flat]
* Pb with Spring & Metadat
@ 2006-02-09 17:36 TNO <tnodev@free.fr>
0 siblings, 1 reply; 12+ messages in thread
From: TNO @ 2006-02-09 17:36 UTC (permalink / raw)
To: pgsql-jdbc
Hello,
I want to get database information using metadata with Spring (1.2.4).
It's OK with postGre8.0, but when I use postGre8.1, error...
what about this function "information_schema._pg_keypositions()" ?
Caused by: org.springframework.jdbc.support.MetaDataAccessException:
Error while extracting DatabaseMetaData; nested exception is
org.postgresql.util.PSQLException: ERROR: function
information_schema._pg_keypositions() does not exist
at
org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:180)
at
arc.bd.spring.service.TableService.fillRelation1_1(TableService.java:181)
... 4 more
Caused by: org.postgresql.util.PSQLException: ERROR: function
information_schema._pg_keypositions() does not exist
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:221)
at
org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedExportedKeys(AbstractJdbc2DatabaseMetaData.java:3237)
at
org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedKeys(AbstractJdbc2DatabaseMetaData.java:3533)
at
arc.bd.spring.callback.ImportedKeyInfo.processMetaData(ImportedKeyInfo.java:28)
at
org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:174)
... 5 more
--
Il n'y a pas de mauvais langage, il n'y a que des bons programmeurs
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-09 18:31 Kris Jurka <books@ejurka.com>
parent: TNO <tnodev@free.fr>
0 siblings, 1 reply; 12+ messages in thread
From: Kris Jurka @ 2006-02-09 18:31 UTC (permalink / raw)
To: TNO <tnodev@free.fr>; +Cc: pgsql-jdbc
On Thu, 9 Feb 2006, TNO wrote:
> Hello,
>
> I want to get database information using metadata with Spring (1.2.4).
> It's OK with postGre8.0, but when I use postGre8.1, error...
>
> what about this function "information_schema._pg_keypositions()" ?
>
> org.postgresql.util.PSQLException: ERROR: function
> information_schema._pg_keypositions() does not exist
> at
If you're going to use a 8.1 server you need the 8.1 driver as well.
Kris Jurka
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-10 07:35 tnodev <tnodev@free.fr>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 12+ messages in thread
From: tnodev @ 2006-02-10 07:35 UTC (permalink / raw)
To: pgsql-jdbc
I have both postgre8.0 and 8.1 on my station.
8.0 on port 5432 and 8.1 on port 54321
when I use pg8.0 and driver postgresql-8.0-315.jdbc3.jar, works fine...
when I use pg8.1 and driver postgresql-8.1-404.jdbc3.jar error !
here's the full trace
arc.bd.service.exception.ArcException:
org.springframework.jdbc.support.MetaDataAccessException: Error while
extracting DatabaseMetaData; nested exception is
org.postgresql.util.PSQLException: ERROR: function
information_schema._pg_keypositions() does not exist
at
arc.bd.spring.service.TableService.fillRelation1_1(TableService.java:194)
at arc.bd.spring.service.TableService.fillTable(TableService.java:107)
at arc.bd.spring.service.TableService.getTablePg(TableService.java:67)
at
arc.bd.spring.service.TestTableService.testTableService(TestTableService.java:15)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.springframework.jdbc.support.MetaDataAccessException:
Error while extracting DatabaseMetaData; nested exception is
org.postgresql.util.PSQLException: ERROR: function
information_schema._pg_keypositions() does not exist
at
org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:180)
at
arc.bd.spring.service.TableService.fillRelation1_1(TableService.java:181)
... 18 more
Caused by: org.postgresql.util.PSQLException: ERROR: function
information_schema._pg_keypositions() does not exist
at
org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1471)
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1256)
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:175)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:389)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:314)
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:221)
at
org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedExportedKeys(AbstractJdbc2DatabaseMetaData.java:3237)
at
org.postgresql.jdbc2.AbstractJdbc2DatabaseMetaData.getImportedKeys(AbstractJdbc2DatabaseMetaData.java:3533)
at
arc.bd.spring.callback.ImportedKeyInfo.processMetaData(ImportedKeyInfo.java:28)
at
org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData(JdbcUtils.java:174)
... 19 more
Kris Jurka a écrit :
>
>
> On Thu, 9 Feb 2006, TNO wrote:
>
>> Hello,
>>
>> I want to get database information using metadata with Spring (1.2.4).
>> It's OK with postGre8.0, but when I use postGre8.1, error...
>>
>> what about this function "information_schema._pg_keypositions()" ?
>>
>> org.postgresql.util.PSQLException: ERROR: function
>> information_schema._pg_keypositions() does not exist
>> at
>
>
> If you're going to use a 8.1 server you need the 8.1 driver as well.
>
> Kris Jurka
>
>
>
>
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-10 07:43 Kris Jurka <books@ejurka.com>
parent: tnodev <tnodev@free.fr>
0 siblings, 1 reply; 12+ messages in thread
From: Kris Jurka @ 2006-02-10 07:43 UTC (permalink / raw)
To: tnodev <tnodev@free.fr>; +Cc: pgsql-jdbc
On Fri, 10 Feb 2006, tnodev wrote:
> I have both postgre8.0 and 8.1 on my station.
> 8.0 on port 5432 and 8.1 on port 54321
>
> when I use pg8.0 and driver postgresql-8.0-315.jdbc3.jar, works fine...
> when I use pg8.1 and driver postgresql-8.1-404.jdbc3.jar error !
>
You are mistaken about what version of the driver you are using with 8.1.
The stacktrace confirms that you are using an 8.0 driver.
Kris Jurka
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 10:53 TNO <tnodev@free.fr>
parent: Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 12+ messages in thread
From: TNO @ 2006-02-13 10:53 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: pgsql-jdbc
My Eclipse classpath show me 8.1 driver...
Kris Jurka a écrit :
>
>
> On Fri, 10 Feb 2006, tnodev wrote:
>
>> I have both postgre8.0 and 8.1 on my station.
>> 8.0 on port 5432 and 8.1 on port 54321
>>
>> when I use pg8.0 and driver postgresql-8.0-315.jdbc3.jar, works fine...
>> when I use pg8.1 and driver postgresql-8.1-404.jdbc3.jar error !
>>
>
> You are mistaken about what version of the driver you are using with
> 8.1. The stacktrace confirms that you are using an 8.0 driver.
>
> Kris Jurka
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>
>
--
Il n'y a pas de mauvais langage, il n'y a que des bons programmeurs
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 11:42 Markus Schaber <schabi@logix-tt.com>
parent: TNO <tnodev@free.fr>
0 siblings, 1 reply; 12+ messages in thread
From: Markus Schaber @ 2006-02-13 11:42 UTC (permalink / raw)
To: TNO <tnodev@free.fr>; pgsql-jdbc
Hi, TNO,
TNO wrote:
> My Eclipse classpath show me 8.1 driver...
Are you shure that you don't have the 8.0 driver deployed into the jdk
ext directory, or somewhere else where it is found by the jdk?
Can you place
System.err.println(org.postgresql.Driver.getVersion());
into your application to see which driver version it loads?
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 14:46 Kris Jurka <books@ejurka.com>
parent: Markus Schaber <schabi@logix-tt.com>
0 siblings, 2 replies; 12+ messages in thread
From: Kris Jurka @ 2006-02-13 14:46 UTC (permalink / raw)
To: Markus Schaber <schabi@logix-tt.com>; +Cc: TNO <tnodev@free.fr>; pgsql-jdbc
On Mon, 13 Feb 2006, Markus Schaber wrote:
> TNO wrote:
>> My Eclipse classpath show me 8.1 driver...
>
> System.err.println(org.postgresql.Driver.getVersion());
or better yet,
System.err.println(org.postgresql.util.PSQLDriverVersion.main());
This will print out where it has found the driver as well as what version
it has found.
Kris Jurka
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 14:53 Markus Schaber <schabi@logix-tt.com>
parent: Kris Jurka <books@ejurka.com>
1 sibling, 0 replies; 12+ messages in thread
From: Markus Schaber @ 2006-02-13 14:53 UTC (permalink / raw)
To: pgsql-jdbc
Hi, Kris,
Kris Jurka wrote:
>> TNO wrote:
>>
>>> My Eclipse classpath show me 8.1 driver...
>>
>>
>> System.err.println(org.postgresql.Driver.getVersion());
>
>
> or better yet,
>
> System.err.println(org.postgresql.util.PSQLDriverVersion.main());
>
> This will print out where it has found the driver as well as what
> version it has found.
Oh, great tool. However, it does not work this way. You have to call
org.postgresql.util.PSQLDriverVersion.main(args)
with args being a String array, and don't wrap it into
System.err.println, as it returns void.
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 15:56 TNO <tnodev@free.fr>
parent: Kris Jurka <books@ejurka.com>
1 sibling, 2 replies; 12+ messages in thread
From: TNO @ 2006-02-13 15:56 UTC (permalink / raw)
To: Kris Jurka <books@ejurka.com>; +Cc: Markus Schaber <schabi@logix-tt.com>; pgsql-jdbc
Seems good... ;-)
PostgreSQL 8.1devel JDBC3 with SSL (build 400)
Found in:
jar:file:/C:/eclipse3.1/Java/Jar/postgresql-8.1dev-400.jdbc3.jar!/org/postgresql/Driver.class
Kris Jurka a écrit :
>
>
> On Mon, 13 Feb 2006, Markus Schaber wrote:
>
>> TNO wrote:
>>
>>> My Eclipse classpath show me 8.1 driver...
>>
>>
>> System.err.println(org.postgresql.Driver.getVersion());
>
>
> or better yet,
>
> System.err.println(org.postgresql.util.PSQLDriverVersion.main());
>
> This will print out where it has found the driver as well as what
> version it has found.
>
> Kris Jurka
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>
>
--
Il n'y a pas de mauvais langage, il n'y a que des bons programmeurs
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 16:07 Markus Schaber <schabi@logix-tt.com>
parent: TNO <tnodev@free.fr>
1 sibling, 1 reply; 12+ messages in thread
From: Markus Schaber @ 2006-02-13 16:07 UTC (permalink / raw)
To: TNO <tnodev@free.fr>; +Cc: Kris Jurka <books@ejurka.com>; pgsql-jdbc
Hi, TNO,
TNO wrote:
> Seems good... ;-)
>
> PostgreSQL 8.1devel JDBC3 with SSL (build 400)
> Found in:
> jar:file:/C:/eclipse3.1/Java/Jar/postgresql-8.1dev-400.jdbc3.jar!/org/postgresql/Driver.class
Doesn't seem so good, as you're using a prerelease version.
Try to get 8.1 build 405 from http://jdbc.postgresql.org/download.html
and see if the problem persists.
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-13 16:44 Kris Jurka <books@ejurka.com>
parent: TNO <tnodev@free.fr>
1 sibling, 0 replies; 12+ messages in thread
From: Kris Jurka @ 2006-02-13 16:44 UTC (permalink / raw)
To: TNO <tnodev@free.fr>; +Cc: Markus Schaber <schabi@logix-tt.com>; pgsql-jdbc
On Mon, 13 Feb 2006, TNO wrote:
> Seems good... ;-)
>
> PostgreSQL 8.1devel JDBC3 with SSL (build 400)
> Found in:
>
Earlier you claimed to have build 404, but you've only got 400. This
problem was fixed in build 401. Please upgrade.
Kris Jurka
^ permalink raw reply [nested|flat] 12+ messages in thread
* Re: Pb with Spring & Metadat
@ 2006-02-15 15:34 TNO <tnodev@free.fr>
parent: Markus Schaber <schabi@logix-tt.com>
0 siblings, 0 replies; 12+ messages in thread
From: TNO @ 2006-02-15 15:34 UTC (permalink / raw)
To: pgsql-jdbc
Works fine , thanks a lot
PostgreSQL 8.1 JDBC3 with SSL (build 404)
Found in:
jar:file:/C:/eclipse3.1/Java/Jar/postgresql-8.1-404.jdbc3.jar!/org/postgresql/Driver.class
Markus Schaber a écrit :
>Hi, TNO,
>
>TNO wrote:
>
>
>>Seems good... ;-)
>>
>>PostgreSQL 8.1devel JDBC3 with SSL (build 400)
>>Found in:
>>jar:file:/C:/eclipse3.1/Java/Jar/postgresql-8.1dev-400.jdbc3.jar!/org/postgresql/Driver.class
>>
>>
>
>Doesn't seem so good, as you're using a prerelease version.
>
>Try to get 8.1 build 405 from http://jdbc.postgresql.org/download.html
>and see if the problem persists.
>
>HTH,
>Markus
>
>
--
Il n'y a pas de mauvais langage, il n'y a que des bons programmeurs
^ permalink raw reply [nested|flat] 12+ messages in thread
end of thread, other threads:[~2006-02-15 15:34 UTC | newest]
Thread overview: 12+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-02-09 17:36 Pb with Spring & Metadat TNO <tnodev@free.fr>
2006-02-09 18:31 ` Kris Jurka <books@ejurka.com>
2006-02-10 07:35 ` tnodev <tnodev@free.fr>
2006-02-10 07:43 ` Kris Jurka <books@ejurka.com>
2006-02-13 10:53 ` TNO <tnodev@free.fr>
2006-02-13 11:42 ` Markus Schaber <schabi@logix-tt.com>
2006-02-13 14:46 ` Kris Jurka <books@ejurka.com>
2006-02-13 14:53 ` Markus Schaber <schabi@logix-tt.com>
2006-02-13 15:56 ` TNO <tnodev@free.fr>
2006-02-13 16:07 ` Markus Schaber <schabi@logix-tt.com>
2006-02-15 15:34 ` TNO <tnodev@free.fr>
2006-02-13 16:44 ` Kris Jurka <books@ejurka.com>
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