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

Update reflect-config.json to accomodate for akka changes #10930

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

hubertp
Copy link
Contributor

@hubertp hubertp commented Aug 30, 2024

Pull Request Description

Recently (#10905) we got rid of 2 unnecessary dependencies. That seemed to have affected the generated native-image.
Problem reported internally:

timestamp=2024-08-30T08:54:51.842085600Z level=ERROR thread=#zio-fiber-2 message="" cause="Exception in thread "zio-fiber-5" java.lang.ClassNotFoundException: akka.event.DefaultLoggingFilter
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:122)
        at org.graalvm.nativeimage.builder/com.oracle.svm.core.hub.ClassForNameSupport.forName(ClassForNameSupport.java:86)
        at java.base@21.0.2/java.lang.Class.forName(DynamicHub.java:1356)
        at java.base@21.0.2/java.lang.Class.forName(DynamicHub.java:1345)
        at akka.actor.ReflectiveDynamicAccess.$anonfun$getClassFor$1(ReflectiveDynamicAccess.scala:29)
        at scala.util.Try$.apply(Try.scala:210)
        at akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:28)
        at akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:47)
        at akka.actor.ActorSystemImpl.<init>(ActorSystem.scala:929)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:272)
        at akka.actor.ActorSystem$.apply(ActorSystem.scala:316)
        at org.enso.projectmanager.boot.MainModule.<init>(MainModule.scala:56)
        at org.enso.projectmanager.boot.ProjectManager$.mainProcess(ProjectManager.scala:84)
        at org.enso.projectmanager.boot.ProjectManager$.$anonfun$runOpts$10(ProjectManager.scala:290)
        at org.enso.projectmanager.boot.ProjectManager.runOpts(ProjectManager.scala:284)
        at org.enso.projectmanager.boot.ProjectManager.runArgs(ProjectManager.scala:143)"

Tested the change on a manually built project-manager native-image build.
Side-note: the list has not been updated since 2021 🤔

Recently (#10905) we got rid of 2 unnecessary dependencies. That seemed
to have affected the generated native-image.
@hubertp hubertp added the CI: No changelog needed Do not require a changelog entry for this PR. label Aug 30, 2024
@hubertp hubertp added the CI: Ready to merge This PR is eligible for automatic merge label Aug 30, 2024
@hubertp hubertp merged commit 54dc0d0 into develop Aug 30, 2024
42 checks passed
@hubertp hubertp deleted the wip/hubert/update-native-image-config-pm branch August 30, 2024 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: No changelog needed Do not require a changelog entry for this PR. CI: Ready to merge This PR is eligible for automatic merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants