Hello,
I am trying to get JAVA UDFs working in DB2 8.2.2.
I created a class, then I compiled it using with the IBM JDK included
with DB2. I put the class in the sqllib folder and created a function
that references the class and the function within that class.
When I run it, this is the message I get.
db2 "select db2inst1.test(0) FROM sysibm.sysdummy1"
1
----------
SQL4301N Java or .NET interpreter startup or communication failed, reason
code "2". SQLSTATE=58004
It does not complain about not finding the class, or some other error,
from what I understand. It is saying that it cannot even start the JVM.
Below is the db2diag.log
2005-05-12-13.32.32.233311-240 I143627G365 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJVMstart, probe:35
MESSAGE : Error from JNI_CreateJavaVM. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD4E4 : FFFF FFFF ....
2005-05-12-13.32.32.233597-240 I143993G354 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJAttach, probe:5
MESSAGE : JVM startup failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD534 : 33EF FFFF 3...
2005-05-12-13.32.32.233706-240 I144348G355 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejAttach, probe:10
MESSAGE : Error from sqloJAttach. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD55C : 33EF FFFF 3...
2005-05-12-13.32.32.233894-240 I144704G372 LEVEL: Severe
PID : 776 TID : 332712768 PROC : db2agent (SAMPLE)
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
APPHDL : 0-7 APPID: *LOCAL.db2inst1.050512172342
FUNCTION: DB2 UDB, routine_infrastructure, sqlerGetFmpThread, probe:20
RETCODE : ZRC=0xFFFFFBEE=-1042
2005-05-12-13.32.32.186482-240 I143324G302 LEVEL: Warning
PID : 743 TID : 332712768 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
MESSAGE : Removing FMP from pool
DATA #1 : Hexdump, 12 bytes
0xBFFFBBB4 : 0000 0000 5C05 0000 5402 0000 ....\...T...
2005-05-12-13.32.32.233311-240 I143627G365 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJVMstart, probe:35
MESSAGE : Error from JNI_CreateJavaVM. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD4E4 : FFFF FFFF ....
2005-05-12-13.32.32.233597-240 I143993G354 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJAttach, probe:5
MESSAGE : JVM startup failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD534 : 33EF FFFF 3...
2005-05-12-13.32.32.233706-240 I144348G355 LEVEL: Error
PID : 1470 TID : 290192832 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejAttach, probe:10
MESSAGE : Error from sqloJAttach. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFD55C : 33EF FFFF 3...
2005-05-12-13.32.32.233894-240 I144704G372 LEVEL: Severe
PID : 776 TID : 332712768 PROC : db2agent (SAMPLE)
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
APPHDL : 0-7 APPID: *LOCAL.db2inst1.050512172342
FUNCTION: DB2 UDB, routine_infrastructure, sqlerGetFmpThread, probe:20
RETCODE : ZRC=0xFFFFFBEE=-1042
2005-05-12-13.32.42.188780-240 I145077G302 LEVEL: Warning
PID : 743 TID : 332712768 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
MESSAGE : Removing FMP from pool
DATA #1 : Hexdump, 12 bytes
0xBFFFBBB4 : 0000 0000 BE05 0000 0000 0000 ............
2005-05-12-13.32.42.188780-240 I145077G302 LEVEL: Warning
PID : 743 TID : 332712768 PROC : db2sysc
INSTANCE: db2inst1 NODE : 000
MESSAGE : Removing FMP from pool
DATA #1 : Hexdump, 12 bytes
0xBFFFBBB4 : 0000 0000 BE05 0000 0000 0000 ............
Thank you
Christos