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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:29:58+00:00 2026-05-30T03:29:58+00:00

This issue has come up in a distributed-multithreaded application I’m developing, where threads can

  • 0

This issue has come up in a distributed-multithreaded application I’m developing, where threads can appear to randomly return during distributed task execution. Assume that every thread in this application uses the same basic code as the block below:

public class ExecutionThread extends Thread{
    @Override
    public void run(){
        while(true){
            try{
                //task submitter app dumps all Tasks in to a queue.  We retrieve
                //those tasks here one-by-one and run them:
                Task t = priorityBlockingQueue.take();

                //execute is abstract, so it could potentially do anything here:
                t.execute(); 
            } catch(Throwable e){
                //task submitter app will be able to access the Throwable later:
                t.setUncaughtThrowable(e); 
            }
        }
    }
}

I should note that the Task class is abstract and very simplistic – it only has the execute() method which is abstract, so I didn’t feel it necessary to post the code for it here.

I know that some crazy things can happen in the JVM, but this code to me seems fairly bulletproof, in that the thread should never return unless the JVM it’s running in dies. In actuality, we’re seeing threads still return without their respective JVMs dying and can’t pin down the cause. To make matters worse, we can’t see the console for these threads because they are being spawned as child processes on remote machines. We’ve tried logging the throwable, but nothing gets printed to file. Any ideas on what might still cause this thread to return?

  • 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-30T03:30:00+00:00Added an answer on May 30, 2026 at 3:30 am

    There must be an Exception in the catch clause.

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

Sidebar

Related Questions

Has anyone come across this issue? Seems MS have broken it with their own
Has anyone come across this issue before?
Okay people, I'm sure someone has had this issue and can help me out.
This issue has come up three times in our environment. After installing the ClickOnce
I wonder if anyone has come across this issue before. I have a string
I wonder has anyone come across with this issue where the MSTest Unit Test
An issue that has come to light is to open up our application (we
I have searched google but it seems no one has come across this issue.
This issue has me baffled, it's affecting a single user (to my knowledge) and
I know this issue has been touched on here but I have not found

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.