Skip to content

logs uncaught errors in AbstractServer#6161

Open
keith-turner wants to merge 1 commit intoapache:2.1from
keith-turner:log-error
Open

logs uncaught errors in AbstractServer#6161
keith-turner wants to merge 1 commit intoapache:2.1from
keith-turner:log-error

Conversation

@keith-turner
Copy link
Contributor

While working #6139 caused an exception in the servers main threads that also initiated a halt. The halt seemed to preempt java from printing exceptions from the main thread, so the exception was never seen. This made tracking the bug down more difficult.

While working apache#6139 caused an exception in the servers main threads that
also initiated a halt.  The halt seemed to preempt java from printing
exceptions from the main thread, so the exception was never seen.  This
made tracking the bug down more difficult.
@keith-turner keith-turner added this to the 2.1.5 milestone Feb 28, 2026
@keith-turner keith-turner changed the title logs uncaught errors in AbstractServers logs uncaught errors in AbstractServer Feb 28, 2026
log.info(getClass().getSimpleName() + " process shut down.");
Throwable thrown = err.get();
if (thrown != null) {
log.error("Uncaught exception ", thrown);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May also want to do the following:

    System.err.println("Uncaught execption in AbstractServer.runServer");
    thrown.printStackTrace();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants