Skip to content
New issue

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

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

Already on GitHub? # to your account

get_config fails if json data contains String.format specifiers #4

Open
tuck182 opened this issue Jan 21, 2015 · 2 comments
Open

get_config fails if json data contains String.format specifiers #4

tuck182 opened this issue Jan 21, 2015 · 2 comments
Assignees

Comments

@tuck182
Copy link
Owner

tuck182 commented Jan 21, 2015

get_config
java.util.MissingFormatArgumentException: Format specifier '2f'
at java.util.Formatter.format(Formatter.java:2487)
at java.util.Formatter.format(Formatter.java:2423)
at java.lang.String.format(String.java:2790)
at net.whistlingfish.harmony.shell.ShellCommand.println(ShellCommand.java:12)
at net.whistlingfish.harmony.shell.GetConfigCommand.execute(GetConfigCommand.java:8)
at net.whistlingfish.harmony.shell.ShellCommandWrapper.execute(ShellCommandWrapper.java:20)

The simple fix is to stop using String.format for that output or pass the json data in as an arg (should also review uses of the println method to make sure inputs are cleaned up).

@tuck182 tuck182 self-assigned this Jan 21, 2015
@digitaldan digitaldan mentioned this issue Mar 18, 2015
@intrepidsilence
Copy link

This error is still occurring. Have you had any success in fixing it?

@intrepidsilence
Copy link

Nevermind. I did a pull and the dev version works. I guess you just need to do a new release so everyone does not have to install gradle.

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

No branches or pull requests

2 participants