Error while commiting transaction

77 views
Skip to first unread message

Vincent Fiot

unread,
Aug 2, 2023, 3:11:35 PM8/2/23
to WildFly
Hi everyone,

I'm using wildfly-25.0.1.Final.

In some external applications, we are using RemoteUserTransaction.

Sometimes, we have an exception:

Capture.PNG

This is exception trace in the application, and the exception in server.log of WildFly can be find in the attached file "server.log".

Is someone has an idea of the issue?

Best regards


server.log

Manuel Finelli

unread,
Aug 2, 2023, 4:01:28 PM8/2/23
to Vincent Fiot, WildFly
Hi Vincent, I believe I could assist you better if I had more context. Could you please provide a reproducer? This could be a git repository or a zip file containing a WildFly configuration that reproduces your environment, along with all the necessary commands to reproduce the exception you reported. Thank you!

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/2b8c0c42-caf8-44a0-bd08-2e18f5edcd86n%40googlegroups.com.

Vincent Fiot

unread,
Aug 2, 2023, 6:05:52 PM8/2/23
to WildFly
Hi Manuel,

We are using a private application on WildFly, so I cannot provide any reproducer.

I'll try to explain the most the architecture.

On WildFly, we have our own application. This app is using SQL Server as database.

To import/export data into this application, we have external applications, using private API.

It's within those external applications that we have sometimes transactions exceptions.

Here is an example of code, using transactions:

Capture.PNG

Here is the code for "getTransaction()" method:

Capture.PNG
Sometimes, for any reason, an exception occured when the method "commit(transaction)" is called (please see previous attachment and server.log files).

Here is the code for commit() method:

Capture.PNG
Let me know if you see something, or need more information.

Best Regards

Michael Musgrove

unread,
Aug 3, 2023, 3:32:49 AM8/3/23
to Vincent Fiot, WildFly
From my cursory glance at the stack trace, it shows that the remote end has rolled it back so when you try to commit it at your end you get the error since it cannot be committed twice.
I would check your timeouts and also look at the logs in the "remote peer" to get its view of why it rolled it back. Remark, the code that  issues the rollback will be WildFly Transaction Client.



--
Michael Musgrove

JBoss, by Red Hat
Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale Road, Co. Cork.
Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, No.304873
Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O'Neill, Keith Phelan, Matt Parson (USA)


Vincent Fiot

unread,
Aug 3, 2023, 4:02:38 AM8/3/23
to WildFly
Hi,

I set up 900 as timeout.

Where can I find the "remote peer" logs ?

Vincent Fiot

unread,
Sep 6, 2023, 10:52:50 AM9/6/23
to WildFly
Hi everyone,

Just before the server transaction error, here is the stack I got:

2023-09-06 10:02:24,970 WARN  [org.infinispan.transaction.impl.TransactionTable] (blocking-thread--p8-t7) ISPN000100: Stopping, but there are 1 local transactions and 0 remote transactions that did not finish in time

Any idea ?

Reply all
Reply to author
Forward
0 new messages