Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-14

Serialization Exception on toString()

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 0.8
    • None
    • None
    • None

    Description

      What is the solution to this? Should you just remove the binary fields? Should you include the binary field name and something to indicate it is binary?

      Caused by: java.lang.RuntimeException: can't serialize type : class [B
      at com.mongodb.util.JSON.serialize(JSON.java:130)
      at com.mongodb.util.JSON.serialize(JSON.java:109)
      at com.mongodb.util.JSON.serialize(JSON.java:33)
      at com.mongodb.BasicDBObject.toString(BasicDBObject.java:192)

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: