I think you will get this message when you try to get the Oracle LONG value from the result set several times.
I had code like:
rs.getString(i+1) ; if (rs.wasNull()) continue ; set(queryAttr[i], rs.getString(i+1)) ;
And I started getting "Stream is already closed." mistake. I stopped getting the error when I changed the code to:
String str = rs.getString(i+1) ; if (rs.wasNull()) continue ; set(queryAttr[i], str) ;
John neville
source share