Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beans command does not accept spaces in domain name #77

Open
MariuszPawlowski85 opened this issue Feb 12, 2020 · 3 comments
Open

Beans command does not accept spaces in domain name #77

MariuszPawlowski85 opened this issue Feb 12, 2020 · 3 comments

Comments

@MariuszPawlowski85
Copy link

MariuszPawlowski85 commented Feb 12, 2020

I try to run following commnad:
beans -d java.lang:name=Code Cache,type=MemoryPool

Then I get:
#IllegalArgumentException: Domain java.lang:name=Code doesn't exist, check your spelling

It looks like this command does not handle well with names having ' ' (in my case 'Code Cache ')

@jiaqi
Copy link
Owner

jiaqi commented Feb 20, 2020

Did you try -d "java.lang..."

@MariuszPawlowski85
Copy link
Author

Yes, it doesn't work

@adamantal
Copy link

I had the same problem with the following bean:

$>bean 'java.lang:name=G1 Old Generation,type=GarbageCollector'
#IllegalArgumentException: Bean name 'java.lang:name=G1 isn't valid
$>bean 'java.lang:name=G1\ Old\ Generation,type=GarbageCollector'
#IllegalArgumentException: Bean name 'java.lang:name=G1 isn't valid
...

I think jline might lack this feature to properly escape space characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants