We are seeing the following error message in our Webserver (resin) log since we are using java driver 2.9.0:
This error does not occur using java driver v2.7.3.
I found out that v2.7.3 uses SimplePool implementing DynamicMBean which v2.9.0 does not.
The problem is that resin (v4.0.30) checks wether the MBean is an instance of DynamicBean OR implements a MBeanInterface. The class name of the latter must end with the name of the implemented interface or superclass appended with MBean or MXBean.
The first is the case for v2.7.3 since SimplePool implements DynamicMBean. For v2.9.0 however, neither the first nor the latter is the case because it does not implement DynamicMBean anymore and the implemented interface com.mongodb.MongoConnectionPoolMXBean does not follow the naming convention. The interface name should end with DBPortPoolMBean or DBPortPoolMXBean or SimplePoolMBean or SimplePoolMXBean.