[JAVA-641] JMX registration error Created: 12/Sep/12 Updated: 19/Mar/13 Resolved: 05/Mar/13 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Monitoring |
| Affects Version/s: | 2.9.0 |
| Fix Version/s: | 2.9.2, 2.11.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kay Agahd | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
linux 64 bit |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
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. |
| Comments |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-22T18:29:10Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-21T03:25:18Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-19T14:00:09Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-22T18:29:10Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-21T03:25:18Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 08/Jan/13 ] |
|
Author: {u'date': u'2012-10-19T14:00:09Z', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 22/Oct/12 ] |
|
Author: {u'date': u'2012-10-19T07:00:09-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by auto [ 21/Oct/12 ] |
|
Author: {u'date': u'2012-10-20T20:25:18-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by Jeffrey Yemin [ 21/Oct/12 ] |
|
I tested with Jetty 6.1.10, JBoss 4.2.3 AS, and Resin 4.0.32, all under Java 6, using the recently committed code. None of them work the same.
Since the driver can't reliably detect the environment it's running in (except for java version), the only solution is to allow whether MBeans or MXBeans are used to be configured via a property in MongoOptions. I'm calling it "alwaysUseMBeans", and it defaults to false. For JBoss users running Java 6 or later, they should set this property to "true". Resin users can use either, but given the problem with the ConnectionPoolStatisticsBean type, "true" might also be a better option. |
| Comment by auto [ 20/Oct/12 ] |
|
Author: {u'date': u'2012-10-19T07:00:09-07:00', u'email': u'jeff.yemin@10gen.com', u'name': u'Jeff Yemin'}Message: |
| Comment by Jeffrey Yemin [ 16/Oct/12 ] |
|
We're going to look to roll back this change. See |
| Comment by Mark Cohen [ 16/Oct/12 ] |
|
Jeff, we see the same issue with JBoss 4.2.3, FYI. We'll see if this is something that JBoss has taken care of in a later version. Would it make sense to start testing with more than just the Sun JMX provider to catch these kinds of issues? thx |
| Comment by Jeffrey Yemin [ 16/Oct/12 ] |
|
Raman, it's just monitoring. |
| Comment by Raman Yushkou [ 16/Oct/12 ] |
|
How this issue affects driver behavior (does it critically influence on driver work or it's just a monitoring)? |
| Comment by Jeffrey Yemin [ 13/Sep/12 ] |
|
Seems like an issue with CAPTCHA. I keep getting "Confirmation hash does not match. Please retry.". |
| Comment by Kay Agahd [ 13/Sep/12 ] |
|
You couldn't sign up for a new account? It worked for me just some hours ago. Could you try again? |
| Comment by Jeffrey Yemin [ 13/Sep/12 ] |
|
OK, thanks. Let me know what their response is. Resin's Mantis bug tracking system is not letting me sign up for a new account. |
| Comment by Kay Agahd [ 13/Sep/12 ] |
|
Yes, I just submitted a bug report: |
| Comment by Jeffrey Yemin [ 13/Sep/12 ] |
|
I'd rather fix Resin, since the bug is theirs and it's going to cause problems for other JMX clients. Have you tried their support forums? |
| Comment by Kay Agahd [ 13/Sep/12 ] |
|
You are right, other application servers, as for example Glassfish too, don't throw any jmx registration errors. |
| Comment by Jeffrey Yemin [ 12/Sep/12 ] |
|
According to http://docs.oracle.com/javase/6/docs/api/javax/management/MXBean.html:
And I don't see any problems registering this MXBean with Sun's JMX provider. So this may be a problem with the JMX provider used in Resin. |
| Comment by Kay Agahd [ 12/Sep/12 ] |
|
The same applies to v2.9.1 |