Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Java classes that implement Comparable don't work in DB2?

7 views
Skip to first unread message

Malte Finsterwalder

unread,
Mar 22, 2002, 4:03:02 PM3/22/02
to
Hi there,

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

Dirk "db2scout" Wollscheid

unread,
Mar 22, 2002, 6:35:45 PM3/22/02
to
Malte,

do you have a small example that you can send me?

I don't think that implementing interfaces should make a difference.

Dirk


0 new messages