Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.3
-
Fix Version/s: 1.4.0
-
Component/s: Modules: Management / JMX
-
Labels:None
-
Environment:
linux
weblogic 9.2
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
-
Configuration:
-
Log Output:
-
Similar Issues:None
Description
As per http://www.mail-archive.com/user@mule.codehaus.org/msg01134.html, org.mule.management.agents.JdmkAgent.createAdaptor() always returns null.
This was apparently in response to a licensing issue involving bundling the jar for com.sun.jdmk.comm.HtmlAdaptorServer.
Rather than not use JdmkAgent, leaving it broken or hagging the license, I'd recommend the lesser evil of reflection:
private String adapterClassname = "com.sun.jdmk.comm.HtmlAdaptorServer";
protected Object createAdaptor() throws Exception
{
return (
adaptor = (
java.lang.Class.forName(
adapterClassname
).getDeclaredConstructor(
new Class[] { java.lang.Integer.TYPE }
)
).newInstance( new Object[] { new Integer( new URI( jmxAdaptorUrl ).getPort() ) } )
);
}
This way installations which want to use JdmkAgent would be responsible for installing a copy of a something like jmxtools-1.2.1.jar.
Activity
| Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
|---|---|---|---|---|---|---|---|---|---|
|
1h 6m | 1 | Andrew Perepelytsya | 30/Jan/07 03:39 PM | |||||
|
36m | 1 | Andrew Perepelytsya | 30/Jan/07 04:15 PM |