"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert
error occurs here due to the pgrsmd.getBaseTableName(i)....which is caused by java.io.IOException: Stream closed...but note i have not closed the connection to the database (if i omit the above line and work with just rs works fine no errors or other problems-although by using getTableName-ResultSetMetaData will return "")...