Issue Type: Bug Bug
Assignee: Simon Brandhof
Created: 17/Oct/13 7:14 AM
Description:

SonarQube Eclipse has problems executing the local analysis for the first time, because the server is not fast enough in delivering the libraries. I get a failure like

INFO: Sonar Server 3.7.2
Exception in thread "main" java.lang.IllegalStateException: Fail to download libraries from server
	at org.sonar.runner.impl.Jars35.dowloadFiles(Jars35.java:79)
	at org.sonar.runner.impl.Jars35.download(Jars35.java:58)
	at org.sonar.runner.impl.JarDownloader.download35(JarDownloader.java:56)
	at org.sonar.runner.impl.JarDownloader.download(JarDownloader.java:40)
	at org.sonar.runner.impl.BatchLauncher$1.run(BatchLauncher.java:59)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.sonar.runner.impl.BatchLauncher.doExecute(BatchLauncher.java:57)
	at org.sonar.runner.impl.BatchLauncher.execute(BatchLauncher.java:50)
	at org.sonar.runner.impl.BatchLauncherMain.execute(BatchLauncherMain.java:41)
	at org.sonar.runner.impl.BatchLauncherMain.main(BatchLauncherMain.java:59)
Caused by: java.lang.IllegalStateException: Fail to download: https://sonar.int.netcentric.biz/batch/sonar-update-center-common-1.8.jar
	at org.sonar.runner.impl.ServerConnection.download(ServerConnection.java:70)
	at org.sonar.runner.impl.Jars35$BatchFileDownloader.download(Jars35.java:91)
	at org.sonar.home.cache.FileCache.download(FileCache.java:98)
	at org.sonar.home.cache.FileCache.get(FileCache.java:84)
	at org.sonar.runner.impl.Jars35.dowloadFiles(Jars35.java:74)
	... 9 more
Caused by: org.sonar.runner.kevinsawicki.HttpRequest$HttpRequestException: java.net.SocketTimeoutException: Read timed out
	at org.sonar.runner.kevinsawicki.HttpRequest.stream(HttpRequest.java:1669)
	at org.sonar.runner.kevinsawicki.HttpRequest.buffer(HttpRequest.java:1636)
	at org.sonar.runner.kevinsawicki.HttpRequest.receive(HttpRequest.java:1763)
	at org.sonar.runner.kevinsawicki.HttpRequest$5.run(HttpRequest.java:1748)
	at org.sonar.runner.kevinsawicki.HttpRequest$5.run(HttpRequest.java:1744)
	at org.sonar.runner.kevinsawicki.HttpRequest$Operation.call(HttpRequest.java:599)
	at org.sonar.runner.kevinsawicki.HttpRequest.receive(HttpRequest.java:1744)
	at org.sonar.runner.impl.ServerConnection.download(ServerConnection.java:63)
	... 13 more
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.read(SocketInputStream.java:152)
	at java.net.SocketInputStream.read(SocketInputStream.java:122)
	at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
	at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:554)
	at sun.security.ssl.InputRecord.read(InputRecord.java:509)
	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
	at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)
	at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
	at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:552)
	at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
	at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
	at java.io.FilterInputStream.read(FilterInputStream.java:133)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3053)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3047)
	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3035)
	at java.util.zip.CheckedInputStream.read(CheckedInputStream.java:59)
	at java.util.zip.GZIPInputStream.readUByte(GZIPInputStream.java:262)
	at java.util.zip.GZIPInputStream.readUShort(GZIPInputStream.java:254)
	at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:163)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:78)
	at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:90)
	at org.sonar.runner.kevinsawicki.HttpRequest.stream(HttpRequest.java:1667)
	... 20 more

Each time I start again, it fails with another dependency. Is there a way to configure that timeout.


I am using SonarQube 3.7.2 and SonarQube Eclipse 3.2

Project: Mojo's Sonar Maven Plugin
Priority: Major Major
Reporter: Konrad Windszus
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to