-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem calling stored procedure via native query
PostPosted: Tue Feb 26, 2013 7:37 am 
Newbie

Joined: Tue Feb 26, 2013 7:09 am
Posts: 1
I am creating a Query using.. EntityManager.createNativeQuery(queryStr);

where queryStr = "{call INSERT_STORED_PROC (:param1,:param2,..... :param76)}"

This works for every scenario except one, which makes me think the problem lies with the parameters passed dynamically. I have logged all the parameters and compared the working scenarios and the erroneous one. All the data are similar. When i construct the SQL query manually by copying the JDBC parameters logged and run it in SQL developer, it works fine! Where do i proceed from here?!

Error :

PLS-00306: wrong number or types of arguments in call to 'INSERT_STORED_PROC'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

org.springframework.dao.InvalidDataAccessResourceUsageException: could not execute native bulk manipulation query; SQL [{call INSERT_STORED_PROC(:param1,:param2,..... :param76)} ]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query
    at org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:629)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.