[#1011217] Installing examples.jar gives same error on win32 and Solaris 64

View Trackers | Bugs | Download .csv | Monitor

Date:
2012-08-07 15:01
Priority:
3
State:
Open
Submitted by:
Adam Ringel (workasr)
Assigned to:
Nobody (None)
Category:
PL/Java
Group:
2.0.0
Summary:
Installing examples.jar gives same error on win32 and Solaris 64

Detailed description
Using snapshot.20120525 running:

SELECT sqlj.install_jar('file:///ttt/postgres/pljava/pljava-snapshot.20120525.0-win32/examples.jar', 'samples', true);

gives the same error when run under Postgres 9.1.3 Win 32 (pre-built binary) and Solaris 10 64 bit (built ourselves using gcc):

ERROR: java.sql.SQLException: No such class: org.postgresql.pljava.example.ComplexTuple

Full output:

NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "employees1_pkey" for table "employees1"
CONTEXT: SQL statement "CREATE TABLE javatest.employees1 ( id int PRIMARY KEY, name varchar(200), salary int )"
NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "employees2_pkey" for table "employees2"
CONTEXT: SQL statement "CREATE TABLE javatest.employees2 ( id int PRIMARY KEY, name varchar(200), salary int, transferDay date, transferTime time )"
NOTICE: type "javatest.complex" is not yet defined
DETAIL: Creating a shell type definition.
CONTEXT: SQL statement "CREATE FUNCTION javatest.complexdummy(cstring) RETURNS javatest.complex AS 'lower' LANGUAGE INTERNAL"
NOTICE: return type javatest.complex is only a shell
CONTEXT: SQL statement "CREATE FUNCTION complex_in(cstring) RETURNS javatest.complex AS 'UDT[org.postgresql.pljava.example.ComplexScalar] input' LANGUAGE java IMMUTABLE STRICT"
NOTICE: argument type javatest.complex is only a shell
CONTEXT: SQL statement "CREATE FUNCTION complex_out(javatest.complex) RETURNS cstring AS 'UDT[org.postgresql.pljava.example.ComplexScalar] output' LANGUAGE java IMMUTABLE STRICT"
NOTICE: return type javatest.complex is only a shell
CONTEXT: SQL statement "CREATE FUNCTION complex_recv(internal) RETURNS javatest.complex AS 'UDT[org.postgresql.pljava.example.ComplexScalar] receive' LANGUAGE java IMMUTABLE STRICT"
NOTICE: argument type javatest.complex is only a shell
CONTEXT: SQL statement "CREATE FUNCTION complex_send(javatest.complex) RETURNS bytea AS 'UDT[org.postgresql.pljava.example.ComplexScalar] send' LANGUAGE java IMMUTABLE STRICT"
ERROR: java.sql.SQLException: No such class: org.postgresql.pljava.example.ComplexTuple

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item

Powered By FusionForge