java.lang.IllegalStateException: Fail to request https://abcd.net/api/ce/submit

sonarqube
scanner

(Sathaiah Dontula) #1

19:56:29.490 ERROR: Error during SonarQube Scanner execution
Version SonarQube 7.6

java.lang.IllegalStateException: Fail to request https://abcd.net/api/ce/submit?projectKey=Test:Code&projectName=TestSource:src

        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:201)

        at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:156)

        at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:115)

        at org.sonar.scanner.bootstrap.ScannerWsClient.call(ScannerWsClient.java:75)

        at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:189)

        at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:136)

        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:373)

        at [org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136](http://org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136))

        at [org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122](http://org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122))

        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:126)

        at [org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136](http://org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:136))

        at [org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122](http://org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:122))

        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:73)

        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:67)

        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

        at java.lang.reflect.Method.invoke(Method.java:498)

        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)

        at com.sun.proxy.$Proxy0.execute(Unknown Source)

        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:185)

        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:137)

        at org.sonarsource.scanner.cli.Main.execute(Main.java:111)

        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)

        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

Caused by: [java.net.SocketException](http://java.net.SocketException): Connection reset

        at [java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115](http://java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:115))

        at [java.net.SocketOutputStream.write(SocketOutputStream.java:155](http://java.net.SocketOutputStream.write(SocketOutputStream.java:155))

        at sun.security.ssl.OutputRecord.writeBuffer(OutputRecord.java:431)

        at sun.security.ssl.OutputRecord.write(OutputRecord.java:417)

        at sun.security.ssl.SSLSocketImpl.writeRecordInternal(SSLSocketImpl.java:876)

        at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:847)

        at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)

        at okio.Okio$1.write(Okio.java:78)

        at okio.AsyncTimeout$1.write(AsyncTimeout.java:179)

        at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)

        at okio.RealBufferedSink.write(RealBufferedSink.java:41)

        at okhttp3.internal.http1.Http1Codec$FixedLengthSink.write(Http1Codec.java:286)

        at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)

        at okio.RealBufferedSink.writeAll(RealBufferedSink.java:99)

        at okhttp3.RequestBody$3.writeTo(RequestBody.java:118)

        at okhttp3.MultipartBody.writeOrCountBytes(MultipartBody.java:171)

        at okhttp3.MultipartBody.writeTo(MultipartBody.java:113)

        at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:62)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)

        at org.sonarqube.ws.client.OkHttpClientBuilder.addHeaders(OkHttpClientBuilder.java:208)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)

        at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)

        at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)

        at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)

        at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185)

        at okhttp3.RealCall.execute(RealCall.java:69)

        at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:199)

        ... 25 more

(G Ann Campbell) #2

Hi,

Do you have a proxy in between your analysis machine and your SonarQube instance?

 
Ann