org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly

  1. 0

    SimpleMessageListenerContainer is continuously consuming after TransactionSystemException

    Stack Overflow | 2 months ago | Pallavi Nalluri
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  2. 0

    Exception with transacted set on activemq endpoint

    Stack Overflow | 1 year ago | zachariahyoung
    org.apache.camel.RuntimeCamelException: org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  3. 0

    Exception with transacted set on activemq endpoint

    qnundrum.com | 8 months ago
    org.apache.camel.RuntimeCamelException: org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring Batch - Transaction markes as rollback only

    Stack Overflow | 3 months ago | LuisFernandez
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly
  6. 0

    Constraint error

    GitHub | 2 years ago | Cabbina
    org.springframework.transaction.TransactionSystemException: Could not commit JPA transaction; nested exception is javax.persistence.RollbackException: Transaction marked as rollbackOnly

  1. Malcshour 6 times, last 6 months ago
  2. thiago.santos 10 times, last 7 months ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.persistence.RollbackException

    Transaction marked as rollbackOnly

    at org.hibernate.jpa.internal.TransactionImpl.commit()
  2. org.hibernate.jpa
    TransactionImpl.commit
    1. org.hibernate.jpa.internal.TransactionImpl.commit(TransactionImpl.java:74)[hibernate-entitymanager-4.3.11.Final.jar:4.3.11.Final]
    1 frame
  3. Spring ORM
    JpaTransactionManager.doCommit
    1. org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:517)[spring-orm-4.2.4.RELEASE.jar:4.2.4.RELEASE]
    1 frame
  4. Spring Tx
    TransactionTemplate.execute
    1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:757)[spring-tx-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:726)[spring-tx-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    3. org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:150)[spring-tx-4.1.9.RELEASE.jar:4.1.9.RELEASE]
    3 frames
  5. Spring RabbitMQ Support
    SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run
    1. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:1062)[spring-rabbit-1.5.3.RELEASE.jar:na]
    2. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$1100(SimpleMessageListenerContainer.java:93)[spring-rabbit-1.5.3.RELEASE.jar:na]
    3. org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1203)[spring-rabbit-1.5.3.RELEASE.jar:na]
    3 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.7.0_55]
    1 frame