From: | Rob Sargent <robjsargent(at)gmail(dot)com> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Right version of jdbc |
Date: | 2023-09-25 16:03:28 |
Message-ID: | b7846f01-fbab-dd3f-4bd3-a8b2b9b32e4f@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 9/25/23 06:38, Raivo Rebane wrote:
> Hi, now I use -
> <dependencies>
> <dependency>
> <groupId>org.postgis</groupId>
> <artifactId>postgis-jdbc</artifactId>
> <version>1.3.3</version>
> </dependency>
> <dependency>
> <groupId>org.postgresql</groupId>
> <artifactId>postgresql</artifactId>
> <version>42.5.4</version> <!-- Kasuta kõige uuemat versiooni -->
> </dependency>
> </dependencies>
> But I got error -
> Exception in thread "main" java.lang.NoSuchMethodError:
> 'org.postgresql.core.Encoding
> org.postgresql.core.BaseConnection.getEncoding()'
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getString(AbstractJdbc2ResultSet.java:1889)
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getTimestamp(AbstractJdbc2ResultSet.java:438)
> at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getTimestamp(AbstractJdbc2ResultSet.java:2406)
> at backendproject.BackendMain.main(BackendMain.java:64)
>
> Whats wrong ?
Show your application CLASSPATH.
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2023-09-25 16:42:51 | Re: Right version of jdbc |
Previous Message | Johnson, Bruce E - (bjohnson) | 2023-09-25 15:50:45 | Re: [EXT]Re: Accessing system information functions |