[ mx4j-Bugs-1048821 ] HTTPAdaptor Console-HELP NEEDED

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.mx4j.devel
Message-ID <[email protected]>
Bugs item #1048821, was opened at 2004-10-17 20:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1048821&group_id=47745

Category: HTTP Adaptor
Group: Release 2.0.1
Status: Open
Resolution: None
Priority: 5
Submitted By: KRISH D (sfkrishna)
Assigned to: Nobody/Anonymous (nobody)
Summary: HTTPAdaptor Console-HELP NEEDED

Initial Comment:
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


Code used:
========

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();
        }



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=1048821&group_id=47745


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.