Solved

iBatis error - Output parameters have not yet been processed

Posted on 2009-05-20
2
2,001 Views
Last Modified: 2013-11-11
Could any body suggest what this error mean?  I am getting this error while reading a stored proc result set thru iBatis.

--- Cause: java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().

        at com.ibatis.sqlmap.engine.mapping.statement.GeneralStatement.executeUpdate(GeneralStatement.java:91)

        at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.insert(SqlMapExecutorDelegate.java:447)

        at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.insert(SqlMapSessionImpl.java:82)

        at org.springframework.orm.ibatis.SqlMapClientTemplate$9.doInSqlMapClient(SqlMapClientTemplate.java:399)

        at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:209)

        ... 53 more

Caused by: java.sql.SQLException: Output parameters have not yet been processed. Call getMoreResults().

        at net.sourceforge.jtds.jdbc.ParamInfo.getOutValue(ParamInfo.java:159)

        at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getOutputValue(JtdsCallableStatement.java:116)

        at net.sourceforge.jtds.jdbc.JtdsCallableStatement.getObject(JtdsCallableStatement.java:292)

        at com.mchange.v2.c3p0.impl.NewProxyCallableStatement.getObject(NewProxyCallableStatement.java:675)

0
Comment
Question by:fix2009
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 400 total points
ID: 24437099
your stored proc is returning more than one result set by the looks, try changing it to only return one.

0
 

Author Closing Comment

by:fix2009
ID: 31583690
Thanks object. Thats was the exact problem, the proc had unexpected resultset returning
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
couple of eclipse 5 36
Oracle SQL syntax check  without executing 6 54
even odd program using while loop 3 40
ESX 6.0 Best Practices for datastore size 5 80
Creating and Managing Databases with phpMyAdmin in cPanel.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This video teaches viewers about errors in exception handling.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question