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

IllegalName in ApplicationClients Builder w. Java 11 #16

Open
bekwam opened this issue Apr 4, 2021 · 2 comments
Open

IllegalName in ApplicationClients Builder w. Java 11 #16

bekwam opened this issue Apr 4, 2021 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@bekwam
Copy link

bekwam commented Apr 4, 2021

Hi,

Compiling and running on 11, I'm getting this error when I call build() as in the demo.

2021-04-04 07:50:27,295 WARN  [org.jboss.modules.define] (default task-1) Failed to define class com/okta/commons/configcheck/ConfigurationValidator in Module "deployment.okta-samples-java-1.0-SNAPSHOT.war" from Service Module Loader: java.lang.NoClassDefFoundError: Failed to link com/okta/commons/configcheck/ConfigurationValidator (Module "deployment.okta-samples-java-1.0-SNAPSHOT.war" from Service Module Loader): IllegalName: com/okta/commons/configcheck/ConfigurationValidator

This is the build() call I'm making

    private final AuthenticationClient authenticationClient =
            AuthenticationClients
                    .builder()
                    .setOrgUrl("redacted")
                    .build();

If I switch to 8, I don't get the error.

I'm using a similar POM from the project but with the versions updated.

        <dependency>
            <groupId>com.okta.authn.sdk</groupId>
            <artifactId>okta-authn-sdk-api</artifactId>
            <version>2.0.2</version>
        </dependency>
        <dependency>
            <groupId>com.okta.authn.sdk</groupId>
            <artifactId>okta-authn-sdk-impl</artifactId>
            <version>2.0.2</version>
            <scope>runtime</scope>
        </dependency>
        <dependency>
            <groupId>com.okta.sdk</groupId>
            <artifactId>okta-sdk-okhttp</artifactId>
            <version>4.0.0</version>
            <scope>runtime</scope>
        </dependency>

Is there a library available for working with Java 11?

Thanks -Carl

@bekwam bekwam changed the title IllegalName in ApplicationClients Builder IllegalName in ApplicationClients Builder w. Java 11 Apr 4, 2021
@sergiishamrai-okta sergiishamrai-okta added help wanted Extra attention is needed question Further information is requested labels Apr 5, 2021
@sergiishamrai-okta
Copy link

@bekwam Thanks for reporting this!
We'll dig into this and get back to you.
Please, follow this issue to get updates.

@sergiishamrai-okta
Copy link

Internal ref: OKTA-384424

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants