<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:02 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-2373] org.bson.codecs.configuration.CodecConfigurationException: Can&apos;t find a codec for class org.joda.time.DateTime.</title>
                <link>https://jira.mongodb.org/browse/JAVA-2373</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I use  the aggregate functionality of the DBcollection. However the aggregate functionality internally uses the default mongo codecs and is not picking up the codec that i have registered with the mongo client as part of the mongoClientOptions. Ideally it should consider the codec registry registered by the user and not the default ? &lt;/p&gt;</description>
                <environment></environment>
        <key id="327314">JAVA-2373</key>
            <summary>org.bson.codecs.configuration.CodecConfigurationException: Can&apos;t find a codec for class org.joda.time.DateTime.</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="avinashmeda">Avinash Venkatesaiah</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Oct 2016 14:16:36 +0000</created>
                <updated>Wed, 11 Sep 2019 19:11:17 +0000</updated>
                            <resolved>Sun, 27 Nov 2016 14:36:23 +0000</resolved>
                                    <version>3.3.0</version>
                                                    <component>Codecs</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1442801" author="jeff.yemin" created="Sun, 27 Nov 2016 14:36:23 +0000"  >&lt;p&gt;See &lt;a href=&quot;http://mongodb.github.io/mongo-java-driver/3.4/driver/tutorials/databases-collections/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this section&lt;/a&gt; of the reference documentation.&lt;/p&gt;</comment>
                            <comment id="1419790" author="avinashmeda" created="Thu, 27 Oct 2016 18:51:52 +0000"  >&lt;p&gt;Can you help me with an example to get the handle to a collection of type MongoCollection ? Or how to register the encoder and decoder?&lt;/p&gt;</comment>
                            <comment id="1419517" author="jeff.yemin" created="Thu, 27 Oct 2016 15:00:15 +0000"  >&lt;p&gt;The &lt;a href=&quot;http://api.mongodb.com/java/current/com/mongodb/MongoClientOptions.html#getCodecRegistry--&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documentation&lt;/a&gt; for MongoClientOptions#getCodecRegistry states that &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Note that instances of DB and DBCollection do not use the registry, so it&apos;s not necessary to include a codec for DBObject in the registry.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;In order to make use of the registry you will need to use the new MongoCollection class.  If you have to stick with DBCollection, you might try &lt;a href=&quot;http://api.mongodb.com/java/current/org/bson/BSON.html#addDecodingHook-java.lang.Class-org.bson.Transformer-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;BSON#addDecodingHook&lt;/a&gt; and &lt;a href=&quot;http://api.mongodb.com/java/current/org/bson/BSON.html#addDecodingHook-java.lang.Class-org.bson.Transformer-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;BSON#addEncodingHook&lt;/a&gt; instead.&lt;/p&gt;</comment>
                    </comments>
                    <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|hsra9j:</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>