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

com.mongodb.MongoWriteException is not java.io.Serializable

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • Java Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Summary

      com.mongodb.MongoWriteException is not java.io.Serializable. This is because of com.mongodb.MongoWriteException#error of type `com.mongodb.WriteError` not implementing Serializable.

      Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).

      4.7.2 (Issue is present in latest master as well)

      How to Reproduce

      Try to serialize any exception chain containing MongoWriteException

      Additional Background

      -

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            govind.balaji@sprinklr.com Govind Balaji S
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: