Skip to content

Instantly share code, notes, and snippets.

@SFEley
Created October 22, 2018 18:25
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 SFEley/468520d54e0761c15783ec5fc2bd286d to your computer and use it in GitHub Desktop.
Save SFEley/468520d54e0761c15783ec5fc2bd286d to your computer and use it in GitHub Desktop.
AWS Lambda error - Java8 runtime, JRuby 9.2.1.0-SNAPSHOT
START RequestId: caa0d7b1-d626-11e8-8cd7-4be3c49bb13e Version: $LATEST
Could not load platform constants for OpenFlags: java.lang.RuntimeException
java.lang.RuntimeException: Could not load platform constants for OpenFlags
at jnr.constants.platform.ConstantResolver.getConstants(ConstantResolver.java:227)
at jnr.constants.platform.ConstantResolver.lookupAndCacheConstant(ConstantResolver.java:128)
at jnr.constants.platform.ConstantResolver.getConstant(ConstantResolver.java:116)
at jnr.constants.platform.ConstantResolver.longValue(ConstantResolver.java:179)
at jnr.constants.platform.OpenFlags.intValue(OpenFlags.java:31)
at org.jruby.RubyFile.createFileClass(RubyFile.java:135)
at org.jruby.Ruby.initCore(Ruby.java:1547)
at org.jruby.Ruby.bootstrap(Ruby.java:1318)
at org.jruby.Ruby.init(Ruby.java:1217)
at org.jruby.Ruby.newInstance(Ruby.java:362)
at org.jruby.embed.internal.LocalContext.getRuntime(LocalContext.java:117)
at org.jruby.embed.internal.SingleThreadLocalContextProvider.getRuntime(SingleThreadLocalContextProvider.java:62)
at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.runParser(EmbedRubyRuntimeAdapterImpl.java:167)
at org.jruby.embed.internal.EmbedRubyRuntimeAdapterImpl.parse(EmbedRubyRuntimeAdapterImpl.java:94)
at org.jruby.embed.ScriptingContainer.parse(ScriptingContainer.java:1227)
at org.jruby.embed.ScriptingContainer.runScriptlet(ScriptingContainer.java:1287)
at LambdaHandler.<init>(LambdaHandler.java:53)
at LambdaHandler.<init>(LambdaHandler.java:44)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
END RequestId: caa0d7b1-d626-11e8-8cd7-4be3c49bb13e
REPORT RequestId: caa0d7b1-d626-11e8-8cd7-4be3c49bb13e Duration: 18.54 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 75 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment