https://bz.apache.org/bugzilla/show_bug.cgi?id=68321

            Bug ID: 68321
           Summary: Same LifecycleException exception is logged many times
           Product: Tomcat 10
           Version: 10.1.15
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: me0x847...@gmail.com
  Target Milestone: ------

Primary issue is about the following method:
- org.apache.catalina.core.ContainerBase#startInternal

, which has the 'multiThrowable' variable of the
'org.apache.tomcat.util.MultiThrowable' type and because of how it is handled,
same exception is logged again and again by entire chain of 'findChildren();'
instances.

It looks that the following line of log:
- log.error(sm.getString("containerBase.threadedStartFailed"), e);

, somehow duplicates the following line of code:
- throw new
LifecycleException(sm.getString("containerBase.threadedStartFailed"),
multiThrowable.getThrowable());

Here is what happens:
- the caught exception of the 'result.get();' line of code, is logged at error
level and then it is thrown to the parent instance. Then parent instance logs
the thrown exception as well (as part of same exact line of code) and throws it
to its parent. That set of logical actions runs again and again for entire
chain of instances. As a result, at logs level, you see same exception logged
many times.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to