Guice error after removing akka #13015
Replies: 4 comments 2 replies
-
Play 3.0 uses Pekko, not Akka. If you have an Akka reference, it's because the project (or a transitive dependency) added it. The easiest way to debug this is to use JDWP with And then when you click play in the debug process in IntelliJ IDEA, it will take you to the breakpoint in the stack where that exception is thrown and you'll be able to see what arguments and code led up to that point through step debugging. |
Beta Was this translation helpful? Give feedback.
-
Thanks, for the response but you clearly didn't read the problem. I followed the migration guide to remove akka references from previous version and I still get the error. I do an sbt dependancy tree and see no mention of akka. THAT is the problem
…________________________________
From: Will Sargent ***@***.***>
Sent: Wednesday, December 18, 2024 2:41 PM
To: playframework/playframework ***@***.***>
Cc: Chet Rebman ***@***.***>; Author ***@***.***>
Subject: Re: [playframework/playframework] Guice error after removing akka (Discussion #13015)
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Play 3.0 uses Pekko, not Akka. If you have an Akka reference, it's because you added it.
—
Reply to this email directly, view it on GitHub<#13015 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAVGYROZOHCM3F5ZOMUJWL32GHT2FAVCNFSM6AAAAABT3MBTZSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRRGA3DIMA>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
We are in complete agreement. I also do not believe it is the play framework which I have been upgrading, without complaint, since version 1.6
I also firmly believe there is an akka reference. I was hoping to get some insight into how to find it, since I have spent hours looking for it. I will look again tomorrow. If I find it, I will be sure to share my insights for future travelers.
…________________________________
From: Will Sargent ***@***.***>
Sent: Wednesday, December 18, 2024 5:22 PM
To: playframework/playframework ***@***.***>
Cc: Chet Rebman ***@***.***>; Author ***@***.***>
Subject: Re: [playframework/playframework] Guice error after removing akka (Discussion #13015)
CAUTION: This email originated from outside of our organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I read the problem fine. Your problem is that an akka reference exists -- Play 3.0 uses Pekko internally, so it cannot be a problem of Play itself. It must be either a direct dependency or a transitive dependency in your project.
—
Reply to this email directly, view it on GitHub<#13015 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAVGYRO5DCRQMRZDGTP6QOT2GIGWHAVCNFSM6AAAAABT3MBTZSVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRRGE2TCNY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
I finally found it. I forgot that I had created a /lib directory many eons ago that had an old mailer which must have used the Actor system somehow. Once the jar was removed the system booted. :) Not sure why I didn't see it in the dependency tree, but at this point I just going to move on lol |
Beta Was this translation helpful? Give feedback.
-
After upgrading to 3.05 from 2.88 I get the following guice injector error, even though I believe
I have made all changes to remove akka from the system.
java.lang.NoClassDefFoundError: akka/stream/Materializer
...
com.google.inject.Guice.createInjector(Guice.java:78)
play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:200)
play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:176)
play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
play.core.server.DevServerStart$DevServerApplicationProvider$1.reload(DevServerStart.scala:225)
play.core.server.DevServerStart$DevServerApplicationProvider$1.get(DevServerStart.scala:190)
play.core.server.PekkoHttpServer.handleRequest(PekkoHttpServer.scala:320)
Beta Was this translation helpful? Give feedback.
All reactions