[
https://issues.apache.org/jira/browse/WICKET-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462516
]
Martin Grigorov commented on WICKET-196:
----------------------------------------
Hi,
I have some problems with this functionality.
$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at wicket.jmx.Initializer.init(Initializer.java:131)
at wicket.Initializer.init(Initializer.java:59)
at wicket.Application.callInitializers(Application.java:837)
at wicket.Application.initializeComponents(Application.java:628)
at wicket.protocol.http.WicketFilter.init(WicketFilter.java:343)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:95)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
...
It looks like
ArrayList<MBeanServer> mbeanServers = (ArrayList<MBeanServer>)MBeanServerFactory
.findMBeanServer(null);
returns empty list.
Martin
> Ability to specify the MBean Server in which to register the Wicket MBeans
> --------------------------------------------------------------------------
>
> Key: WICKET-196
> URL: https://issues.apache.org/jira/browse/WICKET-196
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-jmx
> Affects Versions: 1.2.3, 1.2.4
> Reporter: David Hosier
> Assigned To: Eelco Hillenius
> Fix For: 1.3, 2.0
>
> Attachments: Initializer_patch, patch.txt
>
>
> Following is a conversation between Igor and I:
> <dmhosier> You may be able to utilize this call instead:
> <dmhosier>
> http://java.sun.com/j2ee/1.4/docs/api/javax/management/MBeanServerFactory.html#findMBeanServer(java.lang.String)
> <dmhosier> but there would have to be some way to specify the agent ID
> <ivaynberg> hmm
> <ivaynberg> a system prop?
> <dmhosier> probably the best bet
> <dmhosier> maybe check if a specified property exists, and use this method to
> get the server, otherwise default to what you have now
> <ivaynberg> yeah
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira