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

Delete noisy log "undefined method `column_layout' for nil:NilClass"

    XMLWordPrintable

    Details

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

      Description

      This log appears when the dashboard given in the URL does not exist or when the user has not read permissions :

      2012.07.17 16:35:04 ERROR o.s.s.ui.JRubyFacade  Fail to render: http://nemo.sonarsource.org/dashboard/index/org.apache.portals.jetspeed-2:jetspeed-2?did=6&tab=violations
      undefined method `column_layout' for nil:NilClass
      	On line #5 of app/views/dashboard/index.html.erb
      
          2: <%= render :partial => 'header', :locals => {:back => false} %>
          3: <div style="width: 100%;display: block; float: none">
          4: <%
          5: columns=@dashboard.column_layout.split('-')
          6: for index in 1..columns.size()
          7: %>
          8: <!-- the right margin with 1px is a trick for IE. See SONAR-2637 -->
      
          app/views/dashboard/index.html.erb:5
          org/jruby/RubyKernel.java:2056:in `send'
          org/jruby/RubyKernel.java:2064:in `send'
          org/jruby/RubyProc.java:268:in `call'
          org/jruby/RubyProc.java:228:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/head.rb:9:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/methodoverride.rb:24:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/jruby/rack/session_store.rb:42:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/jruby/rack/session_store.rb:39:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:36:in `serve_rails'
          file:lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:41:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:185:in `call'
          file:lib/jruby-rack-1.0.0.1.jar!/rack/handler/servlet.rb:19:in `call'
      

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: