java.lang.ClassCastException

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

Solutions on the web19061

  • org.bson.types.Binary cannot be cast to [B
  • org.bson.types.Binary cannot be cast to [B
  • org.bson.types.Binary cannot be cast to [B
  • Stack trace

    • java.lang.ClassCastException: org.bson.types.Binary cannot be cast to [B at com.mongodb.gridfs.GridFSDBFile.getChunk(GridFSDBFile.java:89) at com.mongodb.gridfs.GridFSDBFile.writeTo(GridFSDBFile.java:75)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.