[Pljava-dev] java.lang.NoSuchMethodError: method java.sql.ResultSet.isClosed with signature ()Z was not found.

From: vorarlberger at gmail(dot)com (Vorarlberger)
To:
Subject: [Pljava-dev] java.lang.NoSuchMethodError: method java.sql.ResultSet.isClosed with signature ()Z was not found.
Date: 2011-12-06 07:52:01
Message-ID: CALtUeZYWvADROU-gVQSCVxqtFinoXDLz5fHCekxSWJnUeUxFbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Yes you are right I am using Java 6 and jdbc 4. So I have download and
compiled pljava from cvs head - but still have an Issue:

select javatest.print(12);

DEBUG: StartTransactionCommand
DEBUG: StartTransaction
DEBUG: name: unnamed; blockState: DEFAULT; state: INPROGR,
xid/subid/cid: 0/1/0, nestlvl: 1, children:
DEBUG: find_in_dynamic_libpath: trying "/usr/lib/postgresql/9.1/lib/pljava"
DEBUG: find_in_dynamic_libpath: trying
"/usr/lib/postgresql/9.1/lib/pljava.so"
DEBUG: Using integer_datetimes
DEBUG: Added JVM option string
"-Djava.class.path=/usr/lib/postgresql/9.1/lib/pljava.jar:/usr/lib/postgresql/9.1/lib/postgresql-9.1-901.jdbc4.jar"
DEBUG: Added JVM option string
"-Dsqlj.defaultconnection=jdbc:default:connection"
DEBUG: Added JVM option string "vfprintf"
DEBUG: Added JVM option string "-Xrs"
DEBUG: Creating JavaVM
DEBUG: JavaVM created
DEBUG: Getting Backend class pljava.jar
DEBUG: Backend class was there
WARNING: java.lang.NoClassDefFoundError: org.postgresql.pljava.internal.Oid
DEBUG: Destroying JavaVM...
DEBUG: JavaVM destroyed
ERROR: Unable to find method org.postgresql.pljava.internal.Oid.<init>
with signature (I)V

********** Error **********

ERROR: Unable to find method org.postgresql.pljava.internal.Oid.<init> with
signature (I)V
SQL state: XX000

2011/12/6 Johann 'Myrkraverk' Oskarsson <johann at 2ndquadrant.com>

> Vorarlberger <vorarlberger at gmail.com> writes:
>
>
> > PS This is on Linux postgres 9.1 and pljava 1.4.3
>
> PL/Java 1.4.3 is built with Java 1.5 and hence implements JDBC 3. Are
> you running it with Java 1.6? Normally that works fine because JNI is
> backwards compatible.
>
> You are using the JDBC 4 driver.
>
> Please either use the JDBC 3 driver and compile and run your code with
> Java 1.5 or upgrade PL/Java to CVS HEAD with Java 1.6. Then let us
> know if it works or not.
>
>
> --
> Johann Oskarsson http://www.2ndquadrant.com/ |[]
> PostgreSQL Development, 24x7 Support, Training and Services --+--
> |
> Blog: http://my.opera.com/myrkraverk/blog/
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at pgfoundry.org
> http://pgfoundry.org/mailman/listinfo/pljava-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20111206/bc1ff92b/attachment.html>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Vorarlberger 2011-12-07 10:00:05 [Pljava-dev] java.lang.NoSuchMethodError: method java.sql.ResultSet.isClosed with signature ()Z was not found.
Previous Message John R Pierce 2011-12-06 06:07:50 [Pljava-dev] CVS HEAD is now Java 6.