Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3579

Conflict with Ruby local installation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2
    • Component/s: Web
    • Labels:
      None

      Description

      The distribution of JRuby packaged with the WAR should be isolated from environment, but that's not the case :

      16:56:33.309 INFO  JEE container started
      16:56:33.310 INFO  Restoring profiles: org.apache.http.entity.mime.content.InputStreamBody@758689a
      16:56:33.314 INFO  POST http://localhost:33040/api/profiles/restore
      16:56:33.453 ERROR org.sonar.server.ui.JRubyFacade Fail to render: http://localhost:33040/api/profiles/restore
      undefined method `except' for #<JSON::Pure::Generator::State:0x1ea6a798>
      	org/jruby/RubyKernel.java:2052:in `send'
      	/home/jenkins/.rvm/gems/ruby-1.9.3-p194@sonarsource/gems/json-1.7.2/lib/json/pure/generator.rb:270:in `[]'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb:45:in `as_json'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/json/encoders/hash.rb:34:in `to_json'
      	/home/jenkins/.rvm/gems/ruby-1.9.3-p194@sonarsource/gems/json-1.7.2/lib/json/pure/generator.rb:257:in `generate'
      	/home/jenkins/.rvm/gems/ruby-1.9.3-p194@sonarsource/gems/json-1.7.2/lib/json/common.rb:223:in `generate'
      	/home/jenkins/.rvm/gems/ruby-1.9.3-p194@sonarsource/gems/json-1.7.2/lib/json/common.rb:463:in `JSON'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/app/controllers/api/api_controller.rb:48:in `jsonp'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/app/controllers/api/profiles_controller.rb:91:in `restore'
      	org/jruby/RubyProc.java:268:in `call'
      	org/jruby/RubyProc.java:228:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:135:in `custom'
      	org/jruby/RubyProc.java:268:in `call'
      	org/jruby/RubyProc.java:228:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:175:in `respond'
      	org/jruby/RubyArray.java:1602:in `each'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:173:in `respond'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/mime_responds.rb:107:in `respond_to'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/app/controllers/api/profiles_controller.rb:90:in `restore'
      	org/jruby/RubyKernel.java:2052:in `send'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `perform_action'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in `perform_action_with_flash'
      	org/jruby/RubyKernel.java:2052:in `send'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
      	org/jruby/RubyProc.java:268:in `call'
      	org/jruby/RubyProc.java:228:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/head.rb:9:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/methodoverride.rb:24:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/session_store.rb:42:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
      	/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:36:in `serve_rails'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:41:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:185:in `call'
      	file:/opt/jenkins/data/jobs/it-cs-plugin-report/workspace/ed6759cd/target/2/sonar-3.1-SNAPSHOT/war/build/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/handler/servlet.rb:19:in `call'
      

        Attachments

          Activity

            People

            Assignee:
            simon.brandhof Simon Brandhof (Inactive)
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: