From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
---|---|
To: | Joseph Shraibman <jks(at)selectacast(dot)net> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Problem with 7.4 driver |
Date: | 2003-11-25 17:39:11 |
Message-ID: | 3FC393BF.5070706@selectacast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Never mind, stupid classpath error.
Joseph Shraibman wrote:
> I just upgraded to 7.4 and I'm getting this when I try to use the jdbc
> driver:
>
>
> Exception in thread "main" java.lang.NoSuchMethodError:
> org.postgresql.core.StartupPacket.writeTo(Lorg/postgresql/core/PGStream;)V
> at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnectionV2(AbstractJdbc1Connection.java:585)
>
> at
> org.postgresql.jdbc1.AbstractJdbc1Connection.openConnection(AbstractJdbc1Connection.java:215)
>
> at org.postgresql.Driver.connect(Driver.java:122)
> at java.sql.DriverManager.getConnection(DriverManager.java:512)
> at java.sql.DriverManager.getConnection(DriverManager.java:171)
>
> But I checked and that method does indeed exist. I built the driver
> twice. Any idea what the problem is?
>
> The line that throws the Error is:
>
> new StartupPacket(PGProtocolVersionMajor,
> PGProtocolVersionMinor,
> PG_USER,
> database).writeTo(pgStream);
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
From | Date | Subject | |
---|---|---|---|
Next Message | siddiqui | 2003-11-25 18:45:19 | How to execute stored procedures in pgAdmin? |
Previous Message | Dave Cramer | 2003-11-25 17:00:23 | Re: First build of PostGIS module of GeoTools2. Need to |