Project: Tomcat
Bug 48252 StackOverflowError in NioEndpoint.setProperty when setting jkHome
Reported: 2009-11-20 08:25:45 | Status: resolved fixed

- Noticed only when running in debugger with breakpoint set for StackOverflowError. - The error is translated by Java's reflection mechanism to an InvocationTargetException, which is caught and silently ignored by IntrospectionUtils. - Connector.initialize() sets jkHome property on Http11NioProtocol. - Http11NioProtocol sets jkHome property on NioEndpoint. - NioEndpoint recursively invokes its own setProperty method via IntrospectionUtils.setProperty, causing the stack overflow. - Using embedded Tomcat. - Using Nio connector. Does not happen for standard connector. - Happens in 6.0.18 and 6.0.20; haven't tested with earlier versions.

Files changed in fix:
java/org/apache/tomcat/util/IntrospectionUtils.java java/org/apache/tomcat/util/net/AbstractEndpoint.java