Aladdin - Scala Bugtracking
[#959] project: compiler priority: low category: bug
submitter assigned to status date submitted
Nikolay Lex open 2007-02-18 15:58:28.0
subject [contrib #328] fsc SocketException
code
Start->Run->cmd

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Iouri Goussev>c:\scala\bin\fsc
Exception in thread "main" java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(Unknown Source)
        at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
        at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
        at sun.nio.cs.StreamDecoder.read(Unknown Source)
        at java.io.InputStreamReader.read(Unknown Source)
        at java.io.BufferedReader.fill(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at scala.tools.nsc.CompileClient$.main0(CompileClient.scala:107)
        at scala.tools.nsc.CompileClient$.main(CompileClient.scala:122)
        at scala.tools.nsc.CompileClient.main(CompileClient.scala)

C:\Documents and Settings\Iouri Goussev>c:\scala\bin\fsc
Usage: fsc <options | source files>
where possible options include:

.....
.....
.....

C:\Documents and Settings\Iouri Goussev>java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
what happened
Scala compiler threw an exception first time I run it. When I run it again, everything was ok.

what expected Scala compiler should not throw exceptions.
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-02-20 17:50:38.0
I sent an email asking if someone could reproduce the problem. Since there was no response I mark this not repro.
Martin  edited on  2007-02-20 19:01:57.0
I have also noted the problem occasionally. I think we should just catch the exception and treat it be a restart.