]
Dan Berindei updated ISPN-10144:
--------------------------------
Git Pull Request:
Netty wants access to jdk.internal.misc.Unsafe
----------------------------------------------
Key: ISPN-10144
URL:
https://issues.jboss.org/browse/ISPN-10144
Project: Infinispan
Issue Type: Enhancement
Components: Server
Affects Versions: 9.4.12.Final, 10.0.0.Beta3
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Minor
Netty tries to use {{jdk.internal.misc.Unsafe.allocateUninitializedArray()}} and logs a
warning if it's not available. It's not critical, but one less warning is always
good.
{noformat}
2019-04-23 18:49:39,354 DEBUG [io.netty.util.internal.PlatformDependent0] (MSC service
thread 1-2) direct buffer constructor: unavailable:
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0$4.run(PlatformDependent0.java:224)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:218)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:212)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:80)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.util.AsciiString.hashCode(AsciiString.java:1130)
at java.base/java.util.HashMap.hash(HashMap.java:339)
at java.base/java.util.HashMap.put(HashMap.java:607)
at
io.netty:ispn-10.0@4.1.30.Final//io.netty.handler.codec.http.cors.CorsConfigBuilder.build(CorsConfigBuilder.java:360)
at
org.infinispan.server.rest:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.rest.configuration.RestServerConfigurationBuilder.corsAllowForLocalhost(RestServerConfigurationBuilder.java:75)
at
org.infinispan.server.endpoint:ispn-10.0@10.0.0-SNAPSHOT//org.infinispan.server.endpoint.subsystem.RestService.start(RestService.java:119)
at
org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1736)
at
org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1698)
at
org.jboss.msc@1.4.3.Final//org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1556)
at
org.jboss.threads@2.3.2.Final//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads@2.3.2.Final//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}