Subject: [Pljava-dev] problem deploying pljava

From: fluca1978 at infinito.it (Luca Ferrari)
Date: Tue, 1 Jun 2010 09:06:03 +0200

On Tuesday 01 June 2010 01:30:55 am your cat, walking on the keyboard, wrote:
> The pljava binaries need to be built for specific postgresql versions,
> so you've downloaded a version for something other than 8.4 because the
> 1.4 release doesn't work with the 8.4 version.  To get a pljava that
> works for 8.4 you need to build it yourself from CVS.

Uhm...I'm getting the following list of errors (all referred to the jdbc 
subpackage), any idea?

$ make all
make[1]: Entering directory 
`/sviluppo/java/pljava/org.postgresql.pljava/build/classes/pljava'
javac -source 1.4 -target 1.4 -d . <java sources>
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/ObjectResultSet.java:290: 
reference to updateBlob is ambiguous, both method 
updateBlob(int,java.sql.Blob) in java.sql.ResultSet and method 
updateBlob(int,java.io.InputStream) in java.sql.ResultSet match
                this.updateBlob(columnIndex, new BlobValue(x, length));
                    ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/ObjectResultSet.java:320: 
reference to updateClob is ambiguous, both method 
updateClob(int,java.sql.Clob) in java.sql.ResultSet and method 
updateClob(int,java.io.Reader) in java.sql.ResultSet match
                this.updateClob(columnIndex, new ClobValue(x, length));
                    ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/TriggerResultSet.java:22: 
org.postgresql.pljava.jdbc.TriggerResultSet is not abstract and does not 
override abstract method updateNClob(java.lang.String,java.io.Reader) in 
java.sql.ResultSet
public class TriggerResultSet extends SingleRowResultSet
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SyntheticResultSetMetaData.java:20: 
org.postgresql.pljava.jdbc.SyntheticResultSetMetaData is not abstract and does 
not override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper
public class SyntheticResultSetMetaData extends AbstractResultSetMetaData
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIResultSetMetaData.java:21: 
org.postgresql.pljava.jdbc.SPIResultSetMetaData is not abstract and does not 
override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper
public class SPIResultSetMetaData extends AbstractResultSetMetaData
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIConnection.java:42: 
org.postgresql.pljava.jdbc.SPIConnection is not abstract and does not override 
abstract method createStruct(java.lang.String,java.lang.Object[]) in 
java.sql.Connection
public class SPIConnection implements Connection
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIResultSet.java:27: 
org.postgresql.pljava.jdbc.SPIResultSet is not abstract and does not override 
abstract method updateNClob(java.lang.String,java.io.Reader) in 
java.sql.ResultSet
public class SPIResultSet extends ResultSetBase
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIStatement.java:25: 
org.postgresql.pljava.jdbc.SPIStatement is not abstract and does not override 
abstract method isPoolable() in java.sql.Statement
public class SPIStatement implements Statement
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIDatabaseMetaData.java:19: 
org.postgresql.pljava.jdbc.SPIDatabaseMetaData is not abstract and does not 
override abstract method 
getFunctionColumns(java.lang.String,java.lang.String,java.lang.String,java.lang.String) 
in java.sql.DatabaseMetaData
public class SPIDatabaseMetaData implements DatabaseMetaData
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SQLInputFromTuple.java:34: 
org.postgresql.pljava.jdbc.SQLInputFromTuple is not abstract and does not 
override abstract method readRowId() in java.sql.SQLInput
public class SQLInputFromTuple extends JavaWrapper implements SQLInput
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/BlobValue.java:20: 
org.postgresql.pljava.jdbc.BlobValue is not abstract and does not override 
abstract method getBinaryStream(long,long) in java.sql.Blob
public class BlobValue extends InputStream implements Blob
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIParameterMetaData.java:16: 
org.postgresql.pljava.jdbc.SPIParameterMetaData is not abstract and does not 
override abstract method isWrapperFor(java.lang.Class) in java.sql.Wrapper
public class SPIParameterMetaData implements ParameterMetaData
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SingleRowReader.java:22: 
org.postgresql.pljava.jdbc.SingleRowReader is not abstract and does not 
override abstract method updateNClob(java.lang.String,java.io.Reader) in 
java.sql.ResultSet
public class SingleRowReader extends SingleRowResultSet
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SPIPreparedStatement.java:38: 
org.postgresql.pljava.jdbc.SPIPreparedStatement is not abstract and does not 
override abstract method setNClob(int,java.io.Reader) in 
java.sql.PreparedStatement
public class SPIPreparedStatement extends SPIStatement implements 
PreparedStatement
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SQLInputFromChunk.java:40: 
org.postgresql.pljava.jdbc.SQLInputFromChunk is not abstract and does not 
override abstract method readRowId() in java.sql.SQLInput
public class SQLInputFromChunk implements SQLInput
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SQLOutputToTuple.java:35: 
org.postgresql.pljava.jdbc.SQLOutputToTuple is not abstract and does not 
override abstract method writeSQLXML(java.sql.SQLXML) in java.sql.SQLOutput
public class SQLOutputToTuple implements SQLOutput
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SingleRowWriter.java:26: 
org.postgresql.pljava.jdbc.SingleRowWriter is not abstract and does not 
override abstract method updateNClob(java.lang.String,java.io.Reader) in 
java.sql.ResultSet
public class SingleRowWriter extends SingleRowResultSet
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/ClobValue.java:23: 
org.postgresql.pljava.jdbc.ClobValue is not abstract and does not override 
abstract method getCharacterStream(long,long) in java.sql.Clob
public class ClobValue extends Reader implements Clob
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SyntheticResultSet.java:21: 
org.postgresql.pljava.jdbc.SyntheticResultSet is not abstract and does not 
override abstract method updateNClob(java.lang.String,java.io.Reader) in 
java.sql.ResultSet
public class SyntheticResultSet extends ResultSetBase
       ^
/sviluppo/java/pljava/org.postgresql.pljava/src/java/pljava/org/postgresql/pljava/jdbc/SQLOutputToChunk.java:42: 
org.postgresql.pljava.jdbc.SQLOutputToChunk is not abstract and does not 
override abstract method writeSQLXML(java.sql.SQLXML) in java.sql.SQLOutput
public class SQLOutputToChunk implements SQLOutput
       ^
20 errors
make[1]: *** [.timestamp] Error 1
make[1]: Leaving directory 
`/sviluppo/java/pljava/org.postgresql.pljava/build/classes/pljava'
make: *** [pljava_all] Error 2

---

From: books at ejurka.com (Kris Jurka)
Date: Tue, 01 Jun 2010 08:31:46 -0700

> Uhm...I'm getting the following list of errors (all referred to the jdbc

You must build with a 1.4 or 1.5 JDK.  It does not support JDK 1.6 at 
the present.

Kris Jurka