Re: strange error

From: Barry Lind <barry(at)xythos(dot)com>
To: # sriram # <sriram(at)imsc(dot)ernet(dot)in>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: strange error
Date: 2002-02-23 21:50:13
Message-ID: 3C780E95.3070107@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

It looks like you are calling a jdbc2 method but using the jdbc1 version
of the driver. getResultSetConcurrency() is a method added in jdbc2.

--Barry

# sriram # wrote:
> Hi all....
>
> I am running a small jdbc program and i get an error like this...
>
>
> [sriram(at)nmlinux2 sriram]$ java jdbc
> Internal error: caught an unexpected exception.
> Please check your CLASSPATH and your installation.
> java/lang/NoSuchMethodError: java/sql/Statement.getResultSetConcurrency()I
> at org.postgresql.jdbc2.Connection.getResultSet(Connection.java:216)
> at org.postgresql.core.QueryExecutor.execute(QueryExecutor.java:121)
> at org.postgresql.Connection.ExecSQL(Connection.java:398)
> at org.postgresql.jdbc2.Statement.execute(Statement.java:130)
> at org.postgresql.jdbc2.Statement.executeQuery(Statement.java:54)
> at jdbc.main(jdbc.java:18)
> Aborted
>
>
> i am able to connect to the database with ease.
> my jdbc:18 is the line PreparedStatement ps=con.prepareStatement("SELECT.....");
>
> what could be the error or where should i ammend my code
>
>
> thanks
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message zuhans 2002-02-24 19:01:44 how to program a db-connection in java?
Previous Message Bruce Momjian 2002-02-23 02:39:54 Re: JDBC CStmt (inline this time)