Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: Web
    • Labels:
      None

      Description

      During the upgrade of Nemo on 2.13-RC2 some call had been received.

      Maybe a filter should prevent any access before the migration have ended.

      ...
      INFO   | jvm 1    | 2012/01/05 12:08:46 | 
      INFO   | jvm 1    | 2012/01/05 12:08:47 | ==  RefactorRuleMeasures: migrating ===========================================
      INFO   | jvm 1    | 2012/01/05 12:08:47 | -- Update metric info_violations
      INFO   | jvm 1    | 2012/01/05 12:38:38 |    -> 1790.9540s
      INFO   | jvm 1    | 2012/01/05 12:38:38 |    -> 97825 rows
      INFO   | jvm 1    | 2012/01/05 12:38:38 | -- Update metric minor_violations
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 2012-01-05 12:51:22.354:WARN::/chart
      INFO   | jvm 1    | 2012/01/05 12:51:22 | java.lang.NullPointerException
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.sonar.server.charts.ChartsServlet.doGet(ChartsServlet.java:55)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.jruby.rack.RackFilter.doFilter(RackFilter.java:59)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.sonar.server.ui.DatabaseSessionFilter.doFilter(DatabaseSessionFilter.java:34)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:78)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:154)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:440)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.Server.handle(Server.java:326)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
      INFO   | jvm 1    | 2012/01/05 12:51:22 | 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      INFO   | jvm 1    | 2012/01/05 13:05:50 |    -> 1632.4270s
      INFO   | jvm 1    | 2012/01/05 13:05:50 |    -> 13725 rows
      INFO   | jvm 1    | 2012/01/05 13:05:50 | -- Update metric major_violations
      2012.01.05 13:17:29 ERROR o.s.s.ui.JRubyFacade  Fail to render: http://nemo.sonarsource.org/api/server/index
      undefined method `getId' for nil:NilClass
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/app/controllers/api/server_controller.rb:41:in `index'
      	org/jruby/RubyKernel.java:2052:in `send'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:1331:in `perform_action'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_with_filters'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-complete-1.6.1.jar!/META-INF/jruby.home/lib/ruby/1.8/benchmark.rb:308:in `realtime'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:17:in `ms'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_with_benchmark'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/rescue.rb:160:in `perform_action_with_rescue'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/flash.rb:146:in `perform_action_with_flash'
      	org/jruby/RubyKernel.java:2064:in `send'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:532:in `process'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_with_filters'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:391:in `process'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/base.rb:386:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:437:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:87:in `dispatch'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:85:in `dispatch'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:121:in `_call'
      	/vol/sonar/sonar-2.13-RC2/war/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'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:29:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:9:in `cache'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/query_cache.rb:28:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/string_coercion.rb:25:in `call'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/head.rb:9:in `call'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/vendor/rack-1.2.1/rack/methodoverride.rb:24:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/params_parser.rb:15:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/session/cookie_store.rb:93:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/failsafe.rb:26:in `call'
      	/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:106:in `call'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:36:in `serve_rails'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/adapter/rails.rb:41:in `call'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/jruby/rack/rails.rb:185:in `call'
      	file:/vol/sonar/sonar-2.13-RC2/war/sonar-server/WEB-INF/lib/jruby-rack-1.0.0.1.jar!/rack/handler/servlet.rb:19:in `call'
      
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fabemn OLD - Fabrice Bellingard
              Reporter:
              ehartmann OLD - Eric Hartmann
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: