Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HikariPool does not implement DynamicMBean #66

Closed
dharrigan opened this issue Apr 27, 2014 · 2 comments
Closed

HikariPool does not implement DynamicMBean #66

dharrigan opened this issue Apr 27, 2014 · 2 comments
Labels

Comments

@dharrigan
Copy link
Contributor

Hi,

Java 1.8u5
HikariCP 1.3.7
Spring 4.0.3.RELEASE

Upgraded from 1.3.6 to 1.3.7 of HikariCP. I now get this exception on startup:

16:12:01.258] [               ] [DEVELOPMENT] [WARN ] [com.zaxxer.hikari.pool.HikariMBeanElf   ] [69  ] - Unable to register management beans.
javax.management.NotCompliantMBeanException: MBean class com.zaxxer.hikari.pool.HikariPool does not implement DynamicMBean, and neither follows the Standard MBean conventions (javax.management.NotCompliantMBeanException: Class com.zaxxer.hikari.pool.HikariPool is not a JMX compliant Standard MBean) nor the MXBean conventions (javax.management.NotCompliantMBeanException: com.zaxxer.hikari.pool.HikariPool: Class com.zaxxer.hikari.pool.HikariPool is not a JMX compliant MXBean)
    at com.sun.jmx.mbeanserver.Introspector.checkCompliance(Introspector.java:176) ~[na:1.8.0_05]
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:317) ~[na:1.8.0_05]
    at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522) ~[na:1.8.0_05]
    at com.zaxxer.hikari.pool.HikariMBeanElf.registerMBeans(HikariMBeanElf.java:60) ~[HikariCP-1.3.7.jar:na]
    at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:128) [HikariCP-1.3.7.jar:na]
    at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:91) [HikariCP-1.3.7.jar:na]
    at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:69) [HikariCP-1.3.7.jar:na]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_05]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_05]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_05]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:408) [na:1.8.0_05]
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
    at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:125) [spring-beans-4.0.3.RELEASE.jar:4.0.3.RELEASE]
@brettwooldridge
Copy link
Owner

Sorry, 1.3.7 caused a regression with MBean registration. You can set registerMBeans=false as a temporary workaround. I've published 1.3.8 to the maven central repository, it should be available within about 3-4 hours.

@dharrigan
Copy link
Contributor Author

w00t! :-) Thanks for the quick fix :-)

-=david=-

On 28 April 2014 03:39, Brett Wooldridge notifications@github.com wrote:

Sorry, 1.3.7 caused a regression with MBean registration. You can set
registerMBeans=false as a temporary workaround. I've published 1.3.8 to the
maven central repository, it should be available within about 3-4 hours.


Reply to this email directly or view it on GitHubhttps://github.com//issues/66#issuecomment-41518812
.

I prefer encrypted and signed messages. KeyID: B20A22F9
Fingerprint: 110A F423 3647 54E2 880F ADAD 1C52 85BF B20A 22F9

"It is not usually until you've built and used a version of the program
that you understand the issues well enough to get the design right." - Rob
Pike, Brian Kernighan.

No trees were harmed in the sending of this message, however, a number of
electrons were inconvenienced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants