Skip to content

Instantly share code, notes, and snippets.

@daya
Created April 27, 2012 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daya/dd0c86a2f7264da0a85f to your computer and use it in GitHub Desktop.
Save daya/dd0c86a2f7264da0a85f to your computer and use it in GitHub Desktop.
padrino jruby 1.9 with psych
ip-192-168-1-126: [master]! $ jruby --1.9 -d -S padrino s -p 4000
java.lang.ClassNotFoundException: rubygems.defaults.OperatingSystemService
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:136)
at org.jruby.runtime.load.LoadService$ExtensionSearcher.trySearch(LoadService.java:597)
at org.jruby.runtime.load.LoadService.findFileForLoad(LoadService.java:283)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:330)
at org.jruby.runtime.load.LoadService.require(LoadService.java:379)
at org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:304)
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1050)
at org.jruby.RubyKernel.require19(RubyKernel.java:1042)
at org.jruby.RubyKernel$s$1$0$require19.call(RubyKernel$s$1$0$require19.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.IfNode.interpret(IfNode.java:119)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
at org.jruby.Ruby.runInterpreter(Ruby.java:724)
at org.jruby.Ruby.loadFile(Ruby.java:2487)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
at org.jruby.runtime.load.LoadService.tryLoadingLibraryOrScript(LoadService.java:745)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:332)
at org.jruby.runtime.load.LoadService.require(LoadService.java:379)
at org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:304)
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1050)
at org.jruby.RubyKernel.require19(RubyKernel.java:1042)
at org.jruby.RubyKernel$s$1$0$require19.call(RubyKernel$s$1$0$require19.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
at org.jruby.ast.BeginNode.interpret(BeginNode.java:83)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
at org.jruby.Ruby.runInterpreter(Ruby.java:724)
at org.jruby.Ruby.loadFile(Ruby.java:2487)
at org.jruby.Ruby.initBuiltins(Ruby.java:1529)
at org.jruby.Ruby.init(Ruby.java:1102)
at org.jruby.Ruby.newInstance(Ruby.java:184)
at org.jruby.Main.internalRun(Main.java:242)
at org.jruby.Main.run(Main.java:224)
at org.jruby.Main.run(Main.java:208)
at org.jruby.Main.main(Main.java:188)
Exception `LoadError' at /Users/dayas/.rbenv/versions/jruby-1.6.7/lib/ruby/site_ruby/shared/Win32API.rb:2 - Win32API only supported on win32
java.lang.ClassNotFoundException: bundler.SetupService
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.jruby.util.JRubyClassLoader.findClass(JRubyClassLoader.java:86)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at org.jruby.javasupport.JavaSupport.loadJavaClass(JavaSupport.java:136)
at org.jruby.runtime.load.LoadService$ExtensionSearcher.trySearch(LoadService.java:597)
at org.jruby.runtime.load.LoadService.findFileForLoad(LoadService.java:283)
at org.jruby.runtime.load.LoadService.smartLoad(LoadService.java:330)
at org.jruby.runtime.load.LoadService.require(LoadService.java:379)
at org.jruby.runtime.load.LoadService.lockAndRequire(LoadService.java:304)
at org.jruby.RubyKernel.requireCommon(RubyKernel.java:1050)
at org.jruby.RubyKernel.require19(RubyKernel.java:1042)
at org.jruby.RubyKernel$s$1$0$require19.call(RubyKernel$s$1$0$require19.gen:65535)
at org.jruby.internal.runtime.methods.JavaMethod$JavaMethodOneOrNBlock.call(JavaMethod.java:319)
at org.jruby.internal.runtime.methods.AliasMethod.call(AliasMethod.java:61)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.ReturnNode.interpret(ReturnNode.java:92)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.IfNode.interpret(IfNode.java:119)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.RescueNode.executeBody(RescueNode.java:216)
at org.jruby.ast.RescueNode.interpretWithJavaExceptions(RescueNode.java:120)
at org.jruby.ast.RescueNode.interpret(RescueNode.java:110)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74)
at org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190)
at org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:199)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at org.jruby.ast.FCallOneArgNode.interpret(FCallOneArgNode.java:36)
at org.jruby.ast.IfNode.interpret(IfNode.java:117)
at org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104)
at org.jruby.ast.BlockNode.interpret(BlockNode.java:71)
at org.jruby.ast.RootNode.interpret(RootNode.java:129)
at org.jruby.evaluator.ASTInterpreter.INTERPRET_ROOT(ASTInterpreter.java:119)
at org.jruby.Ruby.runInterpreter(Ruby.java:724)
at org.jruby.Ruby.loadFile(Ruby.java:2487)
at org.jruby.runtime.load.ExternalScript.load(ExternalScript.java:66)
at org.jruby.runtime.load.LoadService.load(LoadService.java:270)
at org.jruby.RubyKernel.loadCommon(RubyKernel.java:1076)
at org.jruby.RubyKernel.load19(RubyKernel.java:1068)
at org.jruby.RubyKernel$s$0$1$load19.call(RubyKernel$s$0$1$load19.gen:65535)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:211)
at org.jruby.internal.runtime.methods.DynamicMethod.call(DynamicMethod.java:207)
at org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312)
at org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:169)
at Users.dayas.$_dot_rbenv.versions.jruby_minus_1_dot_6_dot_7.bin.padrino.__file__(/Users/dayas/.rbenv/versions/jruby-1.6.7/bin/padrino:19)
at Users.dayas.$_dot_rbenv.versions.jruby_minus_1_dot_6_dot_7.bin.padrino.load(/Users/dayas/.rbenv/versions/jruby-1.6.7/bin/padrino)
at org.jruby.Ruby.runScript(Ruby.java:697)
at org.jruby.Ruby.runScript(Ruby.java:690)
at org.jruby.Ruby.runNormally(Ruby.java:597)
at org.jruby.Ruby.runFromMain(Ruby.java:446)
at org.jruby.Main.doRunFromMain(Main.java:369)
at org.jruby.Main.internalRun(Main.java:258)
at org.jruby.Main.run(Main.java:224)
at org.jruby.Main.run(Main.java:208)
at org.jruby.Main.main(Main.java:188)
/Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:99 warning: already initialized constant LIBYAML_VERSION
Failed to load /Users/dayas/.gemrc
ArgumentError: wrong number of arguments (2 for 1)
parse_stream at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:203
parse at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:151
load at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:127
load_file at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:297
open at org/jruby/RubyIO.java:1139
load_file at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/psych-1.3.2/lib/psych.rb:297
initialize at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler/settings.rb:6
settings at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:182
configure_gem_home_and_path at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:302
configure at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:81
definition at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:133
load at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:123
setup at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler.rb:107
(root) at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler/setup.rb:7
require at org/jruby/RubyKernel.java:1042
require at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/bundler-1.1.3/lib/bundler/setup.rb:59
(root) at /Users/dayas/.rbenv/versions/jruby-1.6.7/gemsets/padrino/gems/padrino-core-0.10.5/bin/padrino:3
load at org/jruby/RubyKernel.java:1068
(root) at /Users/dayas/.rbenv/versions/jruby-1.6.7/bin/padrino:19
ip-192-168-1-126: [master]! $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment