Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

An SQLException has occuredjava.sql.SQLException: Stream has already been closed

 
Ravindra Nandyala
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

I am trying to read LONG RAW data type from database and doing some computation on it. But I get this error

when it processes LONG or LONG RAW data type. I have read in forum it occurs when Data is not processed in the same order in which it is fetched. I am processing the data in the same order in which it is fetched yet I am getting this error. Can somebody please help.


 
Ravindra Nandyala
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reply will be highly appreciated
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33696
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravindra,
I'm thinking you aren't getting an answer because the amount of code is overwhelming.

Two things you can do to help:
1) What line is the error occuring on?
2) What's the smallest possible example that show the error. Can you get rid of the BLOB conditional and still have the error? The CLOB conditional? Etc.
 
Ravindra Nandyala
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the code. and I get an error Stream has already been closed on the line that is made bold. please suggest how should htis be fixed.

 
Paul Clapham
Sheriff
Pie
Posts: 20188
26
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a lot of Oracle-specific things in that code. I'm sorry if this doesn't seem helpful, but why don't I move the post to the Oracle forum?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic