pjfanning / pekko-http-json

Integrate some of the best JSON libs in Scala with Pekko HTTP
Apache License 2.0
25 stars 2 forks source link

Exception: java.lang.AbstractMethodError thrown from the UncaughtExceptionHandler in thread "main" #25

Closed KevinAtSesam closed 2 months ago

KevinAtSesam commented 3 months ago

Upgrading from 2.5.0 to 2.6.0 gives us a AbstractMethodError.

Background

Exception in thread "main" java.lang.AbstractMethodError: Receiver class com.sesamsolutions.application.Main$ does not define or inherit an implementation of the resolved method 'abstract void com$github$pjfanning$pekkohttpcirce$BaseCirceSupport$setter$com$github$pjfanning$pekkohttpcirce$BaseCirceSupport$$defaultMediaTypes_$eq(scala.collection.immutable.Seq)' of interface com.github.pjfanning.pekkohttpcirce.BaseCirceSupport.

This happens with

pjfanning commented 2 months ago

You may need to recompile your code. This lib currently does not guarantee 100% binary compatibility across major or minor releases. With patch releases, I try to keep changes to a minimum.

At some stage, I may have time to add MiMa checking.

pjfanning commented 2 months ago

I can't see any suspicious Circe module changes in https://github.com/pjfanning/pekko-http-json/compare/v2.5.0...v2.6.0

And the Circe version does not appear to have been changed.

KevinAtSesam commented 2 months ago

You may need to recompile your code. This lib currently does not guarantee 100% binary compatibility across major or minor releases.

That might explain the issue. I've cleared all caches on my machine and our build server, and everything compiles and tests correctly. Sorry for wasting your time, but thanks for your support none the less.