Bug 61215

Summary: NoSuchMethodException in JMX Proxy when accessing to RemoteAddrValve MBeans
Product: Tomcat 9 Reporter: Alexis Hassler <alexis.hassler>
Component: ManagerAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: unspecified   
Target Milestone: -----   
Hardware: PC   
OS: Linux   

Description Alexis Hassler 2017-06-24 22:18:31 UTC
The RemoteAddrValve class has some new boolean attributes (addConnectorPort, invalidAuthenticationWhenDeny, addConnectorPort, invalidAuthenticationWhenDeny) but the accessors are not mbean-friendly. 'is' should be used instead of 'get'.
Comment 1 Alexis Hassler 2017-06-24 22:30:22 UTC
PR sent (#66) : 
- replace the getInvalidAuthenticationWhenDeny with isInvalidAuthenticationWhenDeny in RequestFilterValve 
- replace getAddConnectorPort with isAddConnectorPort in RemoteAddrValve
Comment 2 Mark Thomas 2017-06-26 13:06:28 UTC
This has been fixed in:
- trunk for 9.0.0.M23 onwards
- 8.5.x for 8.5.17 onwards
- 8.0.x for 8.0.45 onwards
- 7.0.x for 7.0.79 onwards