Skip to content

Instantly share code, notes, and snippets.

@SFEley
Created October 22, 2018 16:20
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/7c3ba207cda253a953bc46e029503200 to your computer and use it in GitHub Desktop.
Save SFEley/7c3ba207cda253a953bc46e029503200 to your computer and use it in GitHub Desktop.
AWS Lambda error - Java8 runtime, JRuby 9.2.0.0
START RequestId: 58cbe585-d3e1-11e8-a5a7-efc54ba73b45 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:30)
at org.jruby.RubyFile.createFileClass(RubyFile.java:140)
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: 58cbe585-d3e1-11e8-a5a7-efc54ba73b45
REPORT RequestId: 58cbe585-d3e1-11e8-a5a7-efc54ba73b45 Duration: 7.86 ms Billed Duration: 100 ms Memory Size: 512 MB Max Memory Used: 64 MB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment