AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sqlcode -4306 on stored procedure ....

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Raquel
Guest





PostPosted: Thu Jun 24, 2004 5:00 am    Post subject: sqlcode -4306 on stored procedure .... Reply with quote



A stored procedure that I am trying to run in DB2 receives
the error :

"[IBM][CLI Driver][DB2/NT] SQL4306N Java stored procedure or user-defined
function "DB2ADMIN.SP3", specific name "SQL040624101539958" could not call
Java method "sproc3mtd", signature "(Ljava/lang/String;[Ljava/la".
SQLSTATE=42724"

SQLCODE -4306; SQLSTATE 42724. SQLCODE -4306 has the following
description:

"The Java method given by the EXTERNAL NAME clause of a CREATE PROCEDURE
or CREATE FUNCTION statement could not be found. Its declared argument
list may not match what the database expects, or it may not be a "public"
instance method."

This is my client application call:
#sql {CALL DB2ADMIN.SP3(:in workdept,:out error)};
workdept and error are both defined as String.

This is my stored procedure method statement:
public static void sproc3mtd ( String workdept,
String[] errorlabel,
ResultSet[] rs1 ) throws Exception

This is my CREATE PROCEDURE statement:
CREATE PROCEDURE SP3 (IN in1 CHAR(6), OUT out3 CHAR(50))

Any ideas what could be the problem?

TIA
Raquel.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.