java.lang.ClassCastException: org.bson.types.Binary cannot be cast to [B

JIRA | alezozov | 6 years ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    How to correctly read from RandomAccessFile in Clojure?

    Stack Overflow | 5 years ago | Jakub Arnold
    java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to [B (parser.clj:0)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.bson.types.Binary cannot be cast to [B

      at com.mongodb.gridfs.GridFSDBFile.getChunk()
    2. MongoDB Java Driver
      GridFSDBFile.writeTo
      1. com.mongodb.gridfs.GridFSDBFile.getChunk(GridFSDBFile.java:89)
      2. com.mongodb.gridfs.GridFSDBFile.writeTo(GridFSDBFile.java:75)
      2 frames