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

Java exception in thread "main" when running awscli #400

Open
RaananF opened this issue Jun 19, 2022 · 3 comments
Open

Java exception in thread "main" when running awscli #400

RaananF opened this issue Jun 19, 2022 · 3 comments

Comments

@RaananF
Copy link

RaananF commented Jun 19, 2022

Followed the installation guide and when i'm trying to verify the installation or even run the basic awscli i get an exception

I get this error:

Exception in thread "main" java.lang.NullPointerException: Cannot invoke "String.length()" because "this.input" is null
	at java.base/java.net.URI$Parser.parse(URI.java:3164)
	at java.base/java.net.URI.<init>(URI.java:623)
	at java.base/java.net.URI.create(URI.java:904)
	at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:66)
	at com.okta.tools.saml.OktaAppClientImpl.launchApp(OktaAppClientImpl.java:40)
	at com.okta.tools.saml.OktaSaml.getSamlResponseForAwsRefresh(OktaSaml.java:59)
	at com.okta.tools.saml.OktaSaml.getSamlResponse(OktaSaml.java:45)
	at com.okta.tools.OktaAwsCliAssumeRole.doRequest(OktaAwsCliAssumeRole.java:132)
	at com.okta.tools.OktaAwsCliAssumeRole.run(OktaAwsCliAssumeRole.java:102)
	at com.okta.tools.WithOkta.main(WithOkta.java:28)

Tried removing and reinstalling everything and nothing worked. Everything is the correct version.

@sethkong
Copy link

i am facing the same issue, does anyone figure out the solution?

@mraible
Copy link

mraible commented Aug 31, 2023

If y'all do figure out a workaround, we might want to add it to the README. It's possible the JDK version matters.

@JD-LAVAUD
Copy link

check that you have a config file in ~/.okta and that it's properly named 'config.properties' , etc.. in case of file not found / badly named this error is thrown

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

4 participants