java.lang.ClassCastException: java.nio.HeapByteBufferR cannot be cast to sun.nio.ch.DirectBuffer

GitHub | robertroeser | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ClassCastException in Unsafe buffer wrapping a HeapByteBufferR

    GitHub | 9 months ago | robertroeser
    java.lang.ClassCastException: java.nio.HeapByteBufferR cannot be cast to sun.nio.ch.DirectBuffer

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.nio.HeapByteBufferR cannot be cast to sun.nio.ch.DirectBuffer

      at org.agrona.concurrent.UnsafeBuffer.putBytes()
    2. org.agrona.concurrent
      UnsafeBuffer.putBytes
      1. org.agrona.concurrent.UnsafeBuffer.putBytes(UnsafeBuffer.java:891)
      2. org.agrona.concurrent.UnsafeBuffer.putBytes(UnsafeBuffer.java:869)
      2 frames