java.lang.UnsupportedOperationException

Hibernate JIRA | Geeta Ramasamy | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    We are using Hibernate3.2.6 as the JPA for our application. The application server is WAS8.5.5. We use ejb3 for transactional support. Stateless session beans uses container manager transaction with transaction attribute "REQUIRED". After each transaction, commit happens and I can see the changes in the DB. But after every commit, an exception is generated as follows: java.lang.UnsupportedOperationException at org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter.setRollbackOnly(WebSphereExtendedJTATransactionLookup.java:103) at org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:440) at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:595) at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:637) at org.hibernate.ejb.AbstractEntityManagerImpl.clear(AbstractEntityManagerImpl.java:348) at com.ibm.ws.jpa.management.JPAEMPoolHelper.prepareForPooling(JPAEMPoolHelper.java:166) at com.ibm.ws.jpa.management.OpenJPAEMPoolHelper.prepareForPooling(OpenJPAEMPoolHelper.java:41) at com.ibm.ws.jpa.management.JPAPUnitInfo.prepareForPooling(JPAPUnitInfo.java:2106) at com.ibm.ws.jpa.management.JPAEMPool.putEntityManager(JPAEMPool.java:195) at com.ibm.ws.jpa.management.JPATxEntityManager.closeTxEntityManager(JPATxEntityManager.java:345) at com.ibm.ws.jpa.management.JPATxEmInvocation.afterCompletion(JPATxEmInvocation.java:98) at com.ibm.tx.jta.impl.RegisteredSyncs.coreDistributeAfter(RegisteredSyncs.java:359) at com.ibm.ws.tx.jta.RegisteredSyncs.distributeAfter(RegisteredSyncs.java:320) at com.ibm.tx.jta.embeddable.impl.EmbeddableTransactionImpl.distributeAfter(EmbeddableTransactionImpl.java:208) at com.ibm.tx.jta.impl.TransactionImpl.postCompletion(TransactionImpl.java:2970) at com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:2019) at com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:1958) at com.ibm.tx.jta.impl.TransactionImpl.rollback(TransactionImpl.java:1360) at com.ibm.ws.tx.jta.TransactionImpl.rollback(TransactionImpl.java:3657) at com.ibm.ws.tx.jta.TranManagerImpl.rollback(TranManagerImpl.java:479) at com.ibm.tx.jta.impl.TranManagerSet.rollback(TranManagerSet.java:216) at com.ibm.ejs.csi.TranStrategy.rollback(TranStrategy.java:1179) at com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:204) at com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:567) at com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4486) at com.ual.cgm.model.planesidegatesview.facade.EJSLocal0SLFlifoEventControllerEJB_3365f57b.handleFlifoEventData(EJSLocal0SLFlifoEventControllerEJB_3365f57b.java) at com.ual.cgm.model.externalinterface.applicationservice.ExternalInterfaceManager.handleFlifoEvent(ExternalInterfaceManager.java:6444) at com.ual.cgm.mdb.FLIFOEventHandlerMDB.onMessage(FLIFOEventHandlerMDB.java:146) at com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:309) at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63) at com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:266) --- Flow is as follows: 1. We have an MDB which does not participate in the transaction and MDB calls stateless session beans 2. Stateless session beans are container managed ones Post commit, setRollbackOnly is called which throws the above exception

    Hibernate JIRA | 5 months ago | Geeta Ramasamy
    java.lang.UnsupportedOperationException
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Listener ports doesn't go down

    Google Groups | 7 years ago | cremersstijn
    java.lang.UnsupportedOperationException

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter.setRollbackOnly()
    2. Hibernate
      WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter.setRollbackOnly
      1. org.hibernate.transaction.WebSphereExtendedJTATransactionLookup$TransactionManagerAdapter.setRollbackOnly(WebSphereExtendedJTATransactionLookup.java:103)
      1 frame
    3. Hibernate EJB
      AbstractEntityManagerImpl.clear
      1. org.hibernate.ejb.AbstractEntityManagerImpl.markAsRollback(AbstractEntityManagerImpl.java:440)
      2. org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:595)
      3. org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:637)
      4. org.hibernate.ejb.AbstractEntityManagerImpl.clear(AbstractEntityManagerImpl.java:348)
      4 frames
    4. com.ibm.ws
      JPATxEmInvocation.afterCompletion
      1. com.ibm.ws.jpa.management.JPAEMPoolHelper.prepareForPooling(JPAEMPoolHelper.java:166)
      2. com.ibm.ws.jpa.management.OpenJPAEMPoolHelper.prepareForPooling(OpenJPAEMPoolHelper.java:41)
      3. com.ibm.ws.jpa.management.JPAPUnitInfo.prepareForPooling(JPAPUnitInfo.java:2106)
      4. com.ibm.ws.jpa.management.JPAEMPool.putEntityManager(JPAEMPool.java:195)
      5. com.ibm.ws.jpa.management.JPATxEntityManager.closeTxEntityManager(JPATxEntityManager.java:345)
      6. com.ibm.ws.jpa.management.JPATxEmInvocation.afterCompletion(JPATxEmInvocation.java:98)
      6 frames
    5. com.ibm.tx
      RegisteredSyncs.coreDistributeAfter
      1. com.ibm.tx.jta.impl.RegisteredSyncs.coreDistributeAfter(RegisteredSyncs.java:359)
      1 frame
    6. com.ibm.ws
      RegisteredSyncs.distributeAfter
      1. com.ibm.ws.tx.jta.RegisteredSyncs.distributeAfter(RegisteredSyncs.java:320)
      1 frame
    7. com.ibm.tx
      TransactionImpl.rollback
      1. com.ibm.tx.jta.embeddable.impl.EmbeddableTransactionImpl.distributeAfter(EmbeddableTransactionImpl.java:208)
      2. com.ibm.tx.jta.impl.TransactionImpl.postCompletion(TransactionImpl.java:2970)
      3. com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:2019)
      4. com.ibm.tx.jta.impl.TransactionImpl.internalRollback(TransactionImpl.java:1958)
      5. com.ibm.tx.jta.impl.TransactionImpl.rollback(TransactionImpl.java:1360)
      5 frames
    8. com.ibm.ws
      TranManagerImpl.rollback
      1. com.ibm.ws.tx.jta.TransactionImpl.rollback(TransactionImpl.java:3657)
      2. com.ibm.ws.tx.jta.TranManagerImpl.rollback(TranManagerImpl.java:479)
      2 frames
    9. com.ibm.tx
      TranManagerSet.rollback
      1. com.ibm.tx.jta.impl.TranManagerSet.rollback(TranManagerSet.java:216)
      1 frame
    10. com.ibm.ejs
      EJSContainer.postInvoke
      1. com.ibm.ejs.csi.TranStrategy.rollback(TranStrategy.java:1179)
      2. com.ibm.ejs.csi.TranStrategy.postInvoke(TranStrategy.java:204)
      3. com.ibm.ejs.csi.TransactionControlImpl.postInvoke(TransactionControlImpl.java:567)
      4. com.ibm.ejs.container.EJSContainer.postInvoke(EJSContainer.java:4486)
      4 frames
    11. com.ual.cgm
      FLIFOEventHandlerMDB.onMessage
      1. com.ual.cgm.model.planesidegatesview.facade.EJSLocal0SLFlifoEventControllerEJB_3365f57b.handleFlifoEventData(EJSLocal0SLFlifoEventControllerEJB_3365f57b.java)
      2. com.ual.cgm.model.externalinterface.applicationservice.ExternalInterfaceManager.handleFlifoEvent(ExternalInterfaceManager.java:6444)
      3. com.ual.cgm.mdb.FLIFOEventHandlerMDB.onMessage(FLIFOEventHandlerMDB.java:146)
      3 frames
    12. com.ibm.ejs
      MDBWrapper$PriviledgedOnMessage.run
      1. com.ibm.ejs.jms.listener.MDBWrapper$PriviledgedOnMessage.run(MDBWrapper.java:309)
      1 frame
    13. WebSphere
      AccessController.doPrivileged
      1. com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:63)
      1 frame
    14. com.ibm.ejs
      MDBWrapper.callOnMessage
      1. com.ibm.ejs.jms.listener.MDBWrapper.callOnMessage(MDBWrapper.java:266)
      1 frame