Compatibility issues between Play 2.6 and play2-reactivemongo 0.12.4

362 views
Skip to first unread message

Ori Popowski

unread,
Jun 30, 2017, 5:58:05 PM6/30/17
to ReactiveMongo - http://reactivemongo.org
Hi,

We're getting java.lang.NoSuchMethodError: play.api.Logger.debug(Lscala/Function0;)V when calling DefaultReactiveMongoApi.database() method.

The stack trace looks like this:


[info]   Cause: java.lang.NoSuchMethodError: play.api.Logger.debug(Lscala/Function0;)V
[info]   at play.modules.reactivemongo.DefaultReactiveMongoApi.database(DefaultReactiveMongoApi.scala:87)

I looked at the source code, and I think it's because Play's Logger signature has changed from this:

def debug(message: => String)

to this (in 2.6):

def debug(message: => String)(implicit mc: MarkerContext)

Is it possible to support Play 2.6 in the next release? (0.12.5)

Thanks

Cédric Chantepie

unread,
Jul 1, 2017, 10:55:44 AM7/1/17
to ReactiveMongo - http://reactivemongo.org
Unfortunately Play 2.6 is breaking compatibility in many ways, making hard having backward compatibility for plugin. First try 0.12.5-SNAPSHOT .

Christian Kaps

unread,
Jul 2, 2017, 6:05:16 AM7/2/17
to ReactiveMongo - http://reactivemongo.org
Hi,

could you please publish the snapshot?

Best regards,
Christian

Cédric Chantepie

unread,
Jul 2, 2017, 4:29:53 PM7/2/17
to ReactiveMongo - http://reactivemongo.org
Try 0.12.4-fix26

Christian Kaps

unread,
Jul 3, 2017, 2:21:15 PM7/3/17
to ReactiveMongo - http://reactivemongo.org
For Scala 2.12 and Play 2.6 it works but not for Scala 2.11. Got:

[error]    java.lang.NoSuchMethodError: Fatal execution error, caused by play.api.Logger.debug(Lscala/Function0;)V (DefaultReactiveMongoApi.scala:87)
[error] play.modules.reactivemongo.DefaultReactiveMongoApi.database(DefaultReactiveMongoApi.scala:87)



Am Sonntag, 2. Juli 2017 22:29:53 UTC+2 schrieb Cédric Chantepie:
Try 0.12.4-fix26

Cédric Chantepie

unread,
Jul 4, 2017, 3:30:00 PM7/4/17
to ReactiveMongo - http://reactivemongo.org
Try 0.12.5-play26-SNAPSHOT

Christian Kaps

unread,
Jul 5, 2017, 12:54:00 PM7/5/17
to ReactiveMongo - http://reactivemongo.org
It seems that it's not released yet: https://oss.sonatype.org/content/repositories/snapshots/org/reactivemongo/

Am Dienstag, 4. Juli 2017 21:30:00 UTC+2 schrieb Cédric Chantepie:
Try 0.12.5-play26-SNAPSHOT

Cédric Chantepie

unread,
Jul 5, 2017, 2:19:34 PM7/5/17
to ReactiveMongo - http://reactivemongo.org

Christian Kaps

unread,
Jul 5, 2017, 2:21:09 PM7/5/17
to reacti...@googlegroups.com
Only for Scala 2.11?

Am 05.07.2017 20:19 schrieb "Cédric Chantepie" <chantep...@gmail.com>:

--
You received this message because you are subscribed to a topic in the Google Groups "ReactiveMongo - http://reactivemongo.org" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/reactivemongo/dMHOjpl1mR8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to reactivemongo+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Cédric Chantepie

unread,
Jul 6, 2017, 3:08:40 AM7/6/17
to ReactiveMongo - http://reactivemongo.org
Have you tried 2.12?
Reply all
Reply to author
Forward
0 new messages