Dávid Paksy created ZOOKEEPER-5040:
--------------------------------------
Summary: Upgrade burningwave mockdns to 0.27.2 for JDK25
Key: ZOOKEEPER-5040
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5040
Project: ZooKeeper
Issue Type: Task
Reporter: Dávid Paksy
With the current 0.25.4 Burningwave Tools (mockdns) version tests are failing
with JDK25 is used:
{noformat}
[ERROR] org.apache.zookeeper.server.quorum.QuorumCanonicalizeTest Time
elapsed: 0.203 s <<< ERROR!
java.lang.ExceptionInInitializerError
at
org.burningwave.tools.net.DefaultHostResolver.<clinit>(DefaultHostResolver.java:68)
at
org.burningwave.tools.net.HostResolutionRequestInterceptor.<clinit>(HostResolutionRequestInterceptor.java:61)
at
org.apache.zookeeper.server.quorum.QuorumCanonicalizeTest.setupDNSMocks(QuorumCanonicalizeTest.java:51)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:686)
at
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
at
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131
...
Suppressed: java.lang.NoClassDefFoundError: Could not initialize class
org.burningwave.tools.net.HostResolutionRequestInterceptor
at
org.apache.zookeeper.server.quorum.QuorumCanonicalizeTest.clearDNSMocks(QuorumCanonicalizeTest.java:62)
at
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
...
Caused by: java.lang.RuntimeException:
io.github.toolfactory.jvm.Driver$InitializeException: Could not initialize
NativeDriver
at
org.burningwave.core.assembler.StaticComponentContainer.<clinit>(StaticComponentContainer.java:481)
... 56 more
Caused by: io.github.toolfactory.jvm.Driver$InitializeException: Could not
initialize NativeDriver
at io.github.toolfactory.jvm.DriverAbst.init(DriverAbst.java:176)
at io.github.toolfactory.jvm.Driver$Factory.getNew(Driver.java:142)
at
org.burningwave.core.assembler.StaticComponentContainer.<clinit>(StaticComponentContainer.java:340)
... 56 more
Caused by: io.github.toolfactory.jvm.util.ObjectProvider$BuildingException:
Exception occurred while retrieving the implementation of class
io.github.toolfactory.jvm.function.catalog.ConstructorInvokeFunction (jvm
architecture: x64, jvm version: 25, jvm vendor: Eclipse Adoptium)
at
io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObject(ObjectProvider.java:95)
at
io.github.toolfactory.jvm.DriverAbst.getOrBuildConstructorInvoker(DriverAbst.java:410)
at io.github.toolfactory.jvm.DriverAbst.init(DriverAbst.java:135)
... 58 more
Caused by: java.lang.reflect.InvocationTargetException
at
java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:74)
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at
java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:483)
at
io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObjectInternal(ObjectProvider.java:144)
at
io.github.toolfactory.jvm.util.ObjectProvider.getOrBuildObject(ObjectProvider.java:92)
... 60 more
Caused by: java.lang.ClassNotFoundException:
jdk.internal.reflect.NativeConstructorAccessorImpl
at
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:467)
at java.base/java.lang.Class.forName(Class.java:458)
at
io.github.toolfactory.jvm.function.catalog.ConstructorInvokeFunction$ForJava9.<init>(ConstructorInvokeFunction.java:70)
at
java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
... 64 more
{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)