I was trying to execute the scala test cases in IntelliJ using gradle with spark 3.1.1 & scala 2.12.13. But the scala tests were failing with the below jackson-databind error.
val conf = new SparkConf().setMaster("local[2]")
val spark = SparkSession
.builder()
.config(conf)
.appName("Scala Test Cases")
.getOrCreate()
spark.sparkContext.setLogLevel("ERROR")
import spark.implicits._
Error initializing SparkContext.
com.fasterxml.jackson.databind.JsonMappingException: Scala module 2.12.4 requires Jackson Databind version >= 2.12.0 and < 2.13.0
at com.fasterxml.jackson.module.scala.JacksonModule.setupModule(JacksonModule.scala:61) ~[jackson-module-scala_2.12-2.12.4.jar:2.12.4]
at com.fasterxml.jackson.module.scala.JacksonModule.setupModule$(JacksonModule.scala:46) ~[jackson-module-scala_2.12-2.12.4.jar:2.12.4]
at com.fasterxml.jackson.module.scala.DefaultScalaModule.setupModule(DefaultScalaModule.scala:17) ~[jackson-module-scala_2.12-2.12.4.jar:2.12.4]
at com.fasterxml.jackson.databind.ObjectMapper.registerModule(ObjectMapper.java:808) ~[spark-cassandra-connector_2.12-3.0.0-jdk11-pie1.0.0.jar:3.0.0-jdk11-pie1.0.0]
at org.apache.spark.ui.exec.ExecutorsPage.<init>(ExecutorsTab.scala:82) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.ui.exec.ExecutorsTab.init(ExecutorsTab.scala:41) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.ui.exec.ExecutorsTab.<init>(ExecutorsTab.scala:34) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.ui.SparkUI.initialize(SparkUI.scala:65) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.ui.SparkUI.<init>(SparkUI.scala:81) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.ui.SparkUI$.create(SparkUI.scala:184) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.SparkContext.<init>(SparkContext.scala:480) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2695) ~[spark-core_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at org.apache.spark.sql.SparkSession$Builder.$anonfun$getOrCreate$2(SparkSession.scala:956) ~[spark-sql_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at scala.Option.getOrElse(Option.scala:189) ~[scala-library-2.12.13.jar:?]
at org.apache.spark.sql.SparkSession$Builder.getOrCreate(SparkSession.scala:950) ~[spark-sql_2.12-3.1.1.15-apple.jar:3.1.1.15-apple]
at TestClass.getInputDF(TestClass.scala:597) ~[test/:?]
at TestClass.$anonfun$new$35(TestClass.scala:638) ~[test/:?]
at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.Transformer.apply(Transformer.scala:22) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.Transformer.apply(Transformer.scala:20) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1682) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.TestSuite.withFixture(TestSuite.scala:196) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.TestSuite.withFixture$(TestSuite.scala:195) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1685) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.invokeWithFixture$1(FlatSpecLike.scala:1680) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.$anonfun$runTest$1(FlatSpecLike.scala:1692) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.SuperEngine.runTestImpl(Engine.scala:289) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.runTest(FlatSpecLike.scala:1692) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.runTest$(FlatSpecLike.scala:1674) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpec.runTest(FlatSpec.scala:1685) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.$anonfun$runTests$1(FlatSpecLike.scala:1750) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:396) ~[scalatest_2.12-3.0.4.jar:?]
at scala.collection.immutable.List.foreach(List.scala:431) ~[scala-library-2.12.13.jar:?]
at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:379) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.runTests(FlatSpecLike.scala:1750) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.runTests$(FlatSpecLike.scala:1749) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpec.runTests(FlatSpec.scala:1685) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.Suite.run(Suite.scala:1147) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.Suite.run$(Suite.scala:1129) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1685) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.$anonfun$run$1(FlatSpecLike.scala:1795) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.SuperEngine.runImpl(Engine.scala:521) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.run(FlatSpecLike.scala:1795) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpecLike.run$(FlatSpecLike.scala:1793) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.FlatSpec.run(FlatSpec.scala:1685) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.SuiteRunner.run(SuiteRunner.scala:45) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13(Runner.scala:1340) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.$anonfun$doRunRunRunDaDoRunRun$13$adapted(Runner.scala:1334) ~[scalatest_2.12-3.0.4.jar:?]
at scala.collection.immutable.List.foreach(List.scala:431) ~[scala-library-2.12.13.jar:?]
at org.scalatest.tools.Runner$.doRunRunRunDaDoRunRun(Runner.scala:1334) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24(Runner.scala:1031) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.$anonfun$runOptionallyWithPassFailReporter$24$adapted(Runner.scala:1010) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.withClassLoaderAndDispatchReporter(Runner.scala:1500) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.runOptionallyWithPassFailReporter(Runner.scala:1010) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner$.run(Runner.scala:850) ~[scalatest_2.12-3.0.4.jar:?]
at org.scalatest.tools.Runner.run(Runner.scala) ~[scalatest_2.12-3.0.4.jar:?]
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.runScalaTest2or3(ScalaTestRunner.java:38) ~[runners.jar:?]
at org.jetbrains.plugins.scala.testingSupport.scalaTest.ScalaTestRunner.main(ScalaTestRunner.java:25) ~[runners.jar:?]
2021-08-12 15:24:54,556 INFO o.a.s.i.Logging [dispatcher-event-loop-0] MapOutputTrackerMasterEndpoint stopped!
I'm importing scalatest & holdenkarau in build.gradle:
testImplementation("org.scalatest:scalatest_2.12:3.0.4") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
}
testImplementation("com.holdenkarau:spark-testing-base_2.12:3.0.1_1.1.0"){
exclude group: 'org.apache.xbean', module: 'xbean-asm6'
}
These tests used to run fine when using spark 2.4.7 & scala 2.11.12 with below dependency versions.
testCompile("org.scalatest:scalatest_2.11:3.0.4")
testCompile("com.holdenkarau:spark-testing-base_2.11:2.4.5_0.14.0"){
exclude group: 'org.apache.xbean', module: 'xbean-asm6'
}
Not sure what am I missing here. I tried force updating the jackson libraries, but still it is not resolving the issue.
configurations.configureEach {
resolutionStrategy {
force "com.fasterxml.jackson.module:jackson-module-scala_2.12:2.12.4"
force "com.fasterxml.jackson.core:jackson-databind:2.12.4"
force "com.fasterxml.jackson.core:jackson-core:2.12.4"
force "com.fasterxml.jackson.core:jackson-annotations:2.12.4"
force "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.12.4"
force "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:2.12.4"
force "com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:2.12.4"
force "org.scalatest:scalatest_2.12:3.0.4"
}
}
I added the below properties in dependency section that took care of jackson libraries.
implementation ('com.fasterxml.jackson.core:jackson-databind') {
version {
strictly "2.12.4"
}
}
implementation ('com.fasterxml.jackson.core:jackson-core') {
version {
strictly "2.12.4"
}
}
implementation ('com.fasterxml.jackson.core:jackson-annotations') {
version {
strictly "2.12.4"
}
}
Ref: Scala module requiring specific version of data bind for Spark
Related
I type play, play run, play help run, or anything really (though I can run play --version), and I get
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
java.lang.UnsupportedOperationException: Position.start on class scala.reflect.internal.util.OffsetPosition
at scala.reflect.internal.util.Position.start(Position.scala:114)
at sbt.internals.parser.SbtParser.sbt$internals$parser$SbtParser$$convertStatement$1(SbtParser.scala:148)
at sbt.internals.parser.SbtParser$$anonfun$4.apply(SbtParser.scala:153)
at sbt.internals.parser.SbtParser$$anonfun$4.apply(SbtParser.scala:153)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at sbt.internals.parser.SbtParser.splitExpressions(SbtParser.scala:153)
at sbt.internals.parser.SbtParser.<init>(SbtParser.scala:58)
at sbt.EvaluateConfigurations$.splitExpressions(EvaluateConfigurations.scala:226)
at sbt.EvaluateConfigurations$.parseConfiguration(EvaluateConfigurations.scala:69)
at sbt.EvaluateConfigurations$.evaluateSbtFile(EvaluateConfigurations.scala:106)
at sbt.Load$.sbt$Load$$loadSettingsFile$1(Load.scala:712)
at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:717)
at sbt.Load$$anonfun$sbt$Load$$memoLoadSettingsFile$1$1.apply(Load.scala:716)
at scala.collection.MapLike$class.getOrElse(MapLike.scala:128)
at scala.collection.AbstractMap.getOrElse(Map.scala:58)
at sbt.Load$.sbt$Load$$memoLoadSettingsFile$1(Load.scala:716)
at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:723)
at sbt.Load$$anonfun$loadFiles$1$2.apply(Load.scala:723)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:244)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:244)
at scala.collection.AbstractTraversable.map(Traversable.scala:105)
at sbt.Load$.loadFiles$1(Load.scala:723)
at sbt.Load$.discoverProjects(Load.scala:734)
at sbt.Load$.discover$1(Load.scala:545)
at sbt.Load$.loadTransitive(Load.scala:574)
at sbt.Load$.loadProjects$1(Load.scala:442)
at sbt.Load$.loadUnit(Load.scala:446)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:334)
at sbt.Load$.loadURI(Load.scala:289)
at sbt.Load$.load(Load.scala:285)
at sbt.Load$.load(Load.scala:276)
at sbt.Load$.apply(Load.scala:130)
at sbt.GlobalPlugin$.build(GlobalPlugin.scala:33)
at sbt.GlobalPlugin$.load(GlobalPlugin.scala:39)
at sbt.Load$.loadGlobal(Load.scala:88)
at sbt.Load$.defaultWithGlobal(Load.scala:63)
at sbt.Load$.defaultLoad(Load.scala:34)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:98)
at sbt.MainLoop$.run(MainLoop.scala:91)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
at sbt.MainLoop$.runLogged(MainLoop.scala:24)
at sbt.StandardMain$.runManaged(Main.scala:53)
at sbt.xMain.run(Main.scala:28)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:57)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:77)
at xsbt.boot.Launch$.run(Launch.scala:57)
at xsbt.boot.Launch$$anonfun$explicit$1.apply(Launch.scala:45)
at xsbt.boot.Launch$.launch(Launch.scala:65)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Boot$.runImpl(Boot.scala:32)
at xsbt.boot.Boot$.main(Boot.scala:21)
at xsbt.boot.Boot.main(Boot.scala)
[error] java.lang.UnsupportedOperationException: Position.start on class scala.reflect.internal.util.OffsetPosition
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
I've tried a couple different JVMs (1.8, 11) and I get the same.
I have Scala 2.13.6.
$ play --version
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
sbt launcher version 0.13.0
Any ideas?
I am getting this error when I try to run spark test in local :
Exception in thread "ScalaTest-dispatcher" java.lang.NullPointerException
at org.apache.spark.sql.internal.SQLConf$$anonfun$14.apply(SQLConf.scala:133)
at org.apache.spark.sql.internal.SQLConf$$anonfun$14.apply(SQLConf.scala:133)
at scala.Option.map(Option.scala:146)
at org.apache.spark.sql.internal.SQLConf$.get(SQLConf.scala:133)
at org.apache.spark.sql.types.DataType.sameType(DataType.scala:88)
at org.apache.spark.sql.catalyst.analysis.TypeCoercion$$anonfun$haveSameType$1.apply(TypeCoercion.scala:288)
at org.apache.spark.sql.catalyst.analysis.TypeCoercion$$anonfun$haveSameType$1.apply(TypeCoercion.scala:288)
at scala.collection.LinearSeqOptimized$class.forall(LinearSeqOptimized.scala:83)
at scala.collection.immutable.List.forall(List.scala:84)
at org.apache.spark.sql.catalyst.analysis.TypeCoercion$.haveSameType(TypeCoercion.scala:288)
at org.apache.spark.sql.catalyst.expressions.ComplexTypeMergingExpression$class.dataTypeCheck(Expression.scala:717)
at org.apache.spark.sql.catalyst.expressions.CaseWhen.dataTypeCheck(conditionalExpressions.scala:121)
at org.apache.spark.sql.catalyst.expressions.ComplexTypeMergingExpression$class.dataType(Expression.scala:723)
at org.apache.spark.sql.catalyst.expressions.CaseWhen.dataType(conditionalExpressions.scala:121)
at org.apache.spark.sql.catalyst.expressions.Alias.toAttribute(namedExpressions.scala:176)
at org.apache.spark.sql.catalyst.plans.logical.Project$$anonfun$output$1.apply(basicLogicalOperators.scala:52)
at org.apache.spark.sql.catalyst.plans.logical.Project$$anonfun$output$1.apply(basicLogicalOperators.scala:52)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:48)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at org.apache.spark.sql.catalyst.plans.logical.Project.output(basicLogicalOperators.scala:52)
at org.apache.spark.sql.catalyst.plans.logical.Join.output(basicLogicalOperators.scala:311)
at org.apache.spark.sql.catalyst.plans.logical.Join.output(basicLogicalOperators.scala:311)
at org.apache.spark.sql.catalyst.plans.QueryPlan$$anonfun$inputSet$1.apply(QueryPlan.scala:51)
at org.apache.spark.sql.catalyst.plans.QueryPlan$$anonfun$inputSet$1.apply(QueryPlan.scala:51)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:241)
at scala.collection.immutable.List.foreach(List.scala:392)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:241)
at scala.collection.immutable.List.flatMap(List.scala:355)
at org.apache.spark.sql.catalyst.plans.QueryPlan.inputSet(QueryPlan.scala:51)
at org.apache.spark.sql.catalyst.plans.QueryPlan.missingInput(QueryPlan.scala:63)
at org.apache.spark.sql.catalyst.plans.QueryPlan.statePrefix(QueryPlan.scala:173)
at org.apache.spark.sql.catalyst.plans.logical.LogicalPlan.statePrefix(LogicalPlan.scala:65)
at org.apache.spark.sql.catalyst.plans.QueryPlan.simpleString(QueryPlan.scala:175)
at org.apache.spark.sql.catalyst.plans.QueryPlan.verboseString(QueryPlan.scala:177)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:551)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at scala.collection.immutable.List.foreach(List.scala:392)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at scala.collection.immutable.List.foreach(List.scala:392)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:571)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at scala.collection.immutable.List.foreach(List.scala:392)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode$$anonfun$generateTreeString$3.apply(TreeNode.scala:569)
at scala.collection.immutable.List.foreach(List.scala:392)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:569)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:571)
at org.apache.spark.sql.catalyst.trees.TreeNode.generateTreeString(TreeNode.scala:571)
at org.apache.spark.sql.catalyst.trees.TreeNode.treeString(TreeNode.scala:475)
at org.apache.spark.sql.catalyst.trees.TreeNode.treeString(TreeNode.scala:472)
at org.apache.spark.sql.catalyst.trees.TreeNode.toString(TreeNode.scala:469)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at scala.StringContext.standardInterpolator(StringContext.scala:125)
at scala.StringContext.s(StringContext.scala:95)
at org.apache.spark.sql.AnalysisException$$anonfun$1.apply(AnalysisException.scala:46)
at org.apache.spark.sql.AnalysisException$$anonfun$1.apply(AnalysisException.scala:46)
at scala.Option.map(Option.scala:146)
at org.apache.spark.sql.AnalysisException.getMessage(AnalysisException.scala:46)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:392)
at java.lang.Throwable.toString(Throwable.java:481)
at java.lang.String.valueOf(String.java:2994)
at scala.collection.mutable.StringBuilder.append(StringBuilder.scala:200)
at scala.collection.TraversableOnce$$anonfun$addString$1.apply(TraversableOnce.scala:359)
at scala.collection.Iterator$class.foreach(Iterator.scala:891)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
at scala.collection.TraversableOnce$class.addString(TraversableOnce.scala:357)
at scala.collection.AbstractIterator.addString(Iterator.scala:1334)
at scala.collection.TraversableOnce$class.mkString(TraversableOnce.scala:323)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1334)
at scala.runtime.ScalaRunTime$._toString(ScalaRunTime.scala:166)
at scala.Some.toString(Option.scala:333)
at java.lang.String.valueOf(String.java:2994)
at scala.collection.mutable.StringBuilder.append(StringBuilder.scala:200)
at scala.collection.TraversableOnce$$anonfun$addString$1.apply(TraversableOnce.scala:364)
at scala.collection.Iterator$class.foreach(Iterator.scala:891)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1334)
at scala.collection.TraversableOnce$class.addString(TraversableOnce.scala:357)
at scala.collection.AbstractIterator.addString(Iterator.scala:1334)
at scala.collection.TraversableOnce$class.mkString(TraversableOnce.scala:323)
at scala.collection.AbstractIterator.mkString(Iterator.scala:1334)
at scala.runtime.ScalaRunTime$._toString(ScalaRunTime.scala:166)
at org.scalatest.events.TestFailed.toString(Event.scala:472)
at java.text.MessageFormat.subformat(MessageFormat.java:1280)
at java.text.MessageFormat.format(MessageFormat.java:865)
at java.text.Format.format(Format.java:157)
at org.scalatest.Resources$.makeString(Resources.scala:35)
at org.scalatest.Resources$.apply(Resources.scala:38)
at org.scalatest.DispatchReporter$Propagator.run(DispatchReporter.scala:244)
at java.lang.Thread.run(Thread.java:748)
My Maven dependencies :
<dependency>
<groupId>org.scalatest</groupId>
<artifactId>scalatest_2.11</artifactId>
<version>2.1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.holdenkarau</groupId>
<artifactId>spark-testing-base_2.11</artifactId>
<version>2.4.4_0.14.0</version>
<scope>test</scope>
</dependency>
I get this problem only during test.
I get the latest intellij version : 2020.1.4
I have followed this post's answer but that change nothing : Why am I getting this error when running Scala 2.13 tests in IntelliJ, but not with Scala 2.12?
: Select the checkbox Delegate IDE build/run actions to Maven
My problem come from a spark error about union 2 dataframe that i can't, but the message is not explict.
If you have the same problem, you can try your test with a local spark session.
remove DataFrameSuiteBase from your test class and instead make a local spark session:
Before :
class A extends FunSuite with BeforeAndAfterAll with DataFrameSuiteBase {
test("MethodB") {
val df = spark.read()...
}
}
After :
class A extends FunSuite with BeforeAndAfterAll {
val spark = SparkSession.builder().master("local[*]").appName("test").GetOrCreate()
test("MethodB") {
val df = spark.read()...
}
}
i am trying to run a Akka application in a cluster. Actually i have to Linux machines. Both have the same setup with sbt 0.13.13 and scala 2.10.4, the same Java, even the same kernel version.
For testing the application i have a exact copy of the project on both the machines. When i compile on the first machine, everything works fine. But as soon as i try to compile with
$ sbt compile
on the second machine i get following error messege:
sbt.InvalidComponent: Could not find required component 'compiler-interface-src'
at sbt.ComponentManager.invalid(ComponentManager.scala:57)
at sbt.ComponentManager.sbt$ComponentManager$$notFound$1(ComponentManager.scala:34)
at sbt.ComponentManager.sbt$ComponentManager$$createAndCache$1(ComponentManager.scala:37)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:27)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:26)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:38)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockGlobalCache(ComponentManager.scala:49)
at sbt.ComponentManager.sbt$ComponentManager$$fromGlobal$1(ComponentManager.scala:25)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager.sbt$ComponentManager$$getOrElse$1(ComponentManager.scala:32)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:48)
at xsbt.boot.Locks$.apply0(Locks.scala:38)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockLocalCache(ComponentManager.scala:47)
at sbt.ComponentManager.files(ComponentManager.scala:44)
at sbt.compiler.ComponentCompiler$$anonfun$compileAndInstall$1.apply(ComponentCompiler.scala:61)
at sbt.compiler.ComponentCompiler$$anonfun$compileAndInstall$1.apply(ComponentCompiler.scala:58)
at sbt.IO$.withTemporaryDirectory(IO.scala:285)
at sbt.compiler.ComponentCompiler.compileAndInstall(ComponentCompiler.scala:58)
at sbt.compiler.ComponentCompiler$$anonfun$getLocallyCompiled$1.apply$mcV$sp(ComponentCompiler.scala:47)
at sbt.IfMissing$Define.apply(ComponentManager.scala:77)
at sbt.ComponentManager.sbt$ComponentManager$$createAndCache$1(ComponentManager.scala:39)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:27)
at sbt.ComponentManager$$anonfun$sbt$ComponentManager$$fromGlobal$1$1.apply(ComponentManager.scala:26)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
at xsbt.boot.Using$.withResource(Using.scala:11)
at xsbt.boot.Using$.apply(Using.scala:10)
at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:102)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
at xsbt.boot.Locks$.apply0(Locks.scala:38)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockGlobalCache(ComponentManager.scala:49)
at sbt.ComponentManager.sbt$ComponentManager$$fromGlobal$1(ComponentManager.scala:25)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1$$anonfun$apply$2.apply(ComponentManager.scala:44)
at sbt.ComponentManager.sbt$ComponentManager$$getOrElse$1(ComponentManager.scala:32)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anonfun$files$1.apply(ComponentManager.scala:44)
at sbt.ComponentManager$$anon$1.call(ComponentManager.scala:50)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:98)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:81)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:102)
at xsbt.boot.Using$.withResource(Using.scala:11)
at xsbt.boot.Using$.apply(Using.scala:10)
at xsbt.boot.Locks$GlobalLock.withFileLock(Locks.scala:102)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:62)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:52)
at xsbt.boot.Locks$.apply0(Locks.scala:38)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at sbt.ComponentManager.lock(ComponentManager.scala:50)
at sbt.ComponentManager.lockLocalCache(ComponentManager.scala:47)
at sbt.ComponentManager.files(ComponentManager.scala:44)
at sbt.ComponentManager.file(ComponentManager.scala:53)
at sbt.compiler.ComponentCompiler.getLocallyCompiled(ComponentCompiler.scala:47)
at sbt.compiler.ComponentCompiler.apply(ComponentCompiler.scala:37)
at sbt.compiler.ComponentCompiler$$anon$1.apply(ComponentCompiler.scala:25)
at sbt.compiler.AnalyzingCompiler.loader(AnalyzingCompiler.scala:112)
at sbt.compiler.AnalyzingCompiler.getInterfaceClass(AnalyzingCompiler.scala:117)
at sbt.compiler.AnalyzingCompiler.call(AnalyzingCompiler.scala:99)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:57)
at sbt.compiler.AnalyzingCompiler.newCachedCompiler(AnalyzingCompiler.scala:52)
at sbt.compiler.CompilerCache$$anon$2.apply(CompilerCache.scala:50)
at sbt.compiler.AnalyzingCompiler.compile(AnalyzingCompiler.scala:39)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply$mcV$sp(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile$$anonfun$3$$anonfun$compileScala$1$1.apply(AggressiveCompile.scala:98)
at sbt.compiler.AggressiveCompile.sbt$compiler$AggressiveCompile$$timed(AggressiveCompile.scala:159)
at sbt.compiler.AggressiveCompile$$anonfun$3.compileScala$1(AggressiveCompile.scala:97)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:142)
at sbt.compiler.AggressiveCompile$$anonfun$3.apply(AggressiveCompile.scala:86)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:38)
at sbt.inc.IncrementalCompile$$anonfun$doCompile$1.apply(Compile.scala:36)
at sbt.inc.Incremental$.cycle(Incremental.scala:73)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:33)
at sbt.inc.Incremental$$anonfun$1.apply(Incremental.scala:32)
at sbt.inc.Incremental$.manageClassfiles(Incremental.scala:41)
at sbt.inc.Incremental$.compile(Incremental.scala:32)
at sbt.inc.IncrementalCompile$.apply(Compile.scala:26)
at sbt.compiler.AggressiveCompile.compile2(AggressiveCompile.scala:150)
at sbt.compiler.AggressiveCompile.compile1(AggressiveCompile.scala:70)
at sbt.compiler.AggressiveCompile.apply(AggressiveCompile.scala:45)
at sbt.Compiler$.apply(Compiler.scala:70)
at sbt.Defaults$.sbt$Defaults$$compileTaskImpl(Defaults.scala:736)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at sbt.Defaults$$anonfun$compileTask$1.apply(Defaults.scala:730)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
[error] (compile:compile) sbt.InvalidComponent: Could not find required component 'compiler-interface-src'
[error] Total time: 1 s, completed 02.06.2017 15:52:08
I tried the only suggestions i found on this thing called internet:
I removed .ivy2 .m2 .sbt folders
Anyone having a clue what is going wrong there?
An alternative option is to update sbt manually. Follow the instructions on the following page for the package type that your distribution uses: http://www.scala-sbt.org/download.html
Had the same error.
After deleting these directories it started working again.
~/.m2
~/.ivy2
On windows, they're located under %userprofile%
I just cloned a repo and installed scala version 2.11.8 and did brew install sbt. The versions specified in the repo are - scala version 2.11.8 and sbt version 0.13.13. The only difference is I have sbt version 0.13.15. Still - when I execute sbt in the root of the repo, I get the error :
sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
at sbt.PluginDiscovery$.incompatiblePlugins(PluginDiscovery.scala:145)
at sbt.PluginDiscovery$.loadModules(PluginDiscovery.scala:135)
at sbt.PluginDiscovery$.binarySourceModules(PluginDiscovery.scala:124)
at sbt.PluginDiscovery$.discover$1(PluginDiscovery.scala:28)
at sbt.PluginDiscovery$.discoverAll(PluginDiscovery.scala:38)
at sbt.Load$.loadPlugins(Load.scala:900)
at sbt.Load$.loadPluginDefinition(Load.scala:857)
at sbt.Load$.buildPlugins(Load.scala:852)
at sbt.Load$.plugins(Load.scala:840)
at sbt.Load$$anonfun$loadUnit$1$$anonfun$34.apply(Load.scala:465)
at sbt.Load$$anonfun$loadUnit$1$$anonfun$34.apply(Load.scala:465)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$$anonfun$loadUnit$1.apply(Load.scala:464)
at sbt.Load$$anonfun$loadUnit$1.apply(Load.scala:459)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$.loadUnit(Load.scala:459)
at sbt.Load$$anonfun$25$$anonfun$apply$14.apply(Load.scala:311)
at sbt.Load$$anonfun$25$$anonfun$apply$14.apply(Load.scala:310)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:365)
at sbt.Load$.loadURI(Load.scala:320)
at sbt.Load$.load(Load.scala:316)
at sbt.Load$.load(Load.scala:305)
at sbt.Load$$anonfun$4.apply(Load.scala:146)
at sbt.Load$$anonfun$4.apply(Load.scala:146)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$.apply(Load.scala:146)
at sbt.Load$.defaultLoad(Load.scala:39)
at sbt.BuiltinCommands$.liftedTree1$1(Main.scala:496)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:496)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:488)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:488)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$.process(Command.scala:93)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:96)
at sbt.MainLoop$.run(MainLoop.scala:89)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)
at sbt.MainLoop$.runLogged(MainLoop.scala:22)
at sbt.StandardMain$.runManaged(Main.scala:57)
at sbt.xMain.run(Main.scala:29)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.UnsupportedClassVersionError: com/typesafe/sbt/SbtNativePackager$ : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at sbt.ModuleUtilities$.getObject(ModuleUtilities.scala:14)
at sbt.ModuleUtilities$.getCheckedObject(ModuleUtilities.scala:20)
at sbt.ModuleUtilities$$anonfun$getCheckedObjects$1.apply(ModuleUtilities.scala:23)
at sbt.ModuleUtilities$$anonfun$getCheckedObjects$1.apply(ModuleUtilities.scala:23)
at scala.collection.immutable.Stream.map(Stream.scala:376)
at sbt.ModuleUtilities$.getCheckedObjects(ModuleUtilities.scala:23)
at sbt.PluginDiscovery$.loadModules(PluginDiscovery.scala:130)
at sbt.PluginDiscovery$.binarySourceModules(PluginDiscovery.scala:124)
at sbt.PluginDiscovery$.discover$1(PluginDiscovery.scala:28)
at sbt.PluginDiscovery$.discoverAll(PluginDiscovery.scala:38)
at sbt.Load$.loadPlugins(Load.scala:900)
at sbt.Load$.loadPluginDefinition(Load.scala:857)
at sbt.Load$.buildPlugins(Load.scala:852)
at sbt.Load$.plugins(Load.scala:840)
at sbt.Load$$anonfun$loadUnit$1$$anonfun$34.apply(Load.scala:465)
at sbt.Load$$anonfun$loadUnit$1$$anonfun$34.apply(Load.scala:465)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$$anonfun$loadUnit$1.apply(Load.scala:464)
at sbt.Load$$anonfun$loadUnit$1.apply(Load.scala:459)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$.loadUnit(Load.scala:459)
at sbt.Load$$anonfun$25$$anonfun$apply$14.apply(Load.scala:311)
at sbt.Load$$anonfun$25$$anonfun$apply$14.apply(Load.scala:310)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:365)
at sbt.Load$.loadURI(Load.scala:320)
at sbt.Load$.load(Load.scala:316)
at sbt.Load$.load(Load.scala:305)
at sbt.Load$$anonfun$4.apply(Load.scala:146)
at sbt.Load$$anonfun$4.apply(Load.scala:146)
at sbt.Load$.timed(Load.scala:1025)
at sbt.Load$.apply(Load.scala:146)
at sbt.Load$.defaultLoad(Load.scala:39)
at sbt.BuiltinCommands$.liftedTree1$1(Main.scala:496)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:496)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:488)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:488)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$.process(Command.scala:93)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:96)
at sbt.MainLoop$.run(MainLoop.scala:89)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)
at sbt.MainLoop$.runLogged(MainLoop.scala:22)
at sbt.StandardMain$.runManaged(Main.scala:57)
at sbt.xMain.run(Main.scala:29)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
[error] sbt.IncompatiblePluginsException: Binary incompatibility in plugins detected.
[error] Use 'last' for the full log.
Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? q
Can anyone help what steps should I take to solve this issue?
Caused by: java.lang.UnsupportedClassVersionError:
com/typesafe/sbt/SbtNativePackager$ : Unsupported major.minor version
51.0
Check java version. Your installed version is lower than sbt-native-packager requires.
I am trying to run the project activator-hello-play-2_3-scala-master (available at typesafe's git repo) but I am getting this error:
java.lang.NoSuchMethodError:com.typesafe.sbt.web.Import$WebKeys$.pipelineStages()Lsbt/SettingKey
Even if I run templates such as hello-play-scala Framework 2.3 from activator ui, I get the same error.
I am using activator 1.3.4-minimal. Could you please suggest what might be going wrong?
Here is my complete stack trace:
java.lang.NoSuchMethodError: com.typesafe.sbt.web.Import$WebKeys$.pipelineStages()Lsbt/SettingKey;
at com.typesafe.sbt.gzip.SbtGzip$.projectSettings(SbtGzip.scala:32)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
at sbt.Load$$anonfun$autoPluginSettings$1$1.apply(Load.scala:666)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.TraversableLike$$anonfun$flatMap$1.apply(TraversableLike.scala:251)
at scala.collection.immutable.List.foreach(List.scala:318)
at scala.collection.TraversableLike$class.flatMap(TraversableLike.scala:251)
at scala.collection.AbstractTraversable.flatMap(Traversable.scala:105)
at sbt.Load$.autoPluginSettings$1(Load.scala:666)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:681)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
at sbt.Load$$anonfun$sbt$Load$$expandSettings$1$2.apply(Load.scala:682)
at scala.collection.IndexedSeqOptimized$class.foldl(IndexedSeqOptimized.scala:51)
at scala.collection.IndexedSeqOptimized$class.foldLeft(IndexedSeqOptimized.scala:60)
at scala.collection.mutable.WrappedArray.foldLeft(WrappedArray.scala:34)
at scala.collection.TraversableOnce$class.$div$colon(TraversableOnce.scala:138)
at scala.collection.AbstractTraversable.$div$colon(Traversable.scala:105)
at sbt.Load$.sbt$Load$$expandSettings$1(Load.scala:682)
at sbt.Load$.resolveProject(Load.scala:684)
at sbt.Load$.finalizeProject$1(Load.scala:549)
at sbt.Load$.loadTransitive(Load.scala:577)
at sbt.Load$.loadProjects$1(Load.scala:442)
at sbt.Load$.loadUnit(Load.scala:446)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.Load$$anonfun$18$$anonfun$apply$11.apply(Load.scala:281)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:91)
at sbt.BuildLoader$$anonfun$componentLoader$1$$anonfun$apply$4$$anonfun$apply$5$$anonfun$apply$6.apply(BuildLoader.scala:90)
at sbt.BuildLoader.apply(BuildLoader.scala:140)
at sbt.Load$.loadAll(Load.scala:334)
at sbt.Load$.loadURI(Load.scala:289)
at sbt.Load$.load(Load.scala:285)
at sbt.Load$.load(Load.scala:276)
at sbt.Load$.apply(Load.scala:130)
at sbt.Load$.defaultLoad(Load.scala:36)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:481)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:475)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:58)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:60)
at sbt.Command$.process(Command.scala:92)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:98)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:98)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:98)
at sbt.MainLoop$.run(MainLoop.scala:91)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:70)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:65)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:65)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:48)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:32)
at sbt.MainLoop$.runLogged(MainLoop.scala:24)
at sbt.StandardMain$.runManaged(Main.scala:53)
at sbt.xMain.run(Main.scala:28)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)