sonar 报错日志分析(根据日志跟踪源码执行)
生活随笔
收集整理的這篇文章主要介紹了
sonar 报错日志分析(根据日志跟踪源码执行)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
sonar 分析之后,scanner 上傳分析文件報錯:
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project eds-pom: Fail to request http://10.37.124.178:9000/api/ce/submit?projectKey=com.suning.logistics:eds-pom&projectName=eds-pom&projectBranch=6.4.1: timeout: Socket closed -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar (default-cli) on project eds-pom: Fail to request http://10.37.124.178:9000/api/ce/submit?projectKey=com.suning.logistics:eds-pom&projectName=eds-pom&projectBranch=6.4.1at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)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:497)at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoExecutionException: Fail to request http://10.37.124.178:9000/api/ce/submit?projectKey=com.suning.logistics:eds-pom&projectName=eds-pom&projectBranch=6.4.1at org.sonarsource.scanner.maven.bootstrap.ExceptionHandling.handle(ExceptionHandling.java:36)at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:81)at org.sonarsource.scanner.maven.SonarQubeMojo.execute(SonarQubeMojo.java:122)at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)... 19 more Caused by: java.lang.IllegalStateException: Fail to request http://10.37.124.178:9000/api/ce/submit?projectKey=com.suning.logistics:eds-pom&projectName=eds-pom&projectBranch=6.4.1at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:160)at org.sonarqube.ws.client.HttpConnector.post(HttpConnector.java:128)at org.sonarqube.ws.client.HttpConnector.call(HttpConnector.java:98)at org.sonar.scanner.bootstrap.BatchWsClient.call(BatchWsClient.java:69)at org.sonar.scanner.report.ReportPublisher.upload(ReportPublisher.java:173)at org.sonar.scanner.report.ReportPublisher.execute(ReportPublisher.java:128)at org.sonar.scanner.phases.PublishPhaseExecutor.publishReportJob(PublishPhaseExecutor.java:64)at org.sonar.scanner.phases.PublishPhaseExecutor.executeOnRoot(PublishPhaseExecutor.java:51)at org.sonar.scanner.phases.AbstractPhaseExecutor.execute(AbstractPhaseExecutor.java:81)at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:182)at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:247)at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:242)at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:232)at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)at org.sonar.scanner.task.ScanTask.execute(ScanTask.java:47)at org.sonar.scanner.task.TaskContainer.doAfterStart(TaskContainer.java:86)at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:142)at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:127)at org.sonar.scanner.bootstrap.GlobalContainer.executeTask(GlobalContainer.java:115)at org.sonar.batch.bootstrapper.Batch.executeTask(Batch.java:116)at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:62)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:497)at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)at com.sun.proxy.$Proxy16.execute(Unknown Source)at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:233)at org.sonarsource.scanner.api.EmbeddedScanner.runAnalysis(EmbeddedScanner.java:151)at org.sonarsource.scanner.maven.bootstrap.ScannerBootstrapper.execute(ScannerBootstrapper.java:78)... 22 more Caused by: java.net.SocketTimeoutException: timeoutat okio.Okio$3.newTimeoutException(Okio.java:212)at okio.AsyncTimeout.exit(AsyncTimeout.java:288)at okio.AsyncTimeout$1.write(AsyncTimeout.java:184)at okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:171)at okio.RealBufferedSink.write(RealBufferedSink.java:41)at okhttp3.internal.http.Http1xStream$FixedLengthSink.write(Http1xStream.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.HttpEngine$NetworkInterceptorChain.proceed(HttpEngine.java:756)at okhttp3.internal.http.HttpEngine.readResponse(HttpEngine.java:613)at okhttp3.RealCall.getResponse(RealCall.java:244)at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:201)at org.sonarqube.ws.client.OkHttpClientBuilder.completeHeaders(OkHttpClientBuilder.java:161)at org.sonarqube.ws.client.OkHttpClientBuilder$$Lambda$15/1153511683.intercept(Unknown Source)at okhttp3.RealCall$ApplicationInterceptorChain.proceed(RealCall.java:190)at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:163)at okhttp3.RealCall.execute(RealCall.java:57)at org.sonarqube.ws.client.HttpConnector.doCall(HttpConnector.java:157)... 54 more Caused by: java.net.SocketException: Socket closedat java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:116)at java.net.SocketOutputStream.write(SocketOutputStream.java:153)at okio.Okio$1.write(Okio.java:80)at okio.AsyncTimeout$1.write(AsyncTimeout.java:180)... 72 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :eds-pom總結
以上是生活随笔為你收集整理的sonar 报错日志分析(根据日志跟踪源码执行)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 浪潮信息发布 KOS 服务器操作系统:基
- 下一篇: git 操作常用指令