SonarQube Plugins
  1. SonarQube Plugins
  2. SONARPLUGINS-1510

Can't access to Sonar or project doesn't exist on Sonar instance

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PDF-REPORT-1.3.1
    • Component/s: PDF Report
    • Labels:
      None
    • Number of attachments :
      0

      Description

      When I execute maven goal pdf-report an error below  has occured, I think, it is beacause the url is too long, you can use POST instead of GET :
      [ERROR] Can´t access to Sonar or project doesn't exist on Sonar instance. HTTP KO to http://10.1.140.87:9000/api/resources?resource=com.xxx.xxx:xxx-parent&depth=0&format=xml&includetrends=true&metrics=lines,generated_lines,ncloc,generated_ncloc,classes,files,directories,packages,functions,accessors,paragraphs,statements,public_api,comment_lines,comment_lines_density,comment_blank_lines,public_documented_api_density,public_undocumented_api,commented_out_code_lines,complexity,class_complexity,function_complexity,file_complexity,paragraph_complexity,class_complexity_distribution,function_complexity_distribution,file_complexity_distribution,paragraph_complexity_distribution,tests,test_execution_time,test_errors,skipped_tests,test_failures,test_success_density,test_data,coverage,new_coverage,lines_to_cover,new_lines_to_cover,uncovered_lines,new_uncovered_lines,line_coverage,new_line_coverage,coverage_line_hits_data,conditions_to_cover,new_conditions_to_cover,uncovered_conditions,new_uncovered_conditions,branch_coverage,new_branch_coverage,branch_coverage_hits_data,conditions_by_line,covered_conditions_by_line,duplicated_lines,duplicated_blocks,duplicated_files,duplicated_lines_density,duplications_data,weighted_violations,violations_density,violations,blocker_violations,critical_violations,major_violations,minor_violations,info_violations,new_violations,new_blocker_violations,new_critical_violations,new_major_violations,new_minor_violations,new_info_violations,abstractness,instability,distance,dit,noc,rfc,rfc_distribution,lcom4,lcom4_blocks,lcom4_distribution,suspect_lcom4_density,ca,ce,dsm,package_cycles,package_tangle_index,package_tangles,package_feedback_edges,package_edges_weight,file_cycles,file_tangle_index,file_tangles,file_feedback_edges,file_edges_weight,commits,last_commit_date,revision,authors_by_line,revisions_by_line,last_commit_datetimes_by_line,alert_status,profile,qi-quality-index,qi-coding-violations,qi-coding-weighted-violations,qi-style-violations,qi-style-weighted-violations,qi-test-coverage,qi-complexity,qi-complexity-factor,qi-complexity-factor-methods,qi-complex-distrib,sonargraph_acd,sonargraph_nccd,sonargraph_highest_acd,sonargraph_highest_nccd,sonargraph_cyclicity,sonargraph_biggest_cycle_group,sonargraph_cyclic_packages,sonargraph_cyclic_packages_percent,sonargraph_relative_cyclicity,sonargraph_packages,sonargraph_instructions,sonargraph_cycle_group_size,sonargraph_unassigned_types,sonargraph_violating_types,sonargraph_violating_dependencies,sonargraph_type_dependencies,sonargraph_java_files,sonargraph_tasks,sonargraph_erosion_index,sonargraph_all_warnings,sonargraph_cycle_warnings,sonargraph_threshold_warnings,sonargraph_workspace_warnings,sonargraph_duplicate_warnings,sonargraph_ignored_warnings,sonargraph_ignored_violations,sonargraph_architecture_violations,sonargraph_erosion_ref,sonargraph_erosion_types,sonargraph_erosion_cost,sonargraph_internal_types,sonargraph_task_refs,sonargraph_unassigned_types_percent,sonargraph_violating_types_percent,burned_budget,team_size,business_value,sonarj_acd,sonarj_nccd,sonarj_highest_acd,sonarj_highest_nccd,sonarj_cyclicity,sonarj_biggest_cycle_group,sonarj_cyclic_packages,sonarj_cyclic_packages_percent,sonarj_relative_cyclicity,sonarj_packages,sonarj_instructions,sonarj_cycle_group_size,sonarj_unassigned_types,sonarj_violating_types,sonarj_violating_dependencies,sonarj_type_dependencies,sonarj_java_files,sonarj_tasks,sonarj_erosion_index,sonarj_all_warnings,sonarj_cycle_warnings,sonarj_threshold_warnings,sonarj_workspace_warnings,sonarj_duplicate_warnings,sonarj_ignored_warnings,sonarj_ignored_violations,sonarj_architecture_violations,sonarj_erosion_ref,sonarj_erosion_types,sonarj_erosion_cost,sonarj_internal_types,sonarj_task_refs,sonarj_unassigned_types_percent,sonarj_violating_types_percent,total-quality,total-quality-dry,total-quality-code,total-quality-test,total-quality-design-nom,total-quality-design-rfc,total-quality-design-cbo,total-quality-design-dit,total-quality-design-lcom4,total-quality-design,isoqa_architecture_adi,total-quality-architecture-pti,total-quality-architecture,pdf-data
      java.io.IOException: Can´t access to Sonar or project doesn't exist on Sonar instance.
      	at org.sonar.report.pdf.util.SonarAccess.getUrlAsDocument(SonarAccess.java:110)
      	at org.sonar.report.pdf.entity.Measures.initMeasuresByProjectKey(Measures.java:62)
      	at org.sonar.report.pdf.entity.Project.initMeasures(Project.java:154)
      	at org.sonar.report.pdf.entity.Project.initializeProject(Project.java:102)
      	at org.sonar.report.pdf.PDFReporter.getProject(PDFReporter.java:114)
      	at org.sonar.report.pdf.PDFReporter.getReport(PDFReporter.java:71)
      	at org.sonar.report.pdf.mojo.SonarPDFMojo.execute(SonarPDFMojo.java:162)
      	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      	at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
      	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      	at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      	at hudson.maven.agent.Main.launch(Main.java:173)
      	at hudson.maven.MavenBuilder.call(MavenBuilder.java:164)
      	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:868)
      	at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:799)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      	at hudson.remoting.Request$2.run(Request.java:270)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:662)
      

        Activity

        Hide
        Antonio Manuel Muiz Martn added a comment -

        Hello,

        The version 1.3.1 is ready in the update center.

        Show
        Antonio Manuel Muiz Martn added a comment - Hello, The version 1.3.1 is ready in the update center.
        Hide
        Narendra Das added a comment -

        hello,

        still facing the same issue.

        Sonar 3.7
        PDF Report plug-in 1.3.1 (downloaded from the above update on 12th june 2013)

        Show
        Narendra Das added a comment - hello, still facing the same issue. Sonar 3.7 PDF Report plug-in 1.3.1 (downloaded from the above update on 12th june 2013)
        Hide
        Tomasz Zieleniewski added a comment -

        Hi,
        After update from Sonar 3.5 to 3.7 I've encountered a similar issue.
        Additionally Sonar return the following info:
        "<error><code>400</code><msg>The parameter 'scopes' is not supported since version 3.6.</msg></error>"

        Show
        Tomasz Zieleniewski added a comment - Hi, After update from Sonar 3.5 to 3.7 I've encountered a similar issue. Additionally Sonar return the following info: "<error><code>400</code><msg>The parameter 'scopes' is not supported since version 3.6.</msg></error>"
        Hide
        Frdric Souchon aka Fraifrai added a comment -

        After migration our integration server from 3.5.1 to 3.7, the same issue came back too.

        Show
        Frdric Souchon aka Fraifrai added a comment - After migration our integration server from 3.5.1 to 3.7, the same issue came back too.
        Hide
        Antonio Manuel Muiz Martn added a comment -

        Please, take a look to the compatibility matrix table. See SONARPLUGINS-3020.

        Show
        Antonio Manuel Muiz Martn added a comment - Please, take a look to the compatibility matrix table. See SONARPLUGINS-3020 .

          People

          • Assignee:
            Antonio Manuel Muiz Martn
            Reporter:
            Mohamed Abdelkefi
          • Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: