jiaqi/jmxterm

ERROR: bean name isn't valid

Opened this issue · 3 comments

erolg commented

Hi there,
Im using jmxterm to monitor jmx mbeans of Solr.

When i set the domain like => "domain solr/song" then run beans command. It gives me all beans list.
Well. When i send request any attribute of any beans, i get it, bean name isn't valid.

How could it be ?

Example :
$>domain solr/song
$>beans

domain = solr/song:

solr/song:id=debug,type=debug
solr/song:id=facet,type=facet
solr/song:id=get,type=get
solr/song:id=highlight,type=highlight
solr/song:id=mlt,type=mlt
$>get -b solr/song:id=mlt,type=mlt *

IllegalArgumentException: Bean name solr/song:id=mlt,type=mlt isn't valid.

jiaqi commented

Can you please run it with verbose output

run command "option -v verbose" before get command.

same problem for me

$>bean com.spider:instance=ROOT\ (4.0.2.18),name=asyncRunner
java.lang.IllegalArgumentException: Bean name com.spider:instance=ROOT isn't valid
	at org.cyclopsgroup.jmxterm.cmd.BeanCommand.getBeanName(BeanCommand.java:74)
	at org.cyclopsgroup.jmxterm.cmd.BeanCommand.execute(BeanCommand.java:122)
	at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:161)
	at org.cyclopsgroup.jmxterm.cc.CommandCenter.doExecute(CommandCenter.java:134)
	at org.cyclopsgroup.jmxterm.cc.CommandCenter.execute(CommandCenter.java:176)
	at org.cyclopsgroup.jmxterm.boot.CliMain.execute(CliMain.java:149)
	at org.cyclopsgroup.jmxterm.boot.CliMain.main(CliMain.java:41)

Looks like someone else figured out two \\ are needed #55 (comment)
Seems like a great tool, would be superb if this just worked.