Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

How to make a call to oracle stored procedures from ireport designer  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written following stored procedure to test procedure call from iReport designer.

Stored Procedure:

CREATE OR REPLACE PROCEDURE test(cursor1 out sys_refcursor) IS
OPEN cursor1 for
select person_id,first_name
from person
where rownum < 5;

In my query window I am using following line to call this procedure.

{call test($P{cursor})}

where $P{cursor} is a parameter with class java.sql.ResultSet.

I have added ojdbc.jar file into my class path and connection is also successful.

When I run above statement for calling stored procedure it throws the error:

Error: java.sql.SqlException:Invalid column type

Can someone tell me what I did wrong here? AM i supposed to add any file or make any changes in the call to stored procedure?
Posts: 598
Linux Notepad Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checking against the sample code, it looks fine.

You probably want to ask this in the Jaspersoft forums. Hmm... it looks like you did already. Regardless, this is a question Jasper ought to be able to answer.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!