Hi all.,
I have a problem trying to execute a Java Stored Procedure after update to the fixpack 12
db2 call valoriva(747,?)
SQL4304N Java stored procedure or user-defined function "DACADM .VALORIVA", specific name "SQL030722125801570" could not load Java class "ImpuestoDescuento", reason code "4". SQLSTATE=42724
I review the error code:
----------------------------------------------------------
D:\>db2 ? sql4304N
SQL4304N Java stored procedure or user-defined function
"<name>", specific name "<spec-name>" could not load
Java class "<class>", reason code "<reason-code>".
Explanation: The Java class given by the EXTERNAL NAME clause of
a CREATE PROCEDURE or CREATE FUNCTION statement could not be
loaded. The reason codes are:
1 The class was not found on the CLASSPATH.
2 The class did not implement the required interface
3 The default constructor failed or was unavailable.
4 Could not load driver for "jdbc:default:connection".
5 Could not establish default context.
User Response: Ensure that the compiled ".class" file is
installed in the CLASSPATH, for example under "sqllib/function".
Ensure it implements the required Java interfaces and is
"public".
sqlcode: -4304
sqlstate: 42724
-----------------------------------------------------------
I review the CLASSPATH, and it's OK:
------CLASSPATH-------------
D:\>echo %CLASSPATH%
C:\j2sdk1.4.1_02\bin;D:\Archivos de programa\IBM\WebSphere MQ\Java\lib\provideru
til.jar;D:\Archivos de programa\IBM\WebSphere MQ\Java\lib\com.ibm.mqjms.jar;D:\A
rchivos de programa\IBM\WebSphere MQ\Java\lib\ldap.jar;D:\Archivos de programa\I
BM\WebSphere MQ\Java\lib\jta.jar;D:\Archivos de programa\IBM\WebSphere MQ\Java\l
ib\jndi.jar;D:\Archivos de programa\IBM\WebSphere MQ\Java\lib\jms.jar;D:\Archivo
s de programa\IBM\WebSphere MQ\Java\lib\connector.jar;D:\Archivos de programa\IB
M\WebSphere MQ\Java\lib\fscontext.jar;D:\Archivos de programa\IBM\WebSphere MQ\J
ava\lib\com.ibm.mq.jar;.;D:\Archivos de programa\SQLLIB\java\db2java.zip;D:\Arch
ivos de programa\SQLLIB\java\runtime.zip;D:\Archivos de programa\SQLLIB\bin;D:\Archivos de programa\SQLLIB\function\export.jar;D:\Archivos de programa\SQLLIB\function\function.zip
-------------------------------------------------------
But in the db2diag.log appear the following error:
------------------------------------------------------------
2004-07-15-15.52.35.578000 Instance

B2 Node:000
PID:2420(db2dari.exe) TID:3564 Appid:
BSU Java support sqlejLogException Probe:10
java.lang.NoClassDefFoundError: COM/ibm/db2/jdbc/app/DB2StoredProcDriver
2004-07-15-15.52.35.625000 Instance

B2 Node:000
PID:2420(db2dari.exe) TID:3564 Appid:
BSU Java support sqlejCallSTP Probe:30
Error from DB2JEXT CallSTP. RC:
30ef ffff 0...
----------------------------------------------------------
Anybody have a solution for this problem??
Thank's and Regards for any help.