在学习flink写wordCount时报错

Error:scalac: Error: scala.collection.mutable.Set$.apply(Lscala/collection/Seq;)Lscala/collection/GenTraversable;
java.lang.NoSuchMethodError: scala.collection.mutable.Set$.apply(Lscala/collection/Seq;)Lscala/collection/GenTraversable;
at org.apache.flink.api.scala.codegen.TypeAnalyzer.$init$(TypeAnalyzer.scala:37)
at org.apache.flink.api.scala.codegen.MacroContextHolder$$anon$1.(MacroContextHolder.scala:30)
at org.apache.flink.api.scala.codegen.MacroContextHolder$.newMacroHelper(MacroContextHolder.scala:30)
at org.apache.flink.api.scala.typeutils.TypeUtils$.createTypeInfo(TypeUtils.scala:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers.$anonfun$resolveJavaReflectionRuntime$6(JavaReflectionRuntimes.scala:51)
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:758)
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime$(Macros.scala:734)
at scala.tools.nsc.Global$$anon$5.macroExpandWithRuntime(Global.scala:483)
at scala.tools.nsc.typechecker.Macros$MacroExpander.$anonfun$expand$1(Macros.scala:564)
at scala.tools.nsc.Global.withInfoLevel(Global.scala:226)
at scala.tools.nsc.typechecker.Macros$MacroExpander.expand(Macros.scala:557)
at scala.tools.nsc.typechecker.Macros$MacroExpander.apply(Macros.scala:544)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:719)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand$(Macros.scala:717)
at scala.tools.nsc.Global$$anon$5.standardMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:456)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:410)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand$(AnalyzerPlugins.scala:453)
at scala.tools.nsc.Global$$anon$5.pluginsMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Macros.macroExpand(Macros.scala:708)
at scala.tools.nsc.typechecker.Macros.macroExpand$(Macros.scala:701)
at scala.tools.nsc.Global$$anon$5.macroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Macros$$anon$4.transform(Macros.scala:898)
at scala.tools.nsc.typechecker.Macros.macroExpandAll(Macros.scala:906)
at scala.tools.nsc.typechecker.Macros.macroExpandAll$(Macros.scala:887)
at scala.tools.nsc.Global$$anon$5.macroExpandAll(Global.scala:483)
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime(Macros.scala:743)
at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime$(Macros.scala:734)
at scala.tools.nsc.Global$$anon$5.macroExpandWithRuntime(Global.scala:483)
at scala.tools.nsc.typechecker.Macros$MacroExpander.$anonfun$expand$1(Macros.scala:564)
at scala.tools.nsc.Global.withInfoLevel(Global.scala:226)
at scala.tools.nsc.typechecker.Macros$MacroExpander.expand(Macros.scala:557)
at scala.tools.nsc.typechecker.Macros$MacroExpander.apply(Macros.scala:544)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:719)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand$(Macros.scala:717)
at scala.tools.nsc.Global$$anon$5.standardMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:456)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:410)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand$(AnalyzerPlugins.scala:453)
at scala.tools.nsc.Global$$anon$5.pluginsMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Macros.macroExpand(Macros.scala:708)
at scala.tools.nsc.typechecker.Macros.macroExpand$(Macros.scala:701)
at scala.tools.nsc.Global$$anon$5.macroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Macros$DefMacroExpander.onDelayed(Macros.scala:691)
at scala.tools.nsc.typechecker.Macros$MacroExpander.$anonfun$expand$1(Macros.scala:578)
at scala.tools.nsc.Global.withInfoLevel(Global.scala:226)
at scala.tools.nsc.typechecker.Macros$MacroExpander.expand(Macros.scala:557)
at scala.tools.nsc.typechecker.Macros$MacroExpander.apply(Macros.scala:544)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand(Macros.scala:719)
at scala.tools.nsc.typechecker.Macros.standardMacroExpand$(Macros.scala:717)
at scala.tools.nsc.Global$$anon$5.standardMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:456)
at scala.tools.nsc.typechecker.AnalyzerPlugins$$anon$10.default(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.invoke(AnalyzerPlugins.scala:410)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand(AnalyzerPlugins.scala:453)
at scala.tools.nsc.typechecker.AnalyzerPlugins.pluginsMacroExpand$(AnalyzerPlugins.scala:453)
at scala.tools.nsc.Global$$anon$5.pluginsMacroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Macros.macroExpand(Macros.scala:708)
at scala.tools.nsc.typechecker.Macros.macroExpand$(Macros.scala:701)
at scala.tools.nsc.Global$$anon$5.macroExpand(Global.scala:483)
at scala.tools.nsc.typechecker.Typers$Typer.vanillaAdapt$1(Typers.scala:1212)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1277)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1250)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1270)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit1(Implicits.scala:866)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.typedImplicit0(Implicits.scala:803)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.scala$tools$nsc$typechecker$Implicits$ImplicitSearch$$typedImplicit(Implicits.scala:622)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.rankImplicits(Implicits.scala:1213)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch$ImplicitComputation.findBest(Implicits.scala:1248)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.searchImplicit(Implicits.scala:1305)
at scala.tools.nsc.typechecker.Implicits$ImplicitSearch.bestImplicit(Implicits.scala:1704)
at scala.tools.nsc.typechecker.Implicits.inferImplicit1(Implicits.scala:112)
at scala.tools.nsc.typechecker.Implicits.inferImplicit(Implicits.scala:91)
at scala.tools.nsc.typechecker.Implicits.inferImplicit$(Implicits.scala:88)
at scala.tools.nsc.Global$$anon$5.inferImplicit(Global.scala:483)
at scala.tools.nsc.typechecker.Implicits.inferImplicitFor(Implicits.scala:46)
at scala.tools.nsc.typechecker.Implicits.inferImplicitFor$(Implicits.scala:45)
at scala.tools.nsc.Global$$anon$5.inferImplicitFor(Global.scala:483)
at scala.tools.nsc.typechecker.Typers$Typer.applyImplicitArgs(Typers.scala:270)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$adapt$1(Typers.scala:879)
at scala.tools.nsc.typechecker.Typers$Typer.adaptToImplicitMethod$1(Typers.scala:490)
at scala.tools.nsc.typechecker.Typers$Typer.adapt(Typers.scala:1273)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5900)
at scala.tools.nsc.typechecker.Typers$Typer.computeType(Typers.scala:5961)
at scala.tools.nsc.typechecker.Namers$Namer.assignTypeToTree(Namers.scala:1120)
at scala.tools.nsc.typechecker.Namers$Namer.valDefSig(Namers.scala:1716)
at scala.tools.nsc.typechecker.Namers$Namer.memberSig(Namers.scala:1891)
at scala.tools.nsc.typechecker.Namers$Namer.typeSig(Namers.scala:1855)
at scala.tools.nsc.typechecker.Namers$Namer$MonoTypeCompleter.completeImpl(Namers.scala:867)
at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter.complete(Namers.scala:2040)
at scala.tools.nsc.typechecker.Namers$LockingTypeCompleter.complete$(Namers.scala:2038)
at scala.tools.nsc.typechecker.Namers$TypeCompleterBase.complete(Namers.scala:2033)
at scala.reflect.internal.Symbols$Symbol.completeInfo(Symbols.scala:1544)
at scala.reflect.internal.Symbols$Symbol.info(Symbols.scala:1517)
at scala.reflect.internal.Symbols$Symbol.initialize(Symbols.scala:1691)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5485)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5886)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5950)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedBlock(Typers.scala:2536)
at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5815)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5850)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5886)
at scala.tools.nsc.typechecker.Typers$Typer.typedDefDef(Typers.scala:6141)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5793)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5886)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5950)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedTemplate(Typers.scala:2049)
at scala.tools.nsc.typechecker.Typers$Typer.typedModuleDef(Typers.scala:1924)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5795)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5886)
at scala.tools.nsc.typechecker.Typers$Typer.typedStat$1(Typers.scala:5950)
at scala.tools.nsc.typechecker.Typers$Typer.$anonfun$typedStats$10(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedStats(Typers.scala:3394)
at scala.tools.nsc.typechecker.Typers$Typer.typedPackageDef$1(Typers.scala:5494)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5797)
at scala.tools.nsc.typechecker.Typers$Typer.typed(Typers.scala:5886)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.apply(Analyzer.scala:115)
at scala.tools.nsc.Global$GlobalPhase.applyPhase(Global.scala:452)
at scala.tools.nsc.typechecker.Analyzer$typerFactory$TyperPhase.run(Analyzer.scala:104)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1506)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1490)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1482)
at scala.tools.nsc.Global$Run.compile(Global.scala:1614)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:130)
at xsbt.CachedCompiler0.run(CompilerInterface.scala:105)
at xsbt.CompilerInterface.run(CompilerInterface.scala:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sbt.internal.inc.AnalyzingCompiler.call(AnalyzingCompiler.scala:237)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:111)
at sbt.internal.inc.AnalyzingCompiler.compile(AnalyzingCompiler.scala:90)
at org.jetbrains.jps.incremental.scala.local.IdeaIncrementalCompiler.compile(IdeaIncrementalCompiler.scala:40)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:35)
at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:88)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:36)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问