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

CLI 'put-key' option gives error with joptsimple.OptionArgumentConversionException error #294

Open
gwachob opened this issue Jun 2, 2022 · 2 comments
Labels
next Fixed in next

Comments

@gwachob
Copy link
Contributor

gwachob commented Jun 2, 2022

On HEAD (starting around e27d37f I thinik), the put-key option seems broken.

Any invocation (java -jar gp.jar) seems to result in something like the following stack trace (tried with JDK 8, JDK 11):

Error: Cannot parse argument 'keys/dap.pem' of option put-key
joptsimple.OptionArgumentConversionException: Cannot parse argument 'keys/dap.pem' of option put-key
	at joptsimple.AbstractOptionSpec.convertWith(AbstractOptionSpec.java:92)
	at joptsimple.ArgumentAcceptingOptionSpec.convert(ArgumentAcceptingOptionSpec.java:277)
	at joptsimple.OptionSet.valuesOf(OptionSet.java:223)
	at joptsimple.OptionSet.valueOf(OptionSet.java:172)
	at pro.javacard.gp.GPTool.run(GPTool.java:435)
	at pro.javacard.gp.GPTool.main(GPTool.java:148)
Caused by: joptsimple.internal.ReflectionException: java.lang.IllegalAccessException: class joptsimple.internal.Reflection cannot access a member of class pro.javacard.gp.Key with modifiers "public static"
	at joptsimple.internal.Reflection.reflectionException(Reflection.java:140)
	at joptsimple.internal.Reflection.invoke(Reflection.java:118)
	at joptsimple.internal.MethodInvokingValueConverter.convert(MethodInvokingValueConverter.java:48)
	at joptsimple.internal.Reflection.convertWith(Reflection.java:124)
	at joptsimple.AbstractOptionSpec.convertWith(AbstractOptionSpec.java:90)
	... 5 more
Caused by: java.lang.IllegalAccessException: class joptsimple.internal.Reflection cannot access a member of class pro.javacard.gp.Key with modifiers "public static"
@gwachob
Copy link
Contributor Author

gwachob commented Jun 7, 2022

I'm not the only one seeing this issue, right?

@martinpaljak
Copy link
Owner

Can you replicate this with "next" branch?

@martinpaljak martinpaljak added the next Fixed in next label Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next Fixed in next
Projects
None yet
Development

No branches or pull requests

2 participants