The important part of the stack trace is the very beginning, which includes:
DSRA9110E: Statement is closed.
This means that your connection to the database is no longer active.
Main Topics
Browse All TopicsI have a small project which does multiple database insertions sequentially to 4 tables. For each table insertion I am using a batch insertion. Earlier this project was a standalone java project and was running fine.
Now I merged it with an enterprise project. I am using WAS 6.0 connection pooling. The problem is that it runs fine sometimes, but sometimes it gives ObjectClosedException. The place where I get this exception also varies. Sometimes I get exception for some table insertion and sometimes while inserting to another table.
The stack trace that I get is :
8:33:42:184 CST] 0000002f SystemErr R com.ibm.websphere.ce.cm.Ob
at com.ibm.ws.rsadapter.jdbc.
at com.ibm.ws.rsadapter.jdbc.
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.servlets.WS
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.fi
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.Vi
at com.ibm.ws.webcontainer.We
at com.ibm.ws.webcontainer.ch
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.util.ThreadPool
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.rsadapter.jdbc.
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.rsadapter.jdbc.
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.servlets.WS
8:33:42:184 CST] 0000002f SystemErr R at javax.servlet.http.HttpSer
8:33:42:184 CST] 0000002f SystemErr R at javax.servlet.http.HttpSer
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.fi
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.we
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.we
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.Vi
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.We
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.ch
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.util.ThreadPool
8:33:42:184 CST] 0000002f SystemErr R java.lang.Exception: com.ibm.websphere.ce.cm.Ob
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.servlets.WS
at javax.servlet.http.HttpSer
at javax.servlet.http.HttpSer
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.fi
at com.ibm.ws.webcontainer.se
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.we
at com.ibm.ws.webcontainer.Vi
at com.ibm.ws.webcontainer.We
at com.ibm.ws.webcontainer.ch
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.http.channel.in
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.tcp.channel.imp
at com.ibm.ws.util.ThreadPool
y: com.ibm.websphere.ce.cm.Ob
at com.ibm.ws.rsadapter.jdbc.
at com.ibm.ws.rsadapter.jdbc.
at com.nwa.emrweb.ptyload.Pas
at com.nwa.emrweb.ptyload.Pas
... 24 more
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:184 CST] 0000002f SystemErr R at com.nwa.emrweb.servlets.WS
8:33:42:184 CST] 0000002f SystemErr R at javax.servlet.http.HttpSer
8:33:42:184 CST] 0000002f SystemErr R at javax.servlet.http.HttpSer
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.fi
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.se
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.we
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.we
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.Vi
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.We
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.webcontainer.ch
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.http.channel.in
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:184 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:216 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:216 CST] 0000002f SystemErr R at com.ibm.ws.tcp.channel.imp
8:33:42:216 CST] 0000002f SystemErr R at com.ibm.ws.util.ThreadPool
8:33:42:216 CST] 0000002f SystemErr R Caused by: com.ibm.websphere.ce.cm.Ob
8:33:42:216 CST] 0000002f SystemErr R at com.ibm.ws.rsadapter.jdbc.
8:33:42:216 CST] 0000002f SystemErr R at com.ibm.ws.rsadapter.jdbc.
8:33:42:216 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:216 CST] 0000002f SystemErr R at com.nwa.emrweb.ptyload.Pas
8:33:42:216 CST] 0000002f SystemErr R ... 24 more
any kind of help will be great.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.
I will leave the following recommendation for this question in the Cleanup Zone:
Accept HonorGod's comment {#a21256267} as the answer
Any objections should be posted here in the next 4 days. After that time, the question will be closed.
HonorGod - Experts Exchange Cleanup Volunteer
Business Accounts
Answer for Membership
by: HonorGodPosted on 2008-04-01 at 10:29:15ID: 21256169
Are you using external connection pooling?