If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > COBOL SP and Hibernate

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-09-07, 01:15
karthikravi karthikravi is offline
Registered User
 
Join Date: Jul 2005
Posts: 5
COBOL SP and Hibernate

Hi,

I'm faced with a peculair problem. We have a application which connect to a Mainframe Db2 and gets back data. We have a COBOL SP written to fetch the dataset. The problem now is when we try to call a particular SP from the app, it fails with the following error...

com.ibm.db2.jcc.a.SqlException: THE VALUE OF INPUT HOST VARIABLE OR PARAMETER NUMBER CANNOT BE USED AS SPECIFIED BECAUSE OF ITS DATA TYPE

When we test the same stored procedure(SP) using a Junit test class the SP is executed successfully and data is returned. But when we copy the same code from the Unit test and call it from within the application we end up with the above said error. The only difference is we use Hibernate to get a connection to the database.

Can anybody point out what might be the problem??
Reply With Quote
  #2 (permalink)  
Old 01-09-07, 08:35
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Quote:
Originally Posted by karthikravi
Can anybody point out what might be the problem??
Data type mapping?
Reply With Quote
  #3 (permalink)  
Old 01-09-07, 08:39
karthikravi karthikravi is offline
Registered User
 
Join Date: Jul 2005
Posts: 5
yes. Data Mapping!!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On