is it correct, that classes that implement the Comparable interface
don't work inside DB2? I tried to create an object and send it to a
client (serialized). But the object implements Comparable. When I
create the object inside a java transform function I get an error:
-------------------------
ErrorCode: -4302; SQLState: 38501
COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL4302N
Java stored procedure or user-defined function
"MALTE.FELEMENT_S_TO_J", specific name "SQL020322215109886" aborted
with an exception "". SQLSTATE=38501
at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:254)
at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(SQLExceptionGenerator.java:197)
at
COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(SQLExceptionGenerator.java:436)
at COM.ibm.db2.jdbc.app.DB2ResultSet.next(DB2ResultSet.java:473)
at db2proto.database.Test.readThingFromDb(Test.java:297)
at db2proto.database.Test.main(Test.java:27)
-------------------------
In db2diag.log I get:
-------------------------
2002-03-22-22.01.10.022000 Instance:DB2 Node:000
PID:3680(DB2UDF.EXE) TID:2252 Appid:none
BSU Java support sqlejCallUDF_dll Probe:110
Java UDF exited with exception.
2002-03-22-22.01.10.032000 Instance:DB2 Node:000
PID:3680(DB2UDF.EXE) TID:2252 Appid:none
BSU Java support sqlejLogException Probe:10
java.lang.NoClassDefFoundError
2002-03-22-22.01.10.032001 Instance:DB2 Node:000
PID:3680(DB2UDF.EXE) TID:2252 Appid:none
BSU Java support sqlejCallUDF Probe:30
Error from DB2JEXT CallUDF. RC:
32ef ffff 2...
-------------------------
Is this a DB2 sortcumming or bug?
Greetings,
Malte
do you have a small example that you can send me?
I don't think that implementing interfaces should make a difference.
Dirk