Hi,
We are migrating our application from JDK 8 to JDK 11.
Oracle Coherence Version# 3.7.1.5
JAVA vendor- OpenJDK JDK11.0.3
Tomcat Version# 9.0.56
---------
I got the below exception in JDK11, when I refresh/load the coherence cache.
Followed the below steps:
- Updated the JDK from 8 to 11
- Done the build using RedHat OpenJDK11.0.13 and deploy the code into the Tomcat server.
- When I try to load the cache, got the below exception.
kindly help me to fix this issue.
-------
Oracle Coherence Version 3.7.1.5 Build 35008
Grid Edition: Development mode
Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
2022-02-14 05:47:48,231 INFO Logger@428696898 3.7.1.5 Coherence - 2022-02-14 05:47:48.231/1.330 Oracle Coherence GE 3.7.1.5 <Info> (thread=main, member=n/a): Loaded Reporter configuration from "jar:file:/rbc/home/mrdstg/MRDCache-build-by-j11/lib/coherence-3.7.1.5.jar!/reports/report-group.xml"
2022-02-14 05:47:49,478 ERROR Logger@428696898 3.7.1.5 Coherence - 2022-02-14 05:47:49.477/2.576 Oracle Coherence GE 3.7.1.5 <Error> (thread=main, member=n/a): Error while starting cluster: java.lang.ExceptionInInitializerError
at com.oracle.common.io.BufferManagers$NetworkDirectManagerHolder.<clinit>(BufferManagers.java:271)
at com.oracle.common.io.BufferManagers.getNetworkDirectManager(BufferManagers.java:82)
at com.oracle.common.internal.net.socketbus.SocketBusDriver$DefaultDependencies.<clinit>(SocketBusDriver.java:740)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.getDrivers(SimpleDepot.java:351)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.validate(SimpleDepot.java:425)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:50)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:40)
at com.tangosol.coherence.component.net.Cluster.configureSockets(Cluster.CDB:40)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:28)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:427)
at com.rbccm.fic.coherence.CoherenceCacheLoader.performAction(CoherenceCacheLoader.java:137)
at com.rbccm.fic.coherence.CoherenceCacheLoader.main(CoherenceCacheLoader.java:127)
Caused by: java.lang.ArithmeticException: / by zero
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:80)
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:41)
at com.oracle.common.io.BufferManagers$DirectManagerHolder$2.<init>(BufferManagers.java:188)
at com.oracle.common.io.BufferManagers$DirectManagerHolder.<clinit>(BufferManagers.java:174)
... 17 more
2022-02-14 05:47:49,489 ERROR main com.rbccm.fic.coherence.CoherenceCacheLoader - Error occured while loading cache for - [INST-GOV]. StackTrace: java.lang.ExceptionInInitializerError
at com.oracle.common.io.BufferManagers$NetworkDirectManagerHolder.<clinit>(BufferManagers.java:271)
at com.oracle.common.io.BufferManagers.getNetworkDirectManager(BufferManagers.java:82)
at com.oracle.common.internal.net.socketbus.SocketBusDriver$DefaultDependencies.<clinit>(SocketBusDriver.java:740)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.getDrivers(SimpleDepot.java:351)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.validate(SimpleDepot.java:425)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:50)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:40)
at com.tangosol.coherence.component.net.Cluster.configureSockets(Cluster.CDB:40)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:28)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:427)
at com.rbccm.fic.coherence.CoherenceCacheLoader.performAction(CoherenceCacheLoader.java:137)
at com.rbccm.fic.coherence.CoherenceCacheLoader.main(CoherenceCacheLoader.java:127)
Caused by: java.lang.ArithmeticException: / by zero
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:80)
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:41)
at com.oracle.common.io.BufferManagers$DirectManagerHolder$2.<init>(BufferManagers.java:188)
at com.oracle.common.io.BufferManagers$DirectManagerHolder.<clinit>(BufferManagers.java:174)
... 17 more
java.lang.ExceptionInInitializerError
at com.oracle.common.io.BufferManagers$NetworkDirectManagerHolder.<clinit>(BufferManagers.java:271)
at com.oracle.common.io.BufferManagers.getNetworkDirectManager(BufferManagers.java:82)
at com.oracle.common.internal.net.socketbus.SocketBusDriver$DefaultDependencies.<clinit>(SocketBusDriver.java:740)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.getDrivers(SimpleDepot.java:351)
at com.oracle.common.net.exabus.util.SimpleDepot$DefaultDependencies.validate(SimpleDepot.java:425)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:50)
at com.oracle.common.net.exabus.util.SimpleDepot.<init>(SimpleDepot.java:40)
at com.tangosol.coherence.component.net.Cluster.configureSockets(Cluster.CDB:40)
at com.tangosol.coherence.component.net.Cluster.onStart(Cluster.CDB:28)
at com.tangosol.coherence.component.net.Cluster.start(Cluster.CDB:11)
at com.tangosol.coherence.component.util.SafeCluster.startCluster(SafeCluster.CDB:3)
at com.tangosol.coherence.component.util.SafeCluster.restartCluster(SafeCluster.CDB:10)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:26)
at com.tangosol.coherence.component.util.SafeCluster.start(SafeCluster.CDB:2)
at com.tangosol.net.CacheFactory.ensureCluster(CacheFactory.java:427)
at com.rbccm.fic.coherence.CoherenceCacheLoader.performAction(CoherenceCacheLoader.java:137)
at com.rbccm.fic.coherence.CoherenceCacheLoader.main(CoherenceCacheLoader.java:127)
Caused by: java.lang.ArithmeticException: / by zero
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:80)
at com.oracle.common.internal.io.SegmentedBufferManager.<init>(SegmentedBufferManager.java:41)
at com.oracle.common.io.BufferManagers$DirectManagerHolder$2.<init>(BufferManagers.java:188)
at com.oracle.common.io.BufferManagers$DirectManagerHolder.<clinit>(BufferManagers.java:174)
... 17 more