CallableStatement « JDBC « JSP-Servlet Q&A





1. Servlets&JDBC-CallableStatement    coderanch.com

I use CallableStatement to call stored procedure. Stored Procedure has two output parameter. When I want to read these output parameters, I am getting or Exception (Stack Trace:java.lang.NumberFormatException: at InsertNewContactServlet.doPost InsertNewContactServlet.java:154) or empty paramateters, while stored procedure always returns something. When I am getting Exception it complains exactly on this code: int temp=call.getInt(16); But database is always updated. Can anybody help ...