Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pebble doesn't work on jdk 13 #487

Closed
jknack opened this issue Nov 23, 2019 · 2 comments
Closed

pebble doesn't work on jdk 13 #487

jknack opened this issue Nov 23, 2019 · 2 comments
Milestone

Comments

@jknack
Copy link

jknack commented Nov 23, 2019

On JDK13 a simple initialization, results in an error.

PebbleEngine build = new PebbleEngine.Builder().build();

Stacktrace:

	java.lang.ExceptionInInitializerError
	at com.mitchellbosecke.pebble.attributes.MemberCacheUtils.<init>(MemberCacheUtils.java:19)
	at com.mitchellbosecke.pebble.attributes.DefaultAttributeResolver.<init>(DefaultAttributeResolver.java:16)
	at com.mitchellbosecke.pebble.extension.core.AttributeResolverExtension.getAttributeResolver(AttributeResolverExtension.java:14)
	at com.mitchellbosecke.pebble.extension.ExtensionRegistry.addExtension(ExtensionRegistry.java:144)
	at com.mitchellbosecke.pebble.extension.ExtensionRegistry.addExtension(ExtensionRegistry.java:77)
	at com.mitchellbosecke.pebble.PebbleEngine$Builder.buildExtensionRegistry(PebbleEngine.java:596)
	at com.mitchellbosecke.pebble.PebbleEngine$Builder.build(PebbleEngine.java:535)
	at io.jooby.pebble.PebbleModuleTest.render(PebbleModuleTest.java:40)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:675)
	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:125)
....
Caused by: java.lang.RuntimeException: Could not load unsafe method set
	at com.mitchellbosecke.pebble.attributes.UnsafeMethods.createUnsafeMethodsSet(UnsafeMethods.java:35)
	at com.mitchellbosecke.pebble.attributes.UnsafeMethods.<clinit>(UnsafeMethods.java:17)
	... 71 more
Caused by: java.lang.NoSuchMethodException: java.lang.Runtime.traceInstructions(boolean)
	at java.base/java.lang.Class.getMethod(Class.java:2109)
	at com.mitchellbosecke.pebble.attributes.UnsafeMethods.parseMethodSpec(UnsafeMethods.java:57)
	at com.mitchellbosecke.pebble.attributes.UnsafeMethods.createUnsafeMethodsSet(UnsafeMethods.java:31)
	... 72 more

@eduramiba
Copy link

It works with version 3.1.0 but not on 3.1.1

@ebussieres ebussieres added this to the 3.1.2 milestone Nov 24, 2019
@ebussieres
Copy link
Member

Yeah I know what is the cause of this. I'll fix this this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants