Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

578
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda