Hello,
I am using J2SE 5.0 and MX4J 2.0.1. The URLs in
HttpAdaptor console page have special characters like "%
3A" and "%3D" and this throws following error.
"javax.management.MalformedObjectNameException: Key
properties cannot be empty"
I use non-default XSLT processor and no xml property
files .
Any help is appreciated.
thanks
KRISH
try {
mBeanServer =
MBeanServerFactory.createMBeanServer();
// Register processor with MBean Server
XSLTProcessor processor = new XSLTProcessor
();
ObjectName processorObjName = new
ObjectName("connectors:type=http,processor=xslt");
mBeanServer.registerMBean
(processor,processorObjName);
// Register HTTP Adaptor with MBeanServer
HttpAdaptor httpAdaptor = new HttpAdaptor();
ObjectName adaptorObjName = new ObjectName
("connectors:type=http");
mBeanServer.registerMBean
(httpAdaptor,adaptorObjName);
httpAdaptor.setHost("xxxxx");
httpAdaptor.setPort(8899);
httpAdaptor.setProcessorNameString
("connectors:type=http,processor=xslt");
ObjectName objName = ObjectName.getInstance
("SAMS:type=com.apollo.sams.management.status.ViewR
esourceStatus");
mBeanServer.registerMBean(new
ViewResourceStatus(),objName);
httpAdaptor.start();
} catch(MalformedObjectNameException ex) {
ex.printStackTrace();;
} catch(MBeanRegistrationException ex) {
ex.printStackTrace();
} catch(InstanceAlreadyExistsException ex){
ex.printStackTrace();
} catch(NotCompliantMBeanException ex){
ex.printStackTrace();
} catch(IOException ex){
ex.printStackTrace();
} catch(MBeanException ex){
ex.printStackTrace();
}
Logged In: YES
user_id=1195790
This is the same bug i've just submitted.
See #1101003
The problem is in the mbean_attributes.xsl