<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:48 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-4334] NullPointerException in org.bson.codecs.Encoder.encode</title>
                <link>https://jira.mongodb.org/browse/JAVA-4334</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I have a class that implements Codec&amp;lt;T&amp;gt;. In the `encode` method there was a NPE thrown but there was nothing in the logs. It took me a few hours to figure it out. That should be fixed so other people are not hit by this like me.&lt;/p&gt;

&lt;p&gt;I&apos;m using the latest version of the async Java driver.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1891478">JAVA-4334</key>
            <summary>NullPointerException in org.bson.codecs.Encoder.encode</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="praveenmay03@gmail.com">Praveen D</reporter>
                        <labels>
                            <label>external-user</label>
                    </labels>
                <created>Wed, 6 Oct 2021 12:10:24 +0000</created>
                <updated>Wed, 4 May 2022 13:12:37 +0000</updated>
                            <resolved>Mon, 11 Oct 2021 14:18:54 +0000</resolved>
                                    <version>3.11.1</version>
                                                    <component>Async</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4115703" author="jeff.yemin" created="Mon, 11 Oct 2021 14:16:03 +0000"  >&lt;p&gt;Note: the stack trace indicate use of release 4.1.1, not, 3.11.1&lt;/p&gt;</comment>
                            <comment id="4110221" author="jeff.yemin" created="Thu, 7 Oct 2021 14:26:11 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=praveenmay03%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;praveenmay03@gmail.com&quot;&gt;praveenmay03@gmail.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thanks for letting us know.&#160; We&apos;ll look into it and get back to you.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="4104931" author="praveenmay03@gmail.com" created="Wed, 6 Oct 2021 12:16:35 +0000"  >&lt;p&gt;I am getting the below error while using the default codec:&lt;br/&gt;
{&quot;timeMillis&quot;:1633517884780,&quot;thread&quot;:&quot;Thread-12&quot;,&quot;level&quot;:&quot;ERROR&quot;,&quot;loggerName&quot;:&quot;com.test.springboot.webfluxmodule.library.filters.ObservabilityFilter&quot;,&quot;message&quot;:&quot;Response Error&quot;,&quot;thrown&quot;:{&quot;commonElementCount&quot;:0,&quot;name&quot;:&quot;com.test.springboot.exceptionmodule.entities.exception.UnhandledException&quot;,&quot;cause&quot;:{&quot;commonElementCount&quot;:0,&quot;localizedMessage&quot;:&quot;An exception occurred when decoding using the AutomaticPojoCodec.\r\nDecoding into a &apos;Rules&apos; failed with the following exception:\r\n\r\nFailed to decode &apos;Rules&apos;. Decoding &apos;rule&apos; errored with: Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;\r\n\r\nA custom Codec or PojoCodec may need to be explicitly configured and registered to handle this type.&quot;,&quot;message&quot;:&quot;An exception occurred when decoding using the AutomaticPojoCodec.\r\nDecoding into a &apos;Rules&apos; failed with the following exception:\r\n\r\nFailed to decode &apos;Rules&apos;. Decoding &apos;rule&apos; errored with: Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;\r\n\r\nA custom Codec or PojoCodec may need to be explicitly configured and registered to handle this type.&quot;,&quot;name&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException&quot;,&quot;cause&quot;:{&quot;commonElementCount&quot;:0,&quot;localizedMessage&quot;:&quot;Failed to decode &apos;Rules&apos;. Decoding &apos;rule&apos; errored with: Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;message&quot;:&quot;Failed to decode &apos;Rules&apos;. Decoding &apos;rule&apos; errored with: Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;name&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException&quot;,&quot;cause&quot;:{&quot;commonElementCount&quot;:0,&quot;localizedMessage&quot;:&quot;Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;message&quot;:&quot;Failed to decode &apos;Rule&apos;. Decoding &apos;criteria&apos; errored with: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;name&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException&quot;,&quot;cause&quot;:{&quot;commonElementCount&quot;:0,&quot;localizedMessage&quot;:&quot;Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;message&quot;:&quot;Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;name&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException&quot;,&quot;cause&quot;:&lt;/p&gt;
{&quot;commonElementCount&quot;:0,&quot;localizedMessage&quot;:&quot;Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;message&quot;:&quot;Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;&quot;,&quot;name&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException&quot;,&quot;extendedStackTrace&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodePropertyModel(PojoCodecImpl.java:216) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodeProperties(PojoCodecImpl.java:198) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:122) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:126) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.LazyPojoCodec.decode(LazyPojoCodec.java:57) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.DecoderContext.decodeWithChildContext(DecoderContext.java:96) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodePropertyModel(PojoCodecImpl.java:219) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodeProperties(PojoCodecImpl.java:198) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:122) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:126) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.LazyPojoCodec.decode(LazyPojoCodec.java:57) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.DecoderContext.decodeWithChildContext(DecoderContext.java:96) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodePropertyModel(PojoCodecImpl.java:219) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodeProperties(PojoCodecImpl.java:198) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:122) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.PojoCodecImpl.decode(PojoCodecImpl.java:126) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.pojo.AutomaticPojoCodec.decode(AutomaticPojoCodec.java:37) ~[bson-4.1.1.jar:?]\n\tat com.mongodb.internal.operation.CommandResultArrayCodec.decode(CommandResultArrayCodec.java:52) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:60) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:87) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:42) ~[bson-4.1.1.jar:?]\n\tat org.bson.internal.LazyCodec.decode(LazyCodec.java:48) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.BsonDocumentCodec.readValue(BsonDocumentCodec.java:104) ~[bson-4.1.1.jar:?]\n\tat com.mongodb.internal.operation.CommandResultDocumentCodec.readValue(CommandResultDocumentCodec.java:63) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:87) ~[bson-4.1.1.jar:?]\n\tat org.bson.codecs.BsonDocumentCodec.decode(BsonDocumentCodec.java:42) ~[bson-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.ReplyMessage.&amp;lt;init&amp;gt;(ReplyMessage.java:51) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection.getCommandResult(InternalStreamConnection.java:477) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection.access$1000(InternalStreamConnection.java:78) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:462) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$2$1.onResult(InternalStreamConnection.java:440) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:745) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$MessageHeaderCallback$MessageCallback.onResult(InternalStreamConnection.java:712) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:582) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.InternalStreamConnection$5.completed(InternalStreamConnection.java:579) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:250) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat com.mongodb.internal.connection.AsynchronousChannelStream$BasicCompletionHandler.completed(AsynchronousChannelStream.java:233) ~[mongodb-driver-core-4.1.1.jar:?]\n\tat sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:127) ~[?:?]\n\tat sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:282) ~[?:?]\n\tat sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.completed(WindowsAsynchronousSocketChannelImpl.java:581) ~[?:?]\n\tat sun.nio.ch.Iocp$EventHandlerTask.run(Iocp.java:387) ~[?:?]\n\tat sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112) ~[?:?]\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]\n\tat java.lang.Thread.run(Thread.java:830) ~[?:?]\n&quot;}
&lt;p&gt;,&quot;extendedStackTrace&quot;:&quot;org.bson.codecs.configuration.CodecConfigurationException: Failed to decode &apos;Criteria&apos;. Decoding &apos;ifCriteria&apos; errored with: Missing codec in &apos;Criteria&apos; for &apos;ifCriteria&apos;\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodePropertyModel(PojoCodecImpl.java:225) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;bson-4.1.1.jar:?&amp;#93;&lt;/span&gt;\n\tat org.bson.codecs.pojo.PojoCodecImpl.decodeProperties(PojoCodecImpl.java:198) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;bson-4.1.1.jar:?&amp;#93;&lt;/span&gt;\n\tat&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1891484">JAVA-4335</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzndxr:</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>