trying to execute this simple snippet:
ClientCredentials clientCredentials = new TokenClientCredentials("**********");
Client client = Clients.builder().setClientCredentials(clientCredentials).setOrgUrl("https://.okta.com").build();
client.listApplications();
I get the following error trace:
Exception in thread “main” java.lang.NullPointerException
at com.okta.sdk.impl.ds.DefaultDiscriminatorRegistry.(DefaultDiscriminatorRegistry.java:35)
at com.okta.sdk.impl.ds.DefaultResourceFactory.(DefaultResourceFactory.java:46)
at com.okta.sdk.impl.ds.DefaultDataStore.(DefaultDataStore.java:106)
at com.okta.sdk.impl.client.BaseClient.createDataStore(BaseClient.java:80)
at com.okta.sdk.impl.client.BaseClient.(BaseClient.java:73)
at com.okta.sdk.impl.client.AbstractClient.(AbstractClient.java:60)
at com.okta.sdk.impl.client.DefaultClient.(DefaultClient.java:113)
at com.okta.sdk.impl.client.DefaultClientBuilder.build(DefaultClientBuilder.java:318)
I have confirmed that SDK JAR versions match (1.3.1)