JMX error when running Jedis on JBoss 5.2.
See original GitHub issueThe following exception is thrown when Jedis 2.6.2 on JBoss 5.2:
javax.management.NotCompliantMBeanException: Cannot obtain mxbean interface for: class org.apache.commons.pool2.impl.GenericObjectPool
The full stack trace is:
javax.management.NotCompliantMBeanException: Cannot obtain mxbean interface for: class org.apache.commons.pool2.impl.GenericObjectPool
at org.jboss.mx.mxbean.MXBeanMetaData.<init>(MXBeanMetaData.java:174)
at org.jboss.mx.mxbean.MXBeanDelegate.buildMBeanInfo(MXBeanDelegate.java:456)
at org.jboss.mx.mxbean.MXBeanDelegate.getMBeanInfo(MXBeanDelegate.java:334)
at org.jboss.mx.server.RawDynamicInvoker.getMBeanInfo(RawDynamicInvoker.java:187)
at org.jboss.mx.server.RawDynamicInvoker.preRegister(RawDynamicInvoker.java:205)
at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:700)
at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:227)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
at org.apache.commons.pool2.impl.BaseGenericObjectPool.jmxRegister(BaseGenericObjectPool.java:947)
at org.apache.commons.pool2.impl.BaseGenericObjectPool.<init>(BaseGenericObjectPool.java:132)
at org.apache.commons.pool2.impl.GenericObjectPool.<init>(GenericObjectPool.java:107)
at redis.clients.util.Pool.initPool(Pool.java:43)
at redis.clients.util.Pool.<init>(Pool.java:31)
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:73)
at redis.clients.jedis.JedisPool.<init>(JedisPool.java:15)
I’ve tried to upgrade commons-pool2 to the latest version but had no success.
Issue Analytics
- State:
- Created 8 years ago
- Comments:29
Top Results From Across the Web
wildfly failed to start after adding jmxremote.port jvm param
I'm using Wildfly 10.0.0.Final on Solaris 10 machine with java 1.8.0_66-b17, running in standalone mode. It has been working well.
Read more >30.2. Enabling the Agent to Connect to Secured JMX Servers
When the JMX server is running secured, there are no entries in the jmx-console-users.properties file, so there is no way for the agent...
Read more >Spring Boot Reference Documentation
Try the How-to documents. They provide solutions to the most common questions. Learn the Spring basics. Spring Boot builds on many other Spring...
Read more >Untitled
Hi, I have the same problem with liferay 5.2.3 and Jboss 5.0. I tried adding id's to web.xml and application.xml, but it doesn't...
Read more >Untitled
In additional to standard Java XML interfaces, one unique feature not ... Repair rpmnew file created by error by using scrip http://openeuler.org ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@nemo97 would you mind sharing your fix for this?
Hi guys! I know this is an old issue, but I had to do a little maintenance on the legacy system that I got the error a couple of years ago and even after upgrading Jedis to version 3.3.0 the error still happens on JBoss EAP 5.2 but I was able to avoid it setting the property jxmEnabled to false on JedisPoolConfig.
JedisPoolConfig config = JedisPoolConfig(); config.setJmxEnabled(false);
Don’t know if disabling JMX is a viable workaround to everyone using JBoss EAP 5.2. But it’s quite an old server version, maybe it’s not worth anymore supporting it. 💁