由于连接拒绝,Scala应用程序在IDEA中编译错误

我正在尝试在IDEA下编译scala应用程序,scala编译服务器似乎运行良好,但每次运行scala应用程序时脚本运行良好都会出现以下错误 .

信息:内部缓存已损坏或格式过时,强制项目重建:模块'在Scala编程' 生产环境 :java.net.SocketException:SOCKS:连接被拒绝

这是详细的错误消息 .

错误:内部错误:(java.net.SocketException)SOCKS:连接被拒绝java.net.SocketException:SOCKS:连接在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:563)处被拒绝在java.net.Socket.connect (Socket.java:579)java.net.Socket.connect(Socket.java:528),java.net.Socket . (Socket.java:425),java.net.Socket . (Socket.java:241)在org.jetbrains.jps.incremental.scala.remote.RemoteResourceOwner $ class.send(RemoteResourceOwner.scala:24)org.jetbrains.jps.incremental.scala.remote.RemoteServer.send(RemoteServer.scala:12)at org .jetbrains.jps.incremental.scala.remote.RemoteServer.compile(RemoteServer.scala:17)at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ compile $ 1 $$ anonfun $ apply $ 1 $$ anonfun $ apply $ 2.apply(ScalaBuilder.scala:47)at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ compile $ 1 $$ anonfun $ apply $ 1 $$ anonfun $ apply $ 2.apply(ScalaBuilder.scala:41)at at在org.jetbrains.jps.incremental.sca上的scala.util.E $ RightProjection.map(Either.scala:535) la.ScalaBuilder $$ anonfun $ compile $ 1 $$ anonfun $ apply $ 1.apply(ScalaBuilder.scala:41)at org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ compile $ 1 $$ anonfun $ apply $ 1.apply (ScalaBuilder.scala:40)scala.util.E或者org.jetbrains.jps.incremental.scala.ScalaBuilder上的$ RightProjection.flatMap(Either.scala:522)$$ anonfun $ compile $ 1.apply(ScalaBuilder.scala:40 )org.jetbrains.jps.incremental.scala.ScalaBuilder $$ anonfun $ compile $ 1.apply(ScalaBuilder.scala:39)位于org.jetbrains的scala.util.Either $ RightProjection.flatMap(Either.scala:522) . 位于org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders的org.jetbrains.jps.incremental.scala.IdeaIncrementalBuilder.build(IdeaIncrementalBuilder.scala:63)中的jps.incremental.scala.ScalaBuilder $ .compile(ScalaBuilder.scala:39) (IncProjectBuilder.java:1140)org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:826)org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.ja) va:894)org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:789)org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:612)atg.jetbrains.jps.incremental .incProjectBuilder.runBuild(IncProjectBuilder.java:352)org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:191)org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137)at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:289)org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:124)org.jetbrains.jps.cmdline.BuildMain $ MyMessageHandler $ 1 .run(BuildMain.java:238)atg.jetbrains.jps.service.impl.SharedThreadPoolImpl $ 1.run(SharedThreadPoolImpl.java:41)at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471) java.util.concurren的java.util.concurrent.FutureTask.run(FutureTask.java:262)java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)java.util.concurren t.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:615)at java.lang.Thread.run(Thread.java:745)

我想这可能是 HTTP Proxy 的问题,所以我在设置中检查了这个信息 . 默认设置为 No proxy . 实际上,如果需要,我很困惑如何设置它 .

顺便说一句,IntelliJ IDEA的版本是14.0.2,操作系统是mac os x .

还有其他一点我可以尝试一下吗?谢谢 .

回答(1)

2 years ago

在这个版本遇到了同样的问题:

IntelliJ IDEA 15.0.1 Build #IC-143.382, built on November 10, 2015 JRE: 1.8.0_40-release-b92 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o os x Yosemite 10.10.3 并通过重启解决它...