Can not select bean with = in the name

Bug #1192200 reported by Michael McCarthy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Jmxterm
New
Undecided
Unassigned

Bug Description

I am unable to select a bean with "=" in the name, for example any of the log4j beans. I have tried using jmxterm-1.0-alpha-4-uber.jar and mxterm-1.0-SNAPSHOT-uber.jar and both exhibit the issue.

$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.45-b01, mixed mode)

$ uname -a
Linux mvp-web01-qa.ist.berkeley.edu 2.6.18-348.el5 #1 SMP Wed Nov 28 21:22:00 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

...
$>beans
...
log4j:logger=root
$>bean log4j:Name=logger=root
javax.management.MalformedObjectNameException: Invalid character '=' in value part of property
        at javax.management.ObjectName.construct(ObjectName.java:602)
        at javax.management.ObjectName.<init>(ObjectName.java:1403)
        at org.cyclopsgroup.jmxterm.cmd.BeanCommand.getBeanName(BeanCommand.java:67)
        at org.cyclopsgroup.jmxterm.cmd.BeanCommand.execute(BeanCommand.java:163)
        at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:189)
        at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:158)
        at org.cyclopsgroup.jmxterm.cc.CommandCenter.execute(CommandCenter.java:207)
        at org.cyclopsgroup.jmxterm.boot.CliMain.execute(CliMain.java:156)
        at org.cyclopsgroup.jmxterm.boot.CliMain.main(CliMain.java:48)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:264)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.classworlds.uberjar.boot.Bootstrapper.bootstrap(Bootstrapper.java:209)
        at org.codehaus.classworlds.uberjar.boot.Bootstrapper.main(Bootstrapper.java:116)
$>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.