I suddenly started seeing java.lang.ClassNotFoundException: jdk.internal.misc.Unsafe when connecting to cassandra cluster.
2018-02-21 14:15:41 DEBUG PlatformDependent0:76 - java.nio.DirectByteBuffer.<init>(long, int): available
2018-02-21 14:15:41 DEBUG PlatformDependent:71 - Platform: Windows
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - Java version: 8
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - sun.misc.Unsafe: available
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - -Dio.netty.tmpdir: C:\Users\Dell\AppData\Local\Temp (java.io.tmpdir)
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - -Dio.netty.bitMode: 64 (sun.arch.data.model)
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - -Dio.netty.noPreferDirect: false
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - -Dio.netty.maxDirectMemory: 3797417984 bytes
2018-02-21 14:15:41 DEBUG PlatformDependent:76 - -Dio.netty.uninitializedArrayAllocationThreshold: -1
2018-02-21 14:15:41 DEBUG CleanerJava6:71 - java.nio.ByteBuffer.cleaner(): available
2018-02-21 14:15:41 DEBUG SystemProperties:48 - com.datastax.driver.FORCE_NIO is undefined, using default value false
2018-02-21 14:15:41 INFO NettyUtil:83 - Did not find Netty's native epoll transport in the classpath, defaulting to NIO.
2018-02-21 14:15:41 DEBUG MultithreadEventLoopGroup:76 - -Dio.netty.eventLoopThreads: 8
2018-02-21 14:15:41 DEBUG NioEventLoop:76 - -Dio.netty.noKeySetOptimization: false
2018-02-21 14:15:41 DEBUG NioEventLoop:76 - -Dio.netty.selectorAutoRebuildThreshold: 512
2018-02-21 14:15:41 DEBUG PlatformDependent:71 - org.jctools-core.MpscChunkedArrayQueue: available
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@2c35e847
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@74751b3
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@741a8937
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@306e95ec
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@52af26ee
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@6fd83fc1
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@4f2b503c
2018-02-21 14:15:42 TRACE NioEventLoop:46 - instrumented a special java.util.Set into: sun.nio.ch.WindowsSelectorImpl@bae7dc0
2018-02-21 14:15:42 DEBUG ResourceLeakDetector:81 - -Dio.netty.leakDetection.level: simple
2018-02-21 14:15:42 DEBUG ResourceLeakDetector:81 - -Dio.netty.leakDetection.maxRecords: 4
2018-02-21 14:15:42 DEBUG ResourceLeakDetectorFactory:76 - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@550dbc7a
2018-02-21 14:15:42 DEBUG SystemProperties:48 - com.datastax.driver.EXTENDED_PEER_CHECK is undefined, using default value true
2018-02-21 14:15:42 TRACE STATES:138 - canReconnectNow=true
2018-02-21 14:15:42 DEBUG STATES:88 - [localhost/0:0:0:0:0:0:0:1:9042] preparing to open 1 new connections, total = 1
2018-02-21 14:15:42 DEBUG SystemProperties:48 - com.datastax.driver.DISABLE_COALESCING is undefined, using default value false
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.numHeapArenas: 8
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.numDirectArenas: 8
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.pageSize: 8192
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.maxOrder: 11
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.chunkSize: 16777216
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.tinyCacheSize: 512
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.smallCacheSize: 256
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.normalCacheSize: 64
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.maxCachedBufferCapacity: 32768
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.cacheTrimInterval: 8192
2018-02-21 14:15:42 DEBUG PooledByteBufAllocator:76 - -Dio.netty.allocator.useCacheForAllThreads: true
2018-02-21 14:15:42 DEBUG ByteBufUtil:76 - -Dio.netty.allocator.type: unpooled
2018-02-21 14:15:42 DEBUG ByteBufUtil:76 - -Dio.netty.threadLocalDirectBufferSize: 65536
2018-02-21 14:15:42 DEBUG ByteBufUtil:76 - -Dio.netty.maxThreadLocalCharBufferSize: 16384
2018-02-21 14:15:43 DEBUG Connection:164 - Connection[localhost/0:0:0:0:0:0:0:1:9042-1, inFlight=0, closed=false] Error connecting to localhost/0:0:0:0:0:0:0:1:9042 (Connection refused: no further information: localhost/0:0:0:0:0:0:0:1:9042)
2018-02-21 14:15:43 TRACE STATES:429 - Defuncting Connection[localhost/0:0:0:0:0:0:0:1:9042-1, inFlight=0, closed=false]
com.datastax.driver.core.exceptions.TransportException: [localhost/0:0:0:0:0:0:0:1:9042] Cannot connect
at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:165)
at com.datastax.driver.core.Connection$1.operationComplete(Connection.java:148)
at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:507)
at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:500)
at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:479)
at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:420)
at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:122)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(AbstractNioChannel.java:278)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:294)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:633)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:131)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:138)
at java.lang.Thread.run(Thread.java:745)
Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: localhost/0:0:0:0:0:0:0:1:9042
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:258)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:291)
... 7 more
Caused by: java.net.ConnectException: Connection refused: no further information
... 11 more
2018-02-21 14:15:43 DEBUG STATES:125 - [localhost/0:0:0:0:0:0:0:1:9042] preventing new connections for the next 1000 ms
2018-02-21 14:15:43 DEBUG STATES:108 - [localhost/0:0:0:0:0:0:0:1:9042] Connection[localhost/0:0:0:0:0:0:0:1:9042-1, inFlight=0, closed=false] failed, remaining = 0
2018-02-21 14:15:43 DEBUG Connection:690 - Connection[localhost/0:0:0:0:0:0:0:1:9042-1, inFlight=0, closed=true] closing connection
2018-02-21 14:15:43 DEBUG ControlConnection:243 - [Control connection] error on localhost/0:0:0:0:0:0:0:1:9042 connection, trying next host
Please help.