<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:23 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>[CSHARP-288] mongo-csharp-driver 1.1 NullReferenceException</title>
                <link>https://jira.mongodb.org/browse/CSHARP-288</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;2011-07-27 09:47:23,167 &lt;span class=&quot;error&quot;&gt;&amp;#91;4492&amp;#93;&lt;/span&gt; ERROR AsyncResultAbs &lt;span class=&quot;error&quot;&gt;&amp;#91;(null)&amp;#93;&lt;/span&gt; - &#26410;&#23558;&#23545;&#35937;&#24341;&#29992;&#35774;&#32622;&#21040;&#23545;&#35937;&#30340;&#23454;&#20363;&#12290;&lt;br/&gt;
System.NullReferenceException: &#26410;&#23558;&#23545;&#35937;&#24341;&#29992;&#35774;&#32622;&#21040;&#23545;&#35937;&#30340;&#23454;&#20363;&#12290;&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoServerInstance.AcquireConnection(MongoDatabase database) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:&#34892;&#21495; 183&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, Boolean slaveOk) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoServer.cs:&#34892;&#21495; 893&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCursorEnumerator`1.AcquireConnection() &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:&#34892;&#21495; 184&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCursorEnumerator`1.GetFirst() &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:&#34892;&#21495; 194&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCursorEnumerator`1.MoveNext() &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:&#34892;&#21495; 126&lt;br/&gt;
   &#22312; System.Linq.Enumerable.FirstOrDefault&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IEnumerable`1 source)&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCollection.FindOneAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(IMongoQuery query) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:&#34892;&#21495; 493&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCollection`1.FindOne(IMongoQuery query) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:&#34892;&#21495; 1451&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoDatabase.RunCommandAs(Type commandResultType, IMongoCommand command) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:&#34892;&#21495; 825&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoDatabase.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TCommandResult&amp;#93;&lt;/span&gt;(IMongoCommand command) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:&#34892;&#21495; 801&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoDatabase.RunCommand(IMongoCommand command) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:&#34892;&#21495; 779&lt;br/&gt;
   &#22312; MongoDB.Driver.MongoCollection.Count(IMongoQuery query) &#20301;&#32622; C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:&#34892;&#21495; 112&lt;/p&gt;</description>
                <environment></environment>
        <key id="20179">CSHARP-288</key>
            <summary>mongo-csharp-driver 1.1 NullReferenceException</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="gyf19">guoyunfeng</reporter>
                        <labels>
                    </labels>
                <created>Wed, 27 Jul 2011 06:21:54 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:11 +0000</updated>
                            <resolved>Fri, 5 Aug 2011 21:13:28 +0000</resolved>
                                    <version>1.1</version>
                                    <fixVersion>1.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="46717" author="rstam" created="Fri, 5 Aug 2011 21:13:28 +0000"  >&lt;p&gt;This is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-268&quot; title=&quot;NullReferenceException on lost primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-268&quot;&gt;&lt;del&gt;CSHARP-268&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="45000" author="gyf19" created="Thu, 28 Jul 2011 05:53:50 +0000"  >&lt;p&gt;1. windows 2003 64bit &lt;br/&gt;
2. .NET 3.5 sp1&lt;br/&gt;
3. using C# mongo-csharp-driver 1.1.0.4184 &lt;br/&gt;
4. using  replica set ,  One master server is mongodb 1.8.1 \ Three Slave  server is mongodb 1.8.2&lt;br/&gt;
5. Running for some time, trouble, mongodb cluster is good. Restart IIS, you can temporarily solve the&lt;/p&gt;

</comment>
                            <comment id="44927" author="rstam" created="Wed, 27 Jul 2011 20:21:46 +0000"  >&lt;p&gt;Can you tell me anything more about your environment? &lt;/p&gt;

&lt;p&gt;What version of the driver are you using?&lt;br/&gt;
Are you connecting to a replica set? &lt;br/&gt;
Could there have been a change in which member was primary at the time that this exception was thrown?&lt;/p&gt;

&lt;p&gt;Not saying it&apos;s a valid exception, just trying to figure out how to reproduce it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="19455">CSHARP-268</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|hrh8lz:</customfieldvalue>

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