| 
		 Mantis - Resin 
	 | 
|||||
| Viewing Issue Advanced Details | |||||
| 
		 | 
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: | 
| 6297 | minor | always | 11-20-19 16:38 | 11-25-19 13:57 | |
| 
		 | 
|||||
| Reporter: | nam | Platform: | |||
| Assigned To: | ferg | OS: | |||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.63 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.65 | ||
| 
		 | 
|||||
| Summary: | 0006297: IntrospectionMBean should not wrap AttributeNotFoundException with a RuntimeException | ||||
| Description: | 
		IntrospectionMBean is catching AttributeNotFoundException and throwing a RuntimeException.  This causes jolokia to throw an exception when it tries to detect the application server. expected: IntrospectionMBean to throw IntrospectionMBean as-is Error while using detector TomcatDetector: java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'serverInfo' is an unknown attribute in 'com.caucho.management.server.ServerMXBean' java.lang.RuntimeException: javax.management.AttributeNotFoundException: 'serverInfo' is an unknown attribute in 'com.caucho.management.server.ServerMXBean' at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:138) at com.caucho.jmx.MBeanWrapper.getAttribute(MBeanWrapper.java:146) at com.caucho.jmx.AbstractMBeanServer.getAttribute(AbstractMBeanServer.java:602) at org.jolokia.detector.AbstractServerDetector$1.execute(AbstractServerDetector.java:109) at org.jolokia.detector.AbstractServerDetector$1.execute(AbstractServerDetector.java:106) at org.jolokia.backend.executor.AbstractMBeanServerExecutor.call(AbstractMBeanServerExecutor.java:90) at org.jolokia.detector.AbstractServerDetector.getAttributeValue(AbstractServerDetector.java:95) at org.jolokia.detector.AbstractServerDetector.getSingleStringAttribute(AbstractServerDetector.java:130) at org.jolokia.detector.TomcatDetector.detect(TomcatDetector.java:38) at org.jolokia.backend.MBeanServerHandler.detectServers(MBeanServerHandler.java:291) at org.jolokia.backend.MBeanServerHandler.initServerHandle(MBeanServerHandler.java:138) at org.jolokia.backend.MBeanServerHandler.<init>(MBeanServerHandler.java:76) at org.jolokia.backend.LocalRequestDispatcher.<init>(LocalRequestDispatcher.java:72) at org.jolokia.backend.BackendManager.init(BackendManager.java:331) at org.jolokia.backend.BackendManager.access$100(BackendManager.java:51) at org.jolokia.backend.BackendManager$Initializer.init(BackendManager.java:308) at org.jolokia.backend.BackendManager.lazyInitIfNeeded(BackendManager.java:317) at org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:148) at org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197) at org.jolokia.http.HttpRequestHandler.handleGetRequest(HttpRequestHandler.java:86) at org.jolokia.jvmagent.handler.JolokiaHttpHandler.executeGetRequest(JolokiaHttpHandler.java:276) at org.jolokia.jvmagent.handler.JolokiaHttpHandler.doHandle(JolokiaHttpHandler.java:233) at org.jolokia.jvmagent.handler.JolokiaHttpHandler.handle(JolokiaHttpHandler.java:178) at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77) at jdk.httpserver/sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:82) at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:80) at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:692) at jdk.httpserver/com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:77) at jdk.httpserver/sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:664) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: javax.management.AttributeNotFoundException: 'serverInfo' is an unknown attribute in 'com.caucho.management.server.ServerMXBean' at com.caucho.jmx.IntrospectionMBean.getAttribute(IntrospectionMBean.java:127) ... 31 more  | 
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| There are no notes attached to this issue. |