Error -java.lang.VerifyError: Cannot inherit from final class. While migrating Play to version 2.6

(Manoj) #1

Please help if anyone has solution on this.

No source available, here is the exception stack trace:
->java.lang.VerifyError: Cannot inherit from final class
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:763)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
java.net.URLClassLoader.access$100(URLClassLoader.java:73)
java.net.URLClassLoader$1.run(URLClassLoader.java:368)
java.net.URLClassLoader$1.run(URLClassLoader.java:362)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:361)
java.lang.ClassLoader.loadClass(ClassLoader.java:424)
java.lang.ClassLoader.loadClass(ClassLoader.java:357)
com.fasterxml.jackson.datatype.jdk8.Jdk8Module.setupModule(Jdk8Module.java:26) com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:525)
play.libs.Json.newDefaultMapper(Json.java:31)
play.libs.Json.(Json.java:26)
play.core.ObjectMapperProvider.get$lzycompute(ObjectMapperModule.scala:27)
play.core.ObjectMapperProvider.get(ObjectMapperModule.scala:26)
play.core.ObjectMapperProvider.get(ObjectMapperModule.scala:25) com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:81) com.google.inject.internal.BoundProviderFactory.provision(BoundProviderFactory.java:72) com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:61) com.google.inject.internal.BoundProviderFactory.get(BoundProviderFactory.java:62) com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:194) com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:205) com.google.inject.internal.InternalInjectorCreator$1.call(InternalInjectorCreator.java:199) com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1085) com.google.inject.internal.InternalInjectorCreator.loadEagerSingletons(InternalInjectorCreator.java:199) com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:180) com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)
com.google.inject.Guice.createInjector(Guice.java:99)
com.google.inject.Guice.createInjector(Guice.java:84)
play.api.inject.guice.GuiceBuilder.injector(GuiceInjectorBuilder.scala:181)
play.inject.guice.GuiceBuilder.injector(GuiceBuilder.java:221)
play.inject.guice.GuiceApplicationBuilder.build(GuiceApplicationBuilder.java:156)
play.inject.guice.GuiceApplicationLoader.load(GuiceApplicationLoader.java:34) play.api.ApplicationLoader$JavaApplicationLoaderAdapter$1.load(ApplicationLoader.scala:87) play.core.server.DevServerStart$$anon$1.$anonfun$get$6(DevServerStart.scala:171)
play.utils.Threads$.withContextClassLoader(Threads.scala:21) play.core.server.DevServerStart$$anon$1.$anonfun$get$3(DevServerStart.scala:168)
scala.Option.map(Option.scala:163) play.core.server.DevServerStart$$anon$1.$anonfun$get$2(DevServerStart.scala:133)
scala.util.Success.flatMap(Try.scala:251) play.core.server.DevServerStart$$anon$1.$anonfun$get$1(DevServerStart.scala:131)
scala.concurrent.Future$.$anonfun$apply$1(Future.scala:658)
scala.util.Success.$anonfun$map$1(Try.scala:255)
scala.util.Success.map(Try.scala:213)
scala.concurrent.Future.$anonfun$map$1(Future.scala:292)
scala.concurrent.impl.Promise.liftedTree1$1(Promise.scala:33)
scala.concurrent.impl.Promise.$anonfun$transform$1(Promise.scala:33)
scala.concurrent.impl.CallbackRunnable.run(Promise.scala:64) java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)
java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)