Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

579
Vistas
Spring MVC = The transaction is no longer active

I have a project based in Spring Web model-view-controller (MVC) framework. The version of the Spring Web model-view-controller (MVC) framework is 3.2.8 deployed on a WebLogic Server Version: 12.1.2.0.0

I have this error in 1 query

Caused By: java.lang.RuntimeException: java.sql.SQLException: 
The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 31 seconds
BEA1-000D9470C1367F28EDB9]'. 
No further JDBC access is allowed within this transaction., criteria [ com.tdk.books.domain.ProductSearchCriteria@c5f15d5c ],  sql [  select PRODUCT_ID from  V_BOOKS  where category_id = ?  ]

even I put a timeout of 10000 in the service method

@Transactional(timeout=10000, propagation = Propagation.REQUIRES_NEW)
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Root Cause from Oracle Community:

Usuallly this happens when a transaction is finished, but this fact is ignored and an app tries to continue processing and to issue JDBC statements that happen outside of the TX. The source of this problem could be a Connection object that is passed around through a sequence of methods that use the connection. One of such methods commits the TX thus invalidating the connection.

Resource Link: https://community.oracle.com/thread/734370

Some suggestions are found to solve the issue.

First Suggestion:

Please try changing your weblogic datasource settings from Non - XA to XA. You should get rid of this exception.

Resource Link: The transaction is no longer active - status: 'Committed'

Second Suggestion:

Uncheck the Supports Global Transactions restart the server.

Resource Link: In PRPC ERROR: The transaction is no longer active - status: 'Committed'

Third Suggestion:

The real solution of this problem is asynchronous processing. But it might be possible that it's not suitable in your case.

First one If you are making any jdbc call to Oracle, then you can set the query time out whn you execute the query on database. And after query timeout, Oracle will give you an exception that you can handle it. So basically in this case you are not cancelling your EJB request actually. But it might solve your problem.

Resource Link: https://coderanch.com/t/68079/transaction-rollback-commit

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda