You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by sc...@apache.org on 2025/11/17 14:27:50 UTC

(tomcat) branch 9.0.x updated: Fix error building status JSON

This is an automated email from the ASF dual-hosted git repository.

schultz pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new af6545d002 Fix error building status JSON
af6545d002 is described below

commit af6545d0028d11e41948cba9b5876831ddf01b42
Author: Christopher Schultz <ch...@christopherschultz.net>
AuthorDate: Mon Nov 17 09:26:01 2025 -0500

    Fix error building status JSON
    
    FailedContext was missing some attributes required to report application status
---
 java/org/apache/catalina/startup/FailedContext.java | 11 +++++++++++
 webapps/docs/changelog.xml                          |  7 +++++++
 2 files changed, 18 insertions(+)

diff --git a/java/org/apache/catalina/startup/FailedContext.java b/java/org/apache/catalina/startup/FailedContext.java
index 9fbf9fcf23..6c1f8507ff 100644
--- a/java/org/apache/catalina/startup/FailedContext.java
+++ b/java/org/apache/catalina/startup/FailedContext.java
@@ -1404,4 +1404,15 @@ public class FailedContext extends LifecycleMBeanBase implements Context {
     public void setUseBloomFilterForArchives(boolean useBloomFilterForArchives) {
     }
 
+    public long getStartTime() {
+        return -1;
+    }
+
+    public long getStartupTime() {
+        return -1;
+    }
+
+    public long getTldScanTime() {
+        return -1;
+    }
 }
\ No newline at end of file
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 8eef0e842e..1ca168fe3e 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -133,6 +133,13 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Web Applications">
+    <changelog>
+      <fix>
+        Fix error while building status JSON for a failed context. (schultz)
+      </fix>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 9.0.112 (remm)" rtext="release in progress">
   <subsection name="Catalina">


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org