Error when starting the Relevancy Workbench module

Symptoms

When starting the Relevancy Workbench module, the following error is displayed:

 

ERROR: initialization failed
org.jruby.rack.RackInitializationException: exit|?from org/jruby/RubyKernel.java:866:in `exit'|?from org/jruby/RubyKernel.java:829:in `exit'|?from /usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.3/lib/bundler/setup.rb:14:in `(root)'|?from org/jruby/RubyKernel.java:1054:in `require'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:60:in `require'|?from org/jruby/RubyKernel.java:1054:in `require'|?from /tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/boot.rb:6:in `(root)'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'|?from org/jruby/RubyKernel.java:1054:in `require'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'|?from /tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/application.rb:1:in `(root)'|?from org/jruby/RubyKernel.java:1054:in `require'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36:in `require'|?from org/jruby/RubyBasicObject.java:1735:in `instance_eval'|?from /tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/environment.rb:2:in `(root)'|?from jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1:in `(root)'|
    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.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:764)
    at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:406)
    at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:756)
    at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:242)
    at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1221)
    at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:699)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:454)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90)
    at org.eclipse.jetty.server.Server.doStart(Server.java:263)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
    at JettyWarMain.main(JettyWarMain.java:34)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at WarMain.launchWebServer(WarMain.java:166)
    at WarMain.start(WarMain.java:318)
    at JarMain.doStart(JarMain.java:221)
    at WarMain.main(WarMain.java:341)
Caused by:
org.jruby.exceptions.RaiseException: (SystemExit) exit
    at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:866)
    at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:829)
    at RUBY.(root)(/usr/local/rvm/gems/ruby-2.1.0@global/gems/bundler-1.5.3/lib/bundler/setup.rb:14)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at RUBY.(root)(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
    at RUBY.require(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:60)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at RUBY.(root)(/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/boot.rb:6)
    at RUBY.(root)(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at RUBY.require(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
    at RUBY.(root)(/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/application.rb:1)
    at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1054)
    at RUBY.(root)(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
    at RUBY.require(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:36)
    at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1735)
    at RUBY.(root)(/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/config/environment.rb:2)
    at RUBY.(root)(jar:file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/WEB-INF/lib/jruby-stdlib-1.7.4.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/custom_require.rb:1)
2014-02-19 00:06:34.953:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/warbler9137677771318662142webroot/relevancy.jar/work/jetty-0.0.0.0-8080-relevancy.jar-_-any-/webapp/},/home/vagrant/relevancy.jar
2014-02-19 00:06:35.041:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
^Cerror: java.lang.NullPointerException

Cause

This issue could happen if the user running the Relevancy Workbench module does not have enough permissions to deploy the application files to the temporary directory.

Resolution

Run the Relevancy Workbench module with a user with additional permissions.
For instance:

$sudo java -jar relevancy.jar
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk