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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:45:33+00:00 2026-06-12T03:45:33+00:00

I am supporting a web application written by someone else and I am seeing

  • 0

I am supporting a web application written by someone else and I am seeing some funny behavior. The application uses struts, spring mvc, and tomcat as the app server.

The web app is displayed in a frame by some third party and accessed through a link.

When the link is clicked two requests are sent to tomcat on two threads. One thread is supposed to authenticate the user and initialize the data. The other thread uses the initialized data to render the screen.

Problem:
Sometimes the dependent thread kicks off first resulting in an error being displayed on the screen. But because the initialization thread is still processing and does complete after dependent thread the results are returned to the user and the appropriate data is displayed on the screen. The problem is the error displaying while the initialization thread is running.

Question:
Is this behavior something inherent in struts or Spring MVC? I am not seeing anything in the application that is causing this behavior.

I would personally like to just kick off one thread and do the initialization and display in a synchronous call.

Thanks in advance for any help.

  • 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-06-12T03:45:35+00:00Added an answer on June 12, 2026 at 3:45 am

    This is called a race condition. Very common when you start dealing with threads. It has nothing to do with what you are doing, but in the quite random behavior of running code and whichever way the threads decide to fire off, that’s what they do.

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

Sidebar

Related Questions

We have a Java web application that uses Spring and Hibernate and has a
My team member not supporting to use Crystal report in asp.net web application. specially
I am looking for a web based report designer supporting spring/hibernate. I have seen
I'm getting complaints from users that an ASP.NET web application I'm responsible for supporting
I've been trying to do some research on REST and SOAP web service supporting
I am supporting an ASP.Net 3.5 web application and users are experiencing a timeout
I'm developing a web application using ASP.NET MVC (I'm new to the framework and
I have been supporting a web application at work for our Call Center unit
What are some best practices on enabling a web application to support multiple resolutions?
We have written a pretty complex web application which has following requirements: It has

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.