我的第一个Scala连接在套接字处重置。

时间:2018-11-30 23:18:06

标签: scala

我正在docker centos:6容器上运行此代码。 我收到套接字连接重置错误

[root@f3379978de12 /]#
[root@f3379978de12 /]# cat ScalaTutorial.scala
object ScalaTutorial {
      def main(args: Array[String]){
            var i=0
    while ( i<= 10 ) {
            println (i)
            i +=1
    }
}
   }
   [root@f3379978de12 /]# scala ScalaTutorial.scala
    java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(SocketInputStream.java:210)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
    at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
    at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
    at java.io.InputStreamReader.read(InputStreamReader.java:184)
    at java.io.BufferedReader.fill(BufferedReader.java:161)
    at java.io.BufferedReader.readLine(BufferedReader.java:324)
    at java.io.BufferedReader.readLine(BufferedReader.java:389)
    at scala.tools.nsc.HasCompileSocket.loop$1(CompileSocket.scala:34)

0 个答案:

没有答案