Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7709729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:56:05+00:00 2026-06-01T00:56:05+00:00

My application is trying to do a distributed transaction on 2 databases on a

  • 0

My application is trying to do a distributed transaction on 2 databases on a DB2 server, app server is websphere 6.1 and using Atomikos as the TM.

UserTranaction.commit() is failing with the following exception:
javax.transaction.RollbackException: Transaction set to rollback only
The full stack trace is:

    [3/26/12 12:08:43:880 EDT] 0000001f SystemErr     R javax.transaction.RollbackException: Transaction set to rollback only
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.jta.TransactionImp.rethrowAsJtaRollbackException(TransactionImp.java:70)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:250)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.jta.TransactionManagerImp.commit(TransactionManagerImp.java:498)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.jta.UserTransactionImp.commit(UserTransactionImp.java:129)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.Servlet.InitialServlet.doPost(InitialServlet.java:131)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R Caused by: com.atomikos.icatch.RollbackException: Transaction set to rollback only
    at com.atomikos.icatch.imp.TxRollbackOnlyStateHandler.commit(TxRollbackOnlyStateHandler.java:84)
    at com.atomikos.icatch.imp.CompositeTransactionImp.doCommit(CompositeTransactionImp.java:319)
    at com.atomikos.icatch.imp.CompositeTerminatorImp.commit(CompositeTerminatorImp.java:79)
    at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:236)
    at com.atomikos.icatch.jta.TransactionManagerImp.commit(TransactionManagerImp.java:498)
    at com.atomikos.icatch.jta.UserTransactionImp.commit(UserTransactionImp.java:129)
    at com.Servlet.InitialServlet.doPost(InitialServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3440)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:267)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:815)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
    at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
    at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.imp.TxRollbackOnlyStateHandler.commit(TxRollbackOnlyStateHandler.java:84)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.imp.CompositeTransactionImp.doCommit(CompositeTransactionImp.java:319)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.imp.CompositeTerminatorImp.commit(CompositeTerminatorImp.java:79)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     at com.atomikos.icatch.jta.TransactionImp.commit(TransactionImp.java:236)
[3/26/12 12:08:43:896 EDT] 0000001f SystemErr     R     ... 24 more

I have NOT set the transaction to rollback only in the code. I guess its set by default.I want to change it and not set it to rollbackOnly. Also, I am explicitly calling commit() after the transaction. Why is it that i am still getting this exception? How do i ensure that the transaction gets committed?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:56:07+00:00Added an answer on June 1, 2026 at 12:56 am

    Solved the issue!!
    Here is what worked for me:

    1. Open the Web Deployment Descriptor
    2. Select the Servlet which initiates the transaction.
    3. For the Servlet, seletec the Websphere Extensions > Local Transaction.
    4. Set the Resolver as “ContainerAtBoundary” and Unresolved Action: Rollback.
    5. Save and RePublish.

    Voila…I can commit the transaction now!!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write server side for my web application using Node.js. The
I'm trying to find a suitable protocol middleware for my next distributed application. I've
I'm building an iPhone application and trying to create a savePDFFile method by using
I have application building using third party apis, j2me apis,application code distributed in various
I trying to build an application that is using the torrent technology to make
I'm trying to create a multi-view iOS (4.3) application in xcode 4 using the
I am trying to distribute my Enterprise Application using the method described in the
I have a Spring MVC application trying to use a rich domain model, with
I have a C++ library and a C++ application trying to use functions and
in my application i trying to implement the cache (ouput) but it is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.