[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3231) Alot of Could not acquire children from extension: org.jboss.tools.jmx.ui.internal.views.navigator.root in error log

Rob Stryker (JIRA) jira-events at lists.jboss.org
Thu Nov 20 17:22:36 EST 2008


    [ https://jira.jboss.org/jira/browse/JBIDE-3231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12439177#action_12439177 ] 

Rob Stryker commented on JBIDE-3231:
------------------------------------

This is actually a JBoss AS bug for creating MBeans that violate spec.  The JMX 1.2 specification says as follows:

All the following methods must return valid, meaningful data (non-empty
strings) suitable for display to users:
   OpenMBeanInfo.getDescription
   OpenMBeanOperationInfo.getDescription
   OpenMBeanConstructorInfo.getDescription
   OpenMBeanParameterInfo.getDescription
   OpenMBeanAttributeInfo.getDescription

The javax.management classes do *not* check for nulls in these classes or in their .equals methods. 

A verbose and stupid bunch of code has now been added to MBeanOperationInfoWrapper to overcome this JBoss AS deficiency. 

> Alot of Could not acquire children from extension: org.jboss.tools.jmx.ui.internal.views.navigator.root in error log
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3231
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3231
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jmx
>            Reporter: Max Rydahl Andersen
>             Fix For: 3.0.0.cr1
>
>
> Not sure when they appeared but I got alot of "could not acquire children" in the error log.
> Maybe it came when I pressed * on the root node in JMX view which on windows expands all nodes and I hit some "bad" jmx nodes?
> Could not acquire children from extension: org.jboss.tools.jmx.ui.internal.views.navigator.root
> java.lang.NullPointerException
> 	at javax.management.MBeanParameterInfo.equals(MBeanParameterInfo.java:121)
> 	at java.util.Arrays.equals(Arrays.java:2392)
> 	at javax.management.MBeanOperationInfo.equals(MBeanOperationInfo.java:272)
> 	at org.jboss.tools.jmx.core.MBeanOperationInfoWrapper.equals(MBeanOperationInfoWrapper.java:48)
> 	at java.util.WeakHashMap.eq(WeakHashMap.java:259)
> 	at java.util.WeakHashMap.put(WeakHashMap.java:406)
> 	at org.eclipse.ui.internal.navigator.NavigatorContentService.rememberContribution(NavigatorContentService.java:649)
> 	at org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.getChildren(SafeDelegateTreeContentProvider.java:92)
> 	at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.internalGetChildren(NavigatorContentServiceContentProvider.java:251)
> 	at org.eclipse.ui.internal.navigator.NavigatorContentServiceContentProvider.getChildren(NavigatorContentServiceContentProvider.java:227)
> 	at org.jboss.tools.jmx.ui.internal.views.navigator.QueryContribution$RefineThread.cache(QueryContribution.java:125)
> 	at org.jboss.tools.jmx.ui.internal.views.navigator.QueryContribution$RefineThread.cache(QueryContribution.java:130)
> 	at org.jboss.tools.jmx.ui.internal.views.navigator.QueryContribution$RefineThread.cache(QueryContribution.java:130)
> 	at org.jboss.tools.jmx.ui.internal.views.navigator.QueryContribution$RefineThread.cacheEntry(QueryContribution.java:105)
> 	at org.jboss.tools.jmx.ui.internal.views.navigator.QueryContribution$RefineThread.run(QueryContribution.java:88)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list