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

Cleanup in version 0.106 not working properly on Lagom #939

Open
schrepfler opened this issue Dec 15, 2021 · 0 comments
Open

Cleanup in version 0.106 not working properly on Lagom #939

schrepfler opened this issue Dec 15, 2021 · 0 comments

Comments

@schrepfler
Copy link

Versions used

Version used: 0.106 (Default version on Lagom 1.6.5)
Akka version: 2.6.14 Scala 2.13
JDK version: 11

Can't try later versions as this is imported by Lagom and we have a bunch of errors if we try to bump/fix versions with overrides.

Expected Behavior

When embedding and calling Cleanup from within the Lagom Java API it's expected that the Cleanup procedure performs it's task against the repository.

Actual Behavior

Creating the Cleanup blows up.

Relevant logs

Exception on Cleanup creation

Error injecting constructor, java.lang.NoSuchMethodError: 'akka.stream.ActorMaterializer akka.stream.SystemMaterializer.materializer()'
  at ServiceImpl.<init>(ServiceImpl.java:42)
  at com.lightbend.lagom.javadsl.server.ServiceGuiceSupport$LagomServiceBuilder.bind(ServiceGuiceSupport.java:134) (via modules: com.google.inject.util.Modules$OverrideModule -> ServiceModule)
  while locating ServiceImpl
Caused by: java.lang.NoSuchMethodError: 'akka.stream.ActorMaterializer akka.stream.SystemMaterializer.materializer()'

We have solved this by adding a local version of a Cleanup (copy/pasted from original impementation) and compiled it locally (renamed to CleanupV2). Maybe binary copatibility issue if you build akka-persistance-cassandra on JDK8? Maybe MiMa needs to be checked and aligned with the rest of Akka?

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