| Author |
java.sql.SQLException: Missing IN or OUT parameter at index:: 14
|
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
Hi all,
i'm getting data from Vector of vectors to insert it in the DB , the problem that i'm facing is this exception : "java.sql.SQLException: Missing IN or OUT parameter at index:: 14 " i checked all the colums that i'm filling all ok .
here is my code
any thing i missed ?
|
Thanks,
Sherif
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
What does the ><= operator do?
How many columns does your table require? You are writing 14 at the beginning and only setting 13. Do you really have a table with 14 columns?
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
Campbell Ritchie wrote:What does the ><= operator do?
How many columns does your table require? You are writing 14 at the beginning and only setting 13. Do you really have a table with 14 columns?
no the operator is errata it is <= , ya you are right they are 13 columns only , the 14 is the number of the ? in the query to be set here
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
You're welcome
|
 |
Sherif Shehab
Ranch Hand
Joined: Mar 05, 2007
Posts: 472
|
|
did you notice anything in my code may cause this exception ?
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32708
|
|
|
No, sorry. Are you sure you are getting the correct values in dd? The ++ operator will increment dd 1 too few every time.
|
 |
Paul Campbell
Ranch Hand
Joined: Oct 06, 2007
Posts: 338
|
|
This may help.
http://publib.boulder.ibm.com/infocenter/wasinfo/v4r0/index.jsp?topic=/com.ibm.support.was.doc/html/Java_2_Connectivity_(J2C)/1163246.html
[edit]Add "URL" tags. CR[/edit]
|
 |
 |
|
|
subject: java.sql.SQLException: Missing IN or OUT parameter at index:: 14
|
|
|