Re: Right version of jdbc - Mailing list pgsql-general

From Rob Sargent
Subject Re: Right version of jdbc
Date
Msg-id b7846f01-fbab-dd3f-4bd3-a8b2b9b32e4f@gmail.com
Whole thread Raw
In response to Re: Right version of jdbc  (Raivo Rebane <raivore55@gmail.com>)
List 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.




pgsql-general by date:

Previous
From: "Johnson, Bruce E - (bjohnson)"
Date:
Subject: Re: [EXT]Re: Accessing system information functions
Next
From: Dave Cramer
Date:
Subject: Re: Right version of jdbc