Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6625719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:48:26+00:00 2026-05-25T21:48:26+00:00

I am chasing a problem where I see SQL statements run in my database

  • 0

I am chasing a problem where I see SQL statements run in my database log in a transaction, then see that transaction rolledback.

This happens on both Oracle and Postgres, but only on some installations. The application itself is a pretty standard J2EE application using JPA and Eclipselink.

I am not seeing any exceptions, nor is the code explicitly giving up and rolling back.

The best I have been able to do so far is find this log statement:

    [#|2011-09-26T11:30:56.052-0700|FINER|sun-appserver2.1|org.eclipse.persistence.session.file:/opt/glassfish/domains/domain1/applications/j2ee-apps/myapp/myapp-ejb_jar/_myapp-ejbPU.transaction|_ThreadID=18;_ThreadName=httpSSLWorkerThread-8888-2;ClassName=null;MethodName=null;_RequestID=e78196
09-bf2e-4026-8cbb-87fdd047c5eb;|begin unit of work flush|#]

It occurs at the exact same time as the ROLLBACK in the postgres log:

appuser @ dbname: 102012/7/67486 2011-09-26 18:30:56.052 UTC - LOG:  execute S_3: ROLLBACK

Note that the DB is on UTC while the application is on Pacific.

The relevant code is being called using a webservice with @TransactionAttribute(TransactionAttributeType.SUPPORTS)

I am working with both logging levels and the debugger to see if I can find an exception being thrown and swallowed that might cause this.

How can I find out what code is causing the rollback?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:48:27+00:00Added an answer on May 25, 2026 at 9:48 pm

    You can enable logging on finest with EclipseLink to debug the issue.
    Any exception that occurred within EclipseLink will be logged.

    See,
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging

    Also ensure you are not throwing an error to cause your SessionBean to rollback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using solr's faceting and i've run into a problem that i was hoping
How do I know if I am overanalysing? I've been chasing a problem the
I'm chasing a production bug that's intermittent enough to be a real bastich to
This is more of an answer I'd like to share for the problem I
I've run into a problem when using SubSonic 3(.0.0.3) ActiveRecord with MySQL. Since MySQL
So I have an existing database that I'm trying to manipulate through ActiveRecord. All
I have been chasing my tail on this! And it should be so simple!!
I have a problem that has manifested itself since I tried to add themes
MYSQL Database: I have a table of data that I need to put into
I have created several small applications that use my own DLL. The problem is,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.