File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invalid Handle exception!!

 
Naresh Rajan
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Edward Harned
Ranch Hand
Posts: 291
Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24204
34
Chrome Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Off to JDBC.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic