<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:00 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-2760] Codec conversion for list of list</title>
                <link>https://jira.mongodb.org/browse/JAVA-2760</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I am getting following error &quot;readStartArray can only be called when CurrentBSONType is ARRAY, not when CurrentBSONType is NULL&quot;&lt;/p&gt;

&lt;p&gt;It is trying to convert into List&amp;lt;List&amp;lt;T&amp;gt;&amp;gt;&lt;br/&gt;
and data in mongo is&lt;br/&gt;
[&lt;br/&gt;
    [ &lt;br/&gt;
        &lt;/p&gt;
{
            &quot;id&quot; : 10927809,
        }
&lt;p&gt;, &lt;/p&gt;
        {
            &quot;id&quot; : 10927810,
        }
&lt;p&gt;    ],&lt;br/&gt;
    null&lt;br/&gt;
]&lt;br/&gt;
I am using mongo 3.6 with java async driver 3.6&lt;/p&gt;</description>
                <environment></environment>
        <key id="489192">JAVA-2760</key>
            <summary>Codec conversion for list of list</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="13201">Fixed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="rohit.jain">Rohit Jain</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Jan 2018 22:17:04 +0000</created>
                <updated>Sat, 28 Oct 2023 11:22:58 +0000</updated>
                            <resolved>Tue, 30 Jan 2018 10:46:15 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1788778" author="ross@10gen.com" created="Tue, 30 Jan 2018 10:45:44 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rohit.jain&quot; class=&quot;user-hover&quot; rel=&quot;rohit.jain&quot;&gt;rohit.jain&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2756&quot; title=&quot;Fix nested collections handling of null values in the PojoCodec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2756&quot;&gt;&lt;del&gt;JAVA-2756&lt;/del&gt;&lt;/a&gt; and a fix is due in the 3.7.0 release.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1788777" author="xgen-internal-githook" created="Tue, 30 Jan 2018 10:44:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;ross.lawley@gmail.com&apos;, &apos;name&apos;: &apos;Ross Lawley&apos;, &apos;username&apos;: &apos;rozza&apos;}
&lt;p&gt;Message: Tests: Extra PojoCodec tests for nulls in collections&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2756&quot; title=&quot;Fix nested collections handling of null values in the PojoCodec&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2756&quot;&gt;&lt;del&gt;JAVA-2756&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2760&quot; title=&quot;Codec conversion for list of list&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2760&quot;&gt;&lt;del&gt;JAVA-2760&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/90627726414d042fd02cbd24239b5cfadd4fcb16&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/90627726414d042fd02cbd24239b5cfadd4fcb16&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1788640" author="rohit.jain" created="Tue, 30 Jan 2018 06:25:05 +0000"  >&lt;p&gt;There is a value which is null in the list, I can see why conversion will fail. Is there a work around for this ? &lt;/p&gt;

&lt;p&gt;May be write my own codec which extends current BsonArrayCodec and handle null or implement a custom codec which only handles this particular pojo. If that is the solution, I would appreciate if you could point me to appropriate documentation to do so.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="488610">JAVA-2756</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|htglkf:</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>