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

Getting a java.lang.IllegalAccessError: class com.okta.tools.authentication.CookieManager error #366

Open
DrakkhenD opened this issue Mar 1, 2021 · 0 comments

Comments

@DrakkhenD
Copy link

DrakkhenD commented Mar 1, 2021

Describe the bug
On windows 10.
Installed latest java, javaFX, AWS, and okta-aws-cli-assume-role. Then had to change the windows profile to include modules

e.g. environment PATH_TO_FX=c:\Program Files\Java\javafx-sdk-15.0.1\lib
java "-Djava.util.logging.config.file=$HOME.okta\logging.properties" --module-path=$Env:PATH_TO_FX --add-modules=javafx.base,javafx.graphics,javafx.controls,javafx.web,javafx.fxml -classpath $HOME.okta\okta-aws-cli.jar $MainClass @Args

To Reproduce
Steps to reproduce the behavior:

  1. running from powershell okta-aws [aprofile] sts get-caller-identity
  2. getting error
    Exception in Application start method
    Exception in thread "main" java.lang.RuntimeException: Exception in Application start method
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:900)
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195)
    at java.base/java.lang.Thread.run(Thread.java:832)
    Caused by: java.lang.IllegalAccessError: class com.okta.tools.authentication.CookieManager (in unnamed module @0x6f3d3e38) cannot access class com.sun.webkit.network.CookieManager (in module javafx.web) because module javafx.web does not export com.sun.webkit.network to unnamed module @0x6f3d3e38
    at com.okta.tools.authentication.CookieManager.(CookieManager.java:31)
    at com.okta.tools.authentication.BrowserAuthentication.initializeCookies(BrowserAuthentication.java:106)
    at com.okta.tools.authentication.BrowserAuthentication.start(BrowserAuthentication.java:80)
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    Expected behavior
    This should run and work but doesn't

This is related to OKTA_BROWSER_AUTH=true in okta config, if i comment this out it errors out without an identity provider

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

1 participant