Getting Jackson llegalAccessError on sbt run after upgrading from 2.7.0 to 2.8.0 #13082
-
I just migrated my play project from 2.7.0 to 2.8.0. i don't include any jackson and akka related dependencies in build.sbt, using default availble akka dependencies. and now i'm facing error like this. java.lang.IllegalAccessError: class com.fasterxml.jackson.core.JsonFactoryBuilder tried to access private field com.fasterxml.jackson.core.JsonFactory.DEFAULT_ROOT_VALUE_SEPARATOR
//NOTE: don't change the name and version of this project, it's used in the build config
name := "play-java-streaming-example"
version := "1.0-SNAPSHOT"
scalaVersion := "2.13.14"
lazy val root = (project in file(".")).enablePlugins(PlayJava).disablePlugins(PlayLogback)
libraryDependencies += guice
libraryDependencies ++= Seq(caffeine)
libraryDependencies += "software.amazon.awssdk" % "ec2" % "2.17.101"
libraryDependencies += "org.projectlombok" % "lombok" % "1.18.30"
libraryDependencies += "com.opencsv" % "opencsv" % "5.7.1"
libraryDependencies ++= Seq(javaWs)
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v")
javacOptions ++= Seq("-Xlint:unchecked", "-Xlint:deprecation")
sbt.version=1.3.10
// Update the Play sbt plugin
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.8.0")
// Update the Play Ebean plugin
//addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "6.1.0") when i start play server using
|
Beta Was this translation helpful? Give feedback.
Answered by
iammohan01
Jan 23, 2025
Replies: 1 comment
-
Found that, i had a old version of jackson jars in project lib folder. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iammohan01
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found that, i had a old version of jackson jars in project lib folder.