Skip to content

Instantly share code, notes, and snippets.

@rtacconi
Created April 5, 2016 11:46
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 rtacconi/9e26fbc1634094102c6938b4da942b44 to your computer and use it in GitHub Desktop.
Save rtacconi/9e26fbc1634094102c6938b4da942b44 to your computer and use it in GitHub Desktop.
AWS lambda Jruby error missing gem
{
"errorMessage": "(LoadError) no such file to load -- aws-sdk",
"errorType": "org.jruby.embed.EvalFailedException",
"stackTrace": [
"org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:131)",
"org.jruby.embed.ScriptingContainer.runUnit(ScriptingContainer.java:1311)",
"org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1356)",
"AWSLambdaJRuby.handler(AWSLambdaJRuby.java:35)",
"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)",
"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)",
"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)",
"java.lang.reflect.Method.invoke(Method.java:497)"
],
"cause": {
"errorMessage": "(LoadError) no such file to load -- aws-sdk",
"errorType": "org.jruby.exceptions.RaiseException",
"stackTrace": [
"org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:940)",
"RUBY.<top>(classpath:/main.rb:2)"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment