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 7079297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:39:18+00:00 2026-05-28T06:39:18+00:00

I am getting the following Spring Framework error message: Invocation of getLogoForGlobalConext() in class

  • 0

I am getting the following Spring Framework error message:

Invocation of getLogoForGlobalConext() in class $Proxy44 threw exception
org.springframework.transaction.UnexpectedRollbackException:
Transaction rolled back because it has been marked as rollback-only
at template/includes/macros.vm line 1651, column 43

I opened macros.vm and looked up line 1651 and it looks like this:

#set ($globalLogo = $spaceManager.getLogoForGlobalContext());

From my research it looks like $Proxy44 is actually the $spaceManager variable (or an instance of DefaultSpaceManager.java).

This message appears randomly and when the web app tries to download an image/attachment sitting somewhere on the web server / database.

The attachmentmanager is governed by Spring’s Transaction Management and the following transaction attributes are used when an image/attachment is downloaded:

  1. propagation – for all methods in the attachment manager

  2. propagation and read-only – for all methods in attachment manager starting with “get”.

The attributes are defined in Spring Framework – Chapter 9. Transaction management.
What I am thinking is I need to set a timeout on the transactions (like set it to infinity).

  • 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-28T06:39:19+00:00Added an answer on May 28, 2026 at 6:39 am

    It turns out one of the getter methods was performing a write to database. Specifically, it was updating the cache with some information every few minutes. When this update occurred, the UnexpectedRollbackException was thrown. Since this transaction is supposed to be “read only” as defined by the transaction attributes mentioned above, we are not allowed to perform updates during a getter operation.

    I changed the getter method to not perform any updates to cache and to simply use the cache even if it expired, and the error goes away.

    Hope this helps someone else.

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

Sidebar

Related Questions

Am getting following error message on calling WCF service: The formatter threw an exception
I am getting following error message when using Doctrine ORM in Codeigniter. ( !
Now and again im getting the following error Seems that the framework isn't configured
I'm getting the following error when trying to run a project with spring and
I am getting the following exception when trying to call: ManagementServiceV1X0 managementService = (ManagementServiceV1X0)factory.getPort(ManagementServiceV1X0.class,
I'm trying to combine Spring with Hibernate using Annotations and I'm getting the following
I'm getting the following error when trying to write a string to a file
I wrote following code...but i am getting Error like: Error 1 'LoginDLL.Class1.Login(string, string, string)':
I am getting following error when I am trying to get WebResponse using WebResponse
I am getting Following Exception while configuring the Connection Pool in Tomcat This 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.