org.flywaydb.core.api.FlywayException: Unable to instantiate class: com.communitect.FlywayCleaner

Stack Overflow | Bill Frasure | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Custom Flyway callback in Scala

    Stack Overflow | 2 years ago | Bill Frasure
    org.flywaydb.core.api.FlywayException: Unable to instantiate class: com.communitect.FlywayCleaner

    Root Cause Analysis

    1. org.flywaydb.core.api.FlywayException

      Unable to instantiate class: com.communitect.FlywayCleaner

      at org.flywaydb.core.internal.util.ClassUtils.instantiateAll()
    2. ${project.artifactId}
      Flyway.setCallbacks
      1. org.flywaydb.core.internal.util.ClassUtils.instantiateAll(ClassUtils.java:67)
      2. org.flywaydb.core.Flyway.setCallbacks(Flyway.java:780)
      2 frames
    3. org.flywaydb.sbt
      FlywayPlugin$$anonfun$flywaySettings$35.apply
      1. org.flywaydb.sbt.FlywayPlugin$FlywayOps$.configure$extension2(FlywayPlugin.scala:246)
      2. org.flywaydb.sbt.FlywayPlugin$FlywayOps$.configure$extension0(FlywayPlugin.scala:226)
      3. org.flywaydb.sbt.FlywayPlugin$Flyway$.apply(FlywayPlugin.scala:210)
      4. org.flywaydb.sbt.FlywayPlugin$$anonfun$flywaySettings$35$$anonfun$apply$6.apply$mcV$sp(FlywayPlugin.scala:177)
      5. org.flywaydb.sbt.FlywayPlugin$$anonfun$flywaySettings$35$$anonfun$apply$6.apply(FlywayPlugin.scala:177)
      6. org.flywaydb.sbt.FlywayPlugin$$anonfun$flywaySettings$35$$anonfun$apply$6.apply(FlywayPlugin.scala:177)
      7. org.flywaydb.sbt.FlywayPlugin$.withContextClassLoader(FlywayPlugin.scala:201)
      8. org.flywaydb.sbt.FlywayPlugin$.org$flywaydb$sbt$FlywayPlugin$$withPrepared(FlywayPlugin.scala:184)
      9. org.flywaydb.sbt.FlywayPlugin$$anonfun$flywaySettings$35.apply(FlywayPlugin.scala:177)
      10. org.flywaydb.sbt.FlywayPlugin$$anonfun$flywaySettings$35.apply(FlywayPlugin.scala:177)
      10 frames
    4. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function3$$anonfun$tupled$1.apply(Function3.scala:35)
      2. scala.Function3$$anonfun$tupled$1.apply(Function3.scala:34)
      3. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      3 frames
    5. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
      1 frame
    6. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:64)
      1 frame
    7. SBT
      CompletionService$$anon$2.call
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
      4. sbt.Execute.work(Execute.scala:244)
      5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
      6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
      7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
      8. sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
      8 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      6. java.lang.Thread.run(Thread.java:744)
      6 frames