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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T12:27:31+00:00 2026-05-11T12:27:31+00:00

I have a system that I need to distrubte that works as follows. Servlets

  • 0

I have a system that I need to distrubte that works as follows. Servlets served by tomcat start up and spawn off threads with a large number of shared (distributed) fields. Ergo, I set the thread as a root and attempt to spawn the threads as normal from my servlet constructor. However, logging indicates that the Runnable I’m attempting to share’s constructor never finishes. What could cause this?

In my servlet, I have an instance of the thread which I attempt to share as a root, and logging indicates that everything is fine until the end of the constructor for the class (UpdaterThread) that implements runnable.

I have the following:

Servlet:

print ‘Creating new thread’; updaterThread = new UpdaterThread(args); print ‘Launching thread.’; new Thread( updaterThread ).start();

Now, I never see ‘Launching Thread’ in my tomcat console output, although I can see all print statement up to the end of the UpdaterThread constructor. UpdaterThread maintains a reference to a map (shared by the servlet), a String, an SQL Connection, a Statement, a ReentrantReadWriteLock, a Long, and a transient boolean and Long not to be shared.

In the constructor for UpdaterThread, I pass a reference to the shared map and the value for the String. Without terracotta enabled, I can get beyond this point. What would cause tomcat and terracotta to hang without any kind of error message? The rrwl lock is not used until a later method is called, but I never get that far in program execution. 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. 2026-05-11T12:27:32+00:00Added an answer on May 11, 2026 at 12:27 pm

    Solved. I had to restart the Terracotta server, which then let me see errors indicating that Statement and Connection were nonportable classes that needed to be made transient.

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

Sidebar

Ask A Question

Stats

  • Questions 73k
  • Answers 73k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Make a common form and pass it a delegate pointing… May 11, 2026 at 1:55 pm
  • added an answer I did a deep googling and found this article. This… May 11, 2026 at 1:55 pm
  • added an answer A bit of background might be helpful: Tweak was a… May 11, 2026 at 1:55 pm

Related Questions

I have a core file generated on a remote system that I don't have
I have a system that combines the best and worst of Java and PHP.
I have a system that uses a meta refresh to a logout page, which
I have a system that creates an order and that order can be billed
I have a system-wide manual reset event that I create by doing the following:
Does anyone know, or have a link to an article or a step by
What are some ways that I can query the local machine's specifications (a range
I was thinking of making a small tool. It is not important what the
It seems like there are an inordinate number of really intelligent people here, so

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.