[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

03/28/2008 at 08:42AM PDT, ID: 23277534
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

how to deal with ObjectClosedException

Asked by rajeshrawat in Telecommunications Providers, IBM Websphere Application Server

Tags: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.

I 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.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1221)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeBatch(WSJdbcStatement.java:532)
at com.nwa.emrweb.ptyload.PassengerLoadProcessDao.insertTrvlItFlt(PassengerLoadProcessDao.java:495)
at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:329)
at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:104)
at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:75)
at com.nwa.emrweb.servlets.WSPNFeedSchedulingServlet.doGet(WSPNFeedSchedulingServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:69)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)

 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1221)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeBatch(WSJdbcStatement.java:532)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoadProcessDao.insertTrvlItFlt(PassengerLoadProcessDao.java:495)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:329)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:104)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:75)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.servlets.WSPNFeedSchedulingServlet.doGet(WSPNFeedSchedulingServlet.java:36)
 8:33:42:184 CST] 0000002f SystemErr     R       at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 8:33:42:184 CST] 0000002f SystemErr     R       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:69)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
 8:33:42:184 CST] 0000002f SystemErr     R java.lang.Exception: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:335)
at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:104)
at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:75)
at com.nwa.emrweb.servlets.WSPNFeedSchedulingServlet.doGet(WSPNFeedSchedulingServlet.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:69)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
y: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1221)
at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeBatch(WSJdbcStatement.java:532)
at com.nwa.emrweb.ptyload.PassengerLoadProcessDao.insertTrvlItFlt(PassengerLoadProcessDao.java:495)
at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:329)
... 24 more

 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:335)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:104)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.passengerLoadProcess(PassengerLoad.java:75)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.nwa.emrweb.servlets.WSPNFeedSchedulingServlet.doGet(WSPNFeedSchedulingServlet.java:36)
 8:33:42:184 CST] 0000002f SystemErr     R       at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
 8:33:42:184 CST] 0000002f SystemErr     R       at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1173)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:69)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:626)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
 8:33:42:184 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
 8:33:42:216 CST] 0000002f SystemErr     R Caused by: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
 8:33:42:216 CST] 0000002f SystemErr     R       at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.runtimeXIfNotClosed(WSJdbcStatement.java:1221)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.ibm.ws.rsadapter.jdbc.WSJdbcStatement.executeBatch(WSJdbcStatement.java:532)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoadProcessDao.insertTrvlItFlt(PassengerLoadProcessDao.java:495)
 8:33:42:216 CST] 0000002f SystemErr     R       at com.nwa.emrweb.ptyload.PassengerLoad.persistData(PassengerLoad.java:329)
 8:33:42:216 CST] 0000002f SystemErr     R       ... 24 more

any kind of help will be great.
[+][-]04/01/08 10:29 AM, ID: 21256169

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/01/08 10:39 AM, ID: 21256267

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Telecommunications Providers, IBM Websphere Application Server
Tags: com.ibm.websphere.ce.cm.ObjectClosedException: DSRA9110E: Statement is closed.
Sign Up Now!
Solution Provided By: HonorGod
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05/14/08 04:40 PM, ID: 21569586

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/25/08 05:56 AM, ID: 21642417

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 / EE_QW_2_20070628