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)
|