Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Transaction Marked for Rollback -- No exceptions logged ?? possible bug?
Transaction Marked for Rollback -- No exceptions logged ?? possible bug? [message #721824] Sat, 03 September 2011 01:37 Go to next message
nash  is currently offline nash Friend
Messages: 2
Registered: September 2011
Junior Member
Having the following issue.

Creating/Updating entities via functional tests, initially everything looks okay, however transaction is getting marked for rollback, and is eventually rolled back.

There is ZERO errors being logged at all, and no container level complaints. I'm able to directly insert records into the DB using DML.

I have <property name="eclipselink.logging.exceptions" value="true" /> specified in my persistence.xml, but still no error mgs.

The only thing I can consistently see is that the transaction marked for rollback after the sequence ids have been assigned.

Here is the logging @ finest (I've changed entity and attribute names in these logs to protect the innocent):


[EL Finer]: 2011.09.02 18:14:06.136--ServerSession(406678892)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client acquired
[EL Finer]: 2011.09.02 18:14:06.136--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX binding to tx mgr, status=STATUS_ACTIVE
[EL Finest]: 2011.09.02 18:14:06.136--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query ReadAllQuery(com.xxx.yy.z.Entity)
[EL Finest]: 2011.09.02 18:14:06.136--ServerSession(406678892)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
[EL Fine]: 2011.09.02 18:14:06.137--ServerSession(406678892)--Connection(1568847815)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT ENTITY_ID, NAME, CREATE_TS, CREATE_USER FROM ENTITY WHERE (NAME = ?)
bind => [apple]
com.xxx.yy.z.Entity@5d30b4ad
[EL Finest]: 2011.09.02 18:14:06.147--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--PERSIST operation called on: com.xxx.yy.z.Entity@5d30b4ad.
[EL Finest]: 2011.09.02 18:14:06.147--ClientSession(682186698)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query ValueReadQuery()
[EL Finest]: 2011.09.02 18:14:06.147--ServerSession(406678892)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
[EL Fine]: 2011.09.02 18:14:06.148--ServerSession(406678892)--Connection(96641953)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--SELECT ENTITY_SEQ.NEXTVAL FROM DUAL
[EL Finest]: 2011.09.02 18:14:06.151--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--assign sequence to the object (5,108 -> com.xxx.yy.z.Entity@5d30b4ad)
[EL Finer]: 2011.09.02 18:14:06.151--ClientSession(682186698)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX beginTransaction, status=MARKED_ROLLBACK
[EL Finest]: 2011.09.02 18:14:06.152--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--Execute query InsertObjectQuery(com.xxx.yy.z.Entity@5d30b4ad)
[EL Finest]: 2011.09.02 18:14:06.152--ClientSession(682186698)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--reconnecting to external connection pool
[EL Fine]: 2011.09.02 18:14:06.152--ClientSession(682186698)--Connection(73276991)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--INSERT INTO ENTITY (ENTITY_ID, NAME, CREATE_TS, CREATE_USER) VALUES (?, ?, ?, ?)
bind => [5108, apple, FunctionalTest, FunctionalTest]
[EL Finer]: 2011.09.02 18:14:06.157--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--initialize identitymaps
[EL Finer]: 2011.09.02 18:14:06.165--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--TX afterCompletion callback, status=ROLLEDBACK
[EL Finer]: 2011.09.02 18:14:06.165--UnitOfWork(655338057)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--release unit of work
[EL Finer]: 2011.09.02 18:14:06.165--ClientSession(682186698)--Thread(Thread[[ACTIVE] ExecuteThread: '20' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads])--client released

Re: Transaction Marked for Rollback -- No exceptions logged ?? possible bug? [message #722786 is a reply to message #721824] Tue, 06 September 2011 17:36 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

From the log it looks like the JTA transaction has already been marked for rollback before EclipseLink is being called. Is something else in your app causing the rollback? Do you throw an error from a SessionBean method?

Do any errors occur before this?


James : Wiki : Book : Blog : Twitter
Previous Topic:(no subject)
Next Topic:Cursor result with JPA query and dynamic fetch group
Goto Forum:
  


Current Time: Thu Apr 25 11:53:10 GMT 2024

Powered by FUDForum. Page generated in 0.03635 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top