General discussion of Play: https://www.playframework.com/ | Code of Conduct: https://www.lightbend.com/conduct | Forums: https://discuss.playframework.com | Commercial support from https://www.lightbend.com/
@Inject
annotation.[error] com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.10.5 requires Jackson Databind version >= 2.10.0 and < 2.11.0
[error] at com.fasterxml.jackson.module.scala.JacksonModule.setupModule(JacksonModule.scala:61)
I am upgrading from play 2.6 to 2.7.8, and I get this error
ControllerComponents not set! Call setControllerComponents or create the instance with dependency injection.
Even though my controller is extending InjectedController and in 2.6 it works fine. With Base-/AbstractController it works, but I rather not have the boilerplate. I couldn't find any existing issues about this
git log | grep sentry
)
I updated play from 2.5.9 to 2.7 and need to convert classes to work with DI. I am having trouble migrating the custom logback appender that sends logs to external service with wsclient. I get this error when starting the server:ch.qos.logback.core.util.DynamicClassLoadingException: Failed to instantiate type service.logging.LogstashAppender
And this is the signature of that class:
@Singleton
class LogstashAppender @Inject()(ws: WSClient) {
Back in play 2.5 it worked without DI as I just sent the logs with play.current.WS
{"omg:":"json"}
we are trying to create "{\"omg\":\"json\"}"
. Any thoughts on how to do that since Json.stringify
wants a JsValue
?