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

ExceptionInInitializerError: Exception com.google.inject.internal.cglib.core.$CodeGenerationException: #2983

Closed
nicholaswkc34 opened this issue Dec 1, 2022 · 2 comments

Comments

@nicholaswkc34
Copy link

nicholaswkc34 commented Dec 1, 2022

Dear All, I tried to code serenity version 3.3.4, maven 3.8.1 and java 13/19, suddenly the code cannot be run anymore.
I treid different version of Java like java 13, java 17 18 19 but none of this works. The maven version is the latest from intellij IDE.

The complete exception log is here.

java.lang.ExceptionInInitializerError: Exception com.google.inject.internal.cglib.core.$CodeGenerationException: java.lang.reflect.InaccessibleObjectException-->Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "opens java.lang" to unnamed module @2d1ef81a [in thread "main"]

I had run out of idea to solve it. Please help me. Thanks in advance

@nicholaswkc34
Copy link
Author

nicholaswkc34 commented Dec 1, 2022

Dear all, i solved the problem by deleteing the .idea folder and rerun it. It works. There is another problem arise which is no browser was open when it running, it just display some test result to the console.

EDIT:
I had set the chrome driver to download automatically in the serenity.conf.

webdriver {
driver = chrome
autodownload = true
}

@wakaleo
Copy link
Member

wakaleo commented Dec 17, 2022

Thanks for the feedback Nicholas.

@wakaleo wakaleo closed this as completed Dec 17, 2022
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

2 participants