aspose file tools
The moose likes JDBC and the fly likes invalid Handle exception!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "invalid Handle exception!!" Watch "invalid Handle exception!!" New topic
Author

invalid Handle exception!!

Naresh Rajan
Ranch Hand

Joined: Sep 08, 2005
Posts: 45
Hi i am developing an application which goes like this

f= new FileOutPutSTream(fil2);
b = new BufferOutPutStream(f);

while(resultSet.next()){
b.write(resultSet.getString("asda").getBytes());
b.write(resultSet.getString("asda").getBytes());
b.write(resultSet.getString("asda").getBytes());
b.write(resultSet.getString("asda").getBytes());

//Calling a method which calls an insert SP
insertASD(String,String,String);

}

If I have the insertASD() method then an IOException (The handle is invalid). If I remove the call insertASD() method thus not inserting into the database,I dont get the exception. Please help me in this regard.


Am not a pro and thats why am here!!!
Edward Harned
Ranch Hand

Joined: Sep 19, 2005
Posts: 288

About the only thing I can say for certain is that this is not a Thread problem and you are in the wrong forum.

Perhaps JDBC (since you're using resultSet) or I/O and Streams.


Ed's latest article: A Java Parallel Calamity http://coopsoft.com/ar/Calamity2Article.html
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24061
    
  13

Off to JDBC.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: invalid Handle exception!!
 
Similar Threads
Handle is invalid!!!
Record store does not remain persistant throughout various openings of MIDLet
column exist but ResultSet.getString(String) return invalid column name
Writing files across network
Stored proc not found...