hi Jon,
> if t[i].join(); (or anything) throws an exception, then the first
> connection
> that you open will dangle. Do you see "we've got an exception" anywhere in
> your logs? put *all* the conn.close() in finally blocks... also, what is
> the
> point of calling ds.getConnection() two times?
thx for your answer!
this is just dummy code with which i can still reproduce the problem.
i removed as much as possible [ including some try-caches ] but kept what is
needed to reproduce the problem. i understand that code looks odd after
taking out most of actual work that is done, but in this way it's [
hopefully ] readable.
in my case other exceptions [ than reported IllegalStateException ] do not
occur.
so none of code in catch is executed.
> Your code should be:
actually i'm very close to your suggestion. i usually run:
}finally{
try{
if (conn!=null) conn.close()
}catch(Exception e){
}
}
regards
Pawel Kudzia
--
View this message in context:
http://www.nabble.com/java.lang.IllegalStateException%3A-Connection-null-was-not-closed.-tp24593349p24597084.html
Sent from the Resin mailing list archive at Nabble.com.
_______________________________________________
resin-interest mailing list
[email protected]
http://maillist.caucho.com/mailman/listinfo/resin-interest