Play2.5 Migration || java.lang.VerifyError: Cannot inherit from final class

102 views
Skip to first unread message

pri...@cashcare.in

unread,
Jun 29, 2016, 8:47:39 AM6/29/16
to play-framework
I have tried deleting .ivy folder cleaning of lib folder, however none of it helped. Clearly its issue with the dependancy, I am still not sure which of this file is causing the issue.

Settings
=================================================================================
build.sbt
=================================================================================
scalaVersion := "2.11.7"

libraryDependencies ++= Seq(
  javaJdbc,
  cache,
  javaWs,
"org.mongodb" % "mongo-java-driver" % "3.0.1",
"org.mongodb.morphia" % "morphia" % "1.0.0-rc0",
//"com.fasterxml.jackson.core" %% "jackson-core" % "2.7.2",
//"com.fasterxml.jackson.core" %% "jackson-databind" % "2.7.2",
//"com.fasterxml.jackson.core" %% "jackson-annotations" % "2.7.2",
//,   "org.mybatis" % "mybatis" % "3.3.0"
//  ,"com.typesafe.play.plugins" %% "play-plugins-redis" % "2.3.1"
"com.typesafe.play.modules" %% "play-modules-redis" % "2.4.1",
"com.typesafe.akka" %% "akka-actor" % "2.4.1"
, "uk.co.panaxiom" %% "play-jongo" % "1.0.1-jongo1.2",
"com.typesafe.akka" %% "akka-slf4j" % "2.4.1",
"com.itextpdf" % "itextpdf" % "5.4.2",
"it.innove" % "play2-pdf" % "1.2.0",
"com.itextpdf.tool" % "xmlworker" % "5.4.1"

)
=================================================================================
Plugins.sbt 
=================================================================================

addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.5.0")

// Web plugins
//addSbtPlugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.6")
addSbtPlugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3")
addSbtPlugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7")
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0")

// Play enhancer - this automatically generates getters/setters for public fields
// and rewrites accessors of these fields to use the getters/setters. Remove this
// plugin if you prefer not to have this feature, or disable on a per project
// basis using disablePlugins(PlayEnhancer) in your build.sbt
addSbtPlugin("com.typesafe.sbt" % "sbt-play-enhancer" % "1.1.0")

// Play Ebean support, to enable, uncomment this line, and enable in your build.sbt using
// enablePlugins(SbtEbean). Note, uncommenting this line will automatically bring in
// Play enhancer, regardless of whether the line above is commented out or not.
 addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "3.0.0")
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")

=================================================================================
build.properties
=================================================================================
sbt.version=0.13.11



pri...@cashcare.in

unread,
Aug 25, 2016, 10:44:22 AM8/25/16
to play-framework
As understood and applied.

Prefer a clean slate approach for such a migration.

Delete .ivy/,sbt/.m2 folders if any.
Delete lib (one of the main culprits)
in build.sbt and plugins ensure that all the dependencies are compatible with the latest play major version.

Clean compile and hope that you dont have to storm into any of such exceptions.
Reply all
Reply to author
Forward
0 new messages