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]


Solutions on the web

Solution icon of stackoverflow
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

Solution icon of github
via GitHub by oexza
, 1 year ago
Unexpected exception[CreationException: Unable to create injector, see the following errors: 1) No implementation for be.objectify.deadbolt.java.cache.HandlerCache was bound. while locating be.objectify.deadbolt.java.cache.HandlerCache for

Solution icon of googlegroups
Unexpected exception[UnsatisfiedDependencyException: Error creating bean with name 'class play.libs.Crypto': Unsatisfied dependency expressed through constructor parameter 0; nested exception is

Solution icon of stackoverflow
Unexpected exception[NoClassDefFoundError: slick/backend/DatabaseConfig]. This is the full trace: play.api.UnexpectedException: Unexpected exception[NoClassDefFoundError: slick/backend/DatabaseConfig]

Solution icon of stackoverflow
Unexpected exception[ClassNotFoundException: play.api.libs.mailer.CommonsMailerPlugin]

Solution icon of stackoverflow
Unexpected exception[ExceptionInInitializerError: null]

Solution icon of github
Unexpected exception[ExceptionInInitializerError: null]

Solution icon of github
via GitHub by Steiny69
, 11 months ago
Unexpected exception[SQLSyntaxErrorException: ORA-00904: : invalid identifier ]

Solution icon of stackoverflow
Unexpected exception[NoSuchMethodError: com.avaje.ebean.config.ServerConfig.getConstraintNaming()Lcom/avaje/ebean/config/DbConstraintNaming;]

Solution icon of googlegroups
via Google Groups by Grzegorz Kamola, 1 year ago
Unexpected exception[SQLTimeoutException: Timeout after 1003ms of waiting for a connection.]

Stack trace

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]
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:180)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(DevServerStart.scala:131)
	at scala.Option.map(Option.scala:146)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:131)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1.apply(DevServerStart.scala:129)
	at scala.util.Success.flatMap(Try.scala:231)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:129)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1.apply(DevServerStart.scala:121)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.liftedTree1$1(Future.scala:24)
	at scala.concurrent.impl.Future$PromiseCompletingRunnable.run(Future.scala:24)
Caused by: com.google.inject.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
	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:466)
	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
	at com.google.inject.Guice.createInjector(Guice.java:96)
	at com.google.inject.Guice.createInjector(Guice.java:84)
	at play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:181)
	at play.api.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.scala:123)
	at play.api.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.scala:21)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1$$anonfun$2.apply(DevServerStart.scala:168)
	at play.core.server.DevServerStart$$anonfun$mainDev$1$$anon$1$$anonfun$get$1$$anonfun$apply$1$$anonfun$1$$anonfun$2.apply(DevServerStart.scala:164)

Caused by: java.lang.NullPointerException: null
	at com.avaje.ebean.config.dbplatform.DatabasePlatform.createDdlHandler(DatabasePlatform.java:209)
	at com.avaje.ebean.dbmigration.model.CurrentModel.handler(CurrentModel.java:150)
	at com.avaje.ebean.dbmigration.model.CurrentModel.createDdl(CurrentModel.java:141)
	at com.avaje.ebean.dbmigration.model.CurrentModel.getCreateDdl(CurrentModel.java:107)
	at play.db.ebean.EbeanDynamicEvolutions.generateEvolutionScript(EbeanDynamicEvolutions.java:93)
	at play.db.ebean.EbeanDynamicEvolutions.lambda$create$4(EbeanDynamicEvolutions.java:59)
	at java.util.HashMap.forEach(HashMap.java:1280)
	at play.db.ebean.EbeanDynamicEvolutions.create(EbeanDynamicEvolutions.java:58)
	at play.api.db.evolutions.ApplicationEvolutions.start(ApplicationEvolutions.scala:40)
	at play.api.db.evolutions.ApplicationEvolutions.<init>(ApplicationEvolutions.scala:150)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.