首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SonarQube异常

SonarQube异常
EN

Stack Overflow用户
提问于 2014-10-16 20:09:57
回答 1查看 987关注 0票数 2

当我使用"StartSonar.bat“运行SonarQube时,命令行窗口显示-

代码语言:javascript
复制
`jvm 1    | 2014.10.16 17:32:14 INFO  app[o.s.p.m.Monitor] Process[web] is up`

但是当我在我的机器上点击url - http://localhost:9000/时,我得到了以下错误。在这方面我还是个新手。请建议我如何解决这个问题。我使用的是Windows4.5版和Windows7专业版操作系统。

代码语言:javascript
复制
org.jruby.rack.RackInitializationException: uninitialized constant I18n
    from org/jruby/RubyModule.java:2689:in `const_missing'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record.rb:83:in `(root)'
    from org/jruby/RubyKernel.java:1075:in `require'
    from jar:file:/C:/sonarqube-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:in `require'
    from jar:file:/C:/sonarqube-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53:in `require'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:1:in `(root)'
    from org/jruby/RubyArray.java:1613:in `each'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:268:in `require_frameworks'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:268:in `require_frameworks'
    from file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:51:in `require_frameworks_with_servlet_env'
    from org/jruby/RubyKernel.java:2223:in `send'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:134:in `process'
    from C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:113:in `run'
    from org/jruby/RubyKernel.java:1094:in `load'
    from C:/sonarqube-4.5/web/WEB-INF/config/environment.rb:55:in `(root)'
    from file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:1:in `(root)'
    from file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:25:in `load_environment'

    at org.jruby.rack.RackInitializationException.wrap(RackInitializationException.java:29)
    at org.jruby.rack.RackApplicationFactoryDecorator.init(RackApplicationFactoryDecorator.java:98)
    at org.jruby.rack.RackServletContextListener.contextInitialized(RackServletContextListener.java:50)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.jruby.exceptions.RaiseException: (NameError) uninitialized constant I18n
    at org.jruby.RubyModule.const_missing(org/jruby/RubyModule.java:2689)
    at RUBY.(root)(C:/sonarqube-4.5/web/WEB-INF/gems/gems/activerecord-2.3.15/lib/active_record.rb:83)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1075)
    at Kernel.require(jar:file:/C:/sonarqube-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)
    at Kernel.require(jar:file:/C:/sonarqube-4.5/lib/server/jruby-complete-1.7.9.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)
    at RUBY.(root)(C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:1)
    at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)
    at RUBY.require_frameworks(C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:268)
    at RUBY.require_frameworks(C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:268)
    at RUBY.require_frameworks_with_servlet_env(file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:51)
    at org.jruby.RubyKernel.send(org/jruby/RubyKernel.java:2223)
    at RUBY.process(C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:134)
    at RUBY.run(C:/sonarqube-4.5/web/WEB-INF/gems/gems/rails-2.3.15/lib/initializer.rb:113)
    at org.jruby.RubyKernel.load(org/jruby/RubyKernel.java:1094)
    at RUBY.(root)(C:/sonarqube-4.5/web/WEB-INF/config/environment.rb:55)
    at RUBY.(root)(file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:1)
    at RUBY.load_environment(file:/C:/sonarqube-4.5/lib/server/jruby-rack-1.1.13.2.jar!/jruby/rack/rails/environment2.rb:25)
EN

回答 1

Stack Overflow用户

发布于 2015-08-21 20:16:50

我也遇到了同样的问题,首先是由于环境中缺少java_home。变量,但在添加它之后,我看到了上面的错误。我的解决方案是停止和卸载服务,删除整个目录,并根据安装手册再次安装它。

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26404056

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档