tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 64493] New: Regression: JMX beans for HTTPS connector changed protocol with 9.0.35
Date Tue, 02 Jun 2020 15:03:31 GMT

            Bug ID: 64493
           Summary: Regression: JMX beans for HTTPS connector changed
                    protocol with 9.0.35
           Product: Tomcat 9
           Version: 9.0.35
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Connectors
  Target Milestone: -----

Using the following pseudo code:

      MBeanServer server = MBeanServerFactory.createMBeanServer();
      Set<ObjectName> protocolHandlers = server.queryNames(new
ObjectName("Catalina:type=Connector,*"), null);

      for (ObjectName x: protocolHandlers)
        String protocol = (String) server.getAttribute(x, "protocol");
        System.out.println(x + " - " + protocol);
    catch (Exception e)



Then under 9.0.30 we get:

Catalina:type=Connector,port=10180 - HTTP/1.1
Catalina:type=Connector,port=10443 - HTTP/1.1

Under 0.0.35 we get:

[15:02] Anton Goselink

Catalina:type=Connector,port=10180 - HTTP/1.1
Catalina:type=Connector,port=10443 - org.apache.coyote.http11.Http11NioProtocol

I believe that this is related to
, since in the old situation, whenever the connector was Http11NioProtocol, it
would return "HTTP/1.1". in the new situation, when a ProtocolHandler is passed
in, we use the class name instead of "HTTP/1.1" for configuredProtocol. This
should probably get the name of the protocol being handled from the

In any case, this causes a breakage in our environment, as we rely on the
protocol being set to "HTTP*" for the JMX bean.

You are receiving this mail because:
You are the assignee for the bug.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message