play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors: 1) Error in custom provider, java.lang.NullPointerException while locating play.api.db.evolutions.ApplicationEvolutionsProvider at play.api.db.evolutions.EvolutionsModule.bindings(EvolutionsModule.scala:22): Binding(class play.api.db.evolutions.ApplicationEvolutions to ProviderConstructionTarget(class play.api.db.evolutions.ApplicationEvolutionsProvider) eagerly) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) while locating play.api.db.evolutions.ApplicationEvolutions 1 error]

Stack Overflow | M. Hertig | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Play 2.5 Migration: com.google.inject.CreationException: Unable to create injector

    Stack Overflow | 6 months ago | M. Hertig
    play.api.UnexpectedException: Unexpected exception[CreationException: Unable to create injector, see the following errors: 1) Error in custom provider, java.lang.NullPointerException while locating play.api.db.evolutions.ApplicationEvolutionsProvider at play.api.db.evolutions.EvolutionsModule.bindings(EvolutionsModule.scala:22): Binding(class play.api.db.evolutions.ApplicationEvolutions to ProviderConstructionTarget(class play.api.db.evolutions.ApplicationEvolutionsProvider) eagerly) (via modules: com.google.inject.util.Modules$OverrideModule -> play.api.inject.guice.GuiceableModuleConversions$$anon$1) while locating play.api.db.evolutions.ApplicationEvolutions 1 error]

    Root Cause Analysis

    1. java.lang.NullPointerException

      null

      at com.avaje.ebean.config.dbplatform.DatabasePlatform.createDdlHandler()
    2. avaje-ebeanorm
      DatabasePlatform.createDdlHandler
      1. com.avaje.ebean.config.dbplatform.DatabasePlatform.createDdlHandler(DatabasePlatform.java:209)
      1 frame
    3. com.avaje.ebean
      CurrentModel.getCreateDdl
      1. com.avaje.ebean.dbmigration.model.CurrentModel.handler(CurrentModel.java:150)
      2. com.avaje.ebean.dbmigration.model.CurrentModel.createDdl(CurrentModel.java:141)
      3. com.avaje.ebean.dbmigration.model.CurrentModel.getCreateDdl(CurrentModel.java:107)
      3 frames
    4. Play Ebean
      EbeanDynamicEvolutions.lambda$create$4
      1. play.db.ebean.EbeanDynamicEvolutions.generateEvolutionScript(EbeanDynamicEvolutions.java:93)
      2. play.db.ebean.EbeanDynamicEvolutions.lambda$create$4(EbeanDynamicEvolutions.java:59)
      2 frames
    5. Java RT
      HashMap.forEach
      1. java.util.HashMap.forEach(HashMap.java:1280)
      1 frame
    6. Play Ebean
      EbeanDynamicEvolutions.create
      1. play.db.ebean.EbeanDynamicEvolutions.create(EbeanDynamicEvolutions.java:58)
      1 frame
    7. Play JDBC
      ApplicationEvolutions.<init>
      1. play.api.db.evolutions.ApplicationEvolutions.start(ApplicationEvolutions.scala:40)
      2. play.api.db.evolutions.ApplicationEvolutions.<init>(ApplicationEvolutions.scala:150)
      2 frames