• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Missing IN or OUT parameter at index:: 1

 
Ranch Hand
Posts: 128
MS IE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm getting the above SQLException while executing a PreparedStatement. I didn't get an error while testing though.



Its pretty simple. But, wonder why the exception. Driver used Oracle Jdbc driver. Has anyone faced a similar situation and what was your approach to solve it. Thanks.
 
Bartender
Posts: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At first sight, your example code looks ok.
Maybe if you post the real code, and the complete error output, we can tell more.

Regards, Jan
 
Allen Bandela
Ranch Hand
Posts: 128
MS IE Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for trying to help.Here's the code. And the exception error message is in the subject line. Its a java.sql.SQLException.
ColumnA is a Number and ColumnB is a VARCHAR2.



(Do you think that if this.columnBValue is null, it would give this exception?)

[ July 03, 2007: Message edited by: Sylvester James ]

[ July 03, 2007: Message edited by: Sylvester James ]
[ July 03, 2007: Message edited by: Sylvester James ]
 
Jan Cumps
Bartender
Posts: 2662
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

(Do you think that if this.columnBValue is null, it would give this exception?)

That's something you can test. Try how the code behaves when the attribute has a value, and when it's null.
 
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Sylvester,

why do you have a static Preparedstatement and Connection?

Herman
PS your code does not compile, please only sent exact code (just copy/paste)
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic