javax.persistence.RollbackException: Transaction marked as rollbackOnly

Stack Overflow | dwix | 4 months ago
  1. 0

    Method doesn't return the view if annotated with @Transactional

    Stack Overflow | 4 months ago | dwix
    javax.persistence.RollbackException: Transaction marked as rollbackOnly
  2. 0

    Spring transaction and rollback on multiple tables

    Stack Overflow | 12 months ago | Mehdi
    javax.persistence.RollbackException: Transaction marked as rollbackOnly
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hibernate NamedQuery and Pagination

    Stack Overflow | 2 years ago | DruidKuma
    javax.persistence.RollbackException: Transaction marked as rollbackOnly
  5. 0

    datatables search capability

    GitHub | 1 year ago | tomcgn
    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.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  4. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:761)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3. org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:485)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    4. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:291)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    5. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    5 frames
  5. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)[spring-aop-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  6. com.controllers
    HelloWorldController$$EnhancerBySpringCGLIB$$353623dc.processExcel
    1. com.controllers.HelloWorldController$$EnhancerBySpringCGLIB$$353623dc.processExcel(<generated>)[classes/:na]
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_102]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_102]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)[na:1.8.0_102]
    4. java.lang.reflect.Method.invoke(Unknown Source)[na:1.8.0_102]
    4 frames
  8. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:136)[spring-web-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2 frames
  9. Spring MVC
    FrameworkServlet.doPost
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:832)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:743)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:961)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:895)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:967)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    8. org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:869)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    8 frames
  10. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:648)[tomcat-embed-core-8.0.36.jar:8.0.36]
    1 frame
  11. Spring MVC
    FrameworkServlet.service
    1. org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:843)[spring-webmvc-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    1 frame
  12. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:729)[tomcat-embed-core-8.0.36.jar:8.0.36]
    1 frame