File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Oracle/OAS and the fly likes SQLException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Reply locked New topic
Author

SQLException

Kartik Ruppa
Ranch Hand

Joined: Aug 28, 2002
Posts: 60
hi,
am not sure whether this is the right place for this query.Pls do help me out if possible.
i get the follwing error message when trying to remove rows from oracle db.
java.sql.SQLException: Missing IN- or OUT-parameter i index:: 1
Am using oracle 8.1.7 ,CMP beans and Websphere for my application.
my code snippet is as follows:
for(Enumeration trmenum = trolemodulehome.findTrolemoduleByMrole(mrolekey); trmenum.hasMoreElements(); test.remove())
{
test = (Trolemodule)PortableRemoteObject.narrow(trmenum.nextElement(),com.arena.security.Trolemodule.class);

}
what mistake am i doing.pls help me out.
thanks
kabs
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

Not sure, but I think your duplicate post in IBM Websphere should be a better place to get an answer.
From my guess It doesn't look like an Oracle error per say.
My guess is that your EJB code is calling a Stored Procedure, but not including the parameters in the call.
I am closing this thread so that you don't have duplicate posts.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: SQLException
 
Threads others viewed
Storage of Data
OCJP 6 Passed with 86% - Thanks to Kathy Sierra and Bert Bates
Data base persistance in Entity Beans & web logic
SQL Exception
How to store and retrive image through jsp page to oracle?
developer file tools