<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:04:15 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-5305] com.mongodb.MongoWriteException is not java.io.Serializable</title>
                <link>https://jira.mongodb.org/browse/JAVA-5305</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;h4&gt;&lt;a name=&quot;Summary&quot;&gt;&lt;/a&gt;Summary&lt;/h4&gt;

&lt;p&gt;com.mongodb.MongoWriteException is not java.io.Serializable. This is because of com.mongodb.MongoWriteException#error of type `com.mongodb.WriteError` not implementing Serializable.&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;Pleaseprovidetheversionofthedriver.Ifapplicable%2CpleaseprovidetheMongoDBserverversionandtopology%28standalone%2Creplicaset%2Corshardedcluster%29.&quot;&gt;&lt;/a&gt;Please provide the version of the driver. If applicable, please provide the MongoDB server version and topology (standalone, replica set, or sharded cluster).&lt;/h4&gt;

&lt;p&gt;4.7.2 (Issue is present in latest master as well)&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;HowtoReproduce&quot;&gt;&lt;/a&gt;How to Reproduce&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;Try to serialize any exception chain containing MongoWriteException&lt;/em&gt;&lt;/p&gt;
&lt;h4&gt;&lt;a name=&quot;AdditionalBackground&quot;&gt;&lt;/a&gt;Additional Background&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;-&lt;/em&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2562442">JAVA-5305</key>
            <summary>com.mongodb.MongoWriteException is not java.io.Serializable</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="11156" iconUrl="https://jira.mongodb.org/images/icons/statuses/generic.png" description="">Waiting for Reporter</status>
                    <statusCategory id="4" key="indeterminate" colorName="inprogress"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="govind.balaji@sprinklr.com">Govind Balaji S</reporter>
                        <labels>
                    </labels>
                <created>Wed, 31 Jan 2024 11:52:17 +0000</created>
                <updated>Mon, 5 Feb 2024 16:56:45 +0000</updated>
                                                                            <component>API</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="6060204" author="JIRAUSER1277055" created="Thu, 1 Feb 2024 18:27:36 +0000"  >&lt;p&gt;Ah, I could not find the open ticket. The framework is internal, so I am able to workaround now by falling back to gson if java-serialization fails. I will pick this and audit soon.&lt;/p&gt;</comment>
                            <comment id="6059077" author="jeff.yemin" created="Thu, 1 Feb 2024 13:51:22 +0000"  >&lt;p&gt;Ah, interesting.  Is is an open source framework or something internal?  If open source, please drop a link.&lt;/p&gt;

&lt;p&gt;An audit would be useful.  Thanks.&lt;/p&gt;

&lt;p&gt;By the way, this is already in the backlog with &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2131&quot; title=&quot;Make all classes referenced by MongoException subclasses implement Serializable&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2131&quot;&gt;JAVA-2131&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="6059067" author="JIRAUSER1277055" created="Thu, 1 Feb 2024 13:48:06 +0000"  >&lt;p&gt;I stumbled across this when an exception chain containing this could not make it across a grpc call. The framework I am using happens to use java-serialization for propagating exceptions. This looks fair enough since `java.lang.Exception implements Serializable` I can audit other exceptions as well and fix if that is okay.&lt;/p&gt;</comment>
                            <comment id="6059010" author="jeff.yemin" created="Thu, 1 Feb 2024 13:43:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=govind.balaji%40sprinklr.com&quot; class=&quot;user-hover&quot; rel=&quot;govind.balaji@sprinklr.com&quot;&gt;govind.balaji@sprinklr.com&lt;/a&gt; why do you need this particular exception (or any exception) to be serializable?  I&apos;m not sure, but I have a feeling if we look deeper we will find many more that are not.&lt;/p&gt;</comment>
                            <comment id="6058897" author="JIRAUSER1277055" created="Thu, 1 Feb 2024 13:41:37 +0000"  >&lt;p&gt;pr: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/1302&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/1302&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="6055520" author="JIRAUSER1277055" created="Wed, 31 Jan 2024 12:54:54 +0000"  >&lt;p&gt;This only needs a minor fix. Let me know if I can pick this, or if there is any reason for `WriteError` to remain non-Serializable&lt;/p&gt;</comment>
                            <comment id="6055378" author="dbeng-pm-bot" created="Wed, 31 Jan 2024 11:52:20 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=govind.balaji%40sprinklr.com&quot; class=&quot;user-hover&quot; rel=&quot;govind.balaji@sprinklr.com&quot;&gt;govind.balaji@sprinklr.com&lt;/a&gt;, thank you for reporting this issue! The team will look into it and get back to you soon. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="269064">JAVA-2131</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26442"><![CDATA[Java Drivers]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i2t5rc:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>