Aladdin - Scala Bugtracking
[#673] project: distribution priority: low category: missing feature
submitter assigned to status date submitted
Stephane Lex fixed 2006-07-22 13:54:16.0
subject sbaz failures
code
c:>sbaz update
what happened
1) if network connection is not availabe:
Exception in thread "main" java.net.UnknownHostException: scala-webapps.epfl.ch
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.Socket.connect(Socket.java:516)
        at java.net.Socket.connect(Socket.java:466)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
        at sun.net.www.http.HttpClient.(HttpClient.java:214)
        at sun.net.www.http.HttpClient.New(HttpClient.java:287)
        at sun.net.www.http.HttpClient.New(HttpClient.java:299)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:795)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:747)
        at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:672)
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:839)
        at sbaz.SimpleUniverse.requestFromServer(SimpleUniverse.scala:73)
        at sbaz.SimpleUniverse.retrieveAvailable(SimpleUniverse.scala:17)
        at sbaz.ManagedDirectory.updateAvailable(ManagedDirectory.scala:343)
        at sbaz.clui.commands.Update$.run(Update.scala:20)
        at sbaz.clui.CommandLine$.processCommandLine(CommandLine.scala:57)
        at sbaz.clui.CommandLine$.main(CommandLine.scala:69)
        at sbaz.clui.CommandLine.main(CommandLine.scala)
2) if installation directory is not writable:
Exception in thread "main" java.io.FileNotFoundException: C:\PROGRA~1\Scala\bin\..\meta\available.tm
p (Access is denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.(FileOutputStream.java:179)
        at java.io.FileOutputStream.(FileOutputStream.java:131)
        at java.io.FileWriter.(FileWriter.java:73)
        at sbaz.ManagedDirectory.saveXML(ManagedDirectory.scala:74)
        at sbaz.ManagedDirectory.saveAvailable(ManagedDirectory.scala:88)
        at sbaz.ManagedDirectory.updateAvailable(ManagedDirectory.scala:344)
        at sbaz.clui.commands.Update$.run(Update.scala:20)
        at sbaz.clui.CommandLine$.processCommandLine(CommandLine.scala:57)
        at sbaz.clui.CommandLine$.main(CommandLine.scala:69)
        at sbaz.clui.CommandLine.main(CommandLine.scala)
what expected user-friendly error messages
[back to overview]
Changes of this bug report
Lex  edited on  2006-09-21 17:41:31.0
The command-line tool was catching "Error", but now it "IOException". Now, when an IO exception occurs -- including these two -- a one-line summary is printed. If -v (verbose) is specified, then the entire exception is printed out.