<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:21 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-2494] Connection failure from Android</title>
                <link>https://jira.mongodb.org/browse/JAVA-2494</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Java driver 3.3.0 works fine and I tried updating to 3.4.2 but the app crashes with the following exception:&lt;/p&gt;

&lt;p&gt;java.lang.ExceptionInInitializerError&lt;br/&gt;
     at com.mongodb.connection.InternalStreamConnectionFactory.&amp;lt;init&amp;gt;(InternalStreamConnectionFactory.java:41)&lt;br/&gt;
     at com.mongodb.connection.DefaultClusterableServerFactory.create(DefaultClusterableServerFactory.java:68)&lt;br/&gt;
     at com.mongodb.connection.BaseCluster.createServer(BaseCluster.java:360)&lt;br/&gt;
     at com.mongodb.connection.SingleServerCluster.&amp;lt;init&amp;gt;(SingleServerCluster.java:54)&lt;br/&gt;
     at com.mongodb.connection.DefaultClusterFactory.create(DefaultClusterFactory.java:114)&lt;br/&gt;
     at com.mongodb.Mongo.createCluster(Mongo.java:744)&lt;br/&gt;
     at com.mongodb.Mongo.createCluster(Mongo.java:728)&lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:293)&lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:288)&lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:284)&lt;br/&gt;
     at com.mongodb.MongoClient.&amp;lt;init&amp;gt;(MongoClient.java:179)&lt;br/&gt;
     at com.mongodb.MongoClient.&amp;lt;init&amp;gt;(MongoClient.java:136)&lt;br/&gt;
     &#8230; app code ...&lt;br/&gt;
     at java.lang.Thread.run(Thread.java:818)&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.NullPointerException: Attempt to invoke virtual method &apos;java.security.CodeSource java.security.ProtectionDomain.getCodeSource()&apos; on a null object reference&lt;br/&gt;
     at com.mongodb.connection.ClientMetadataHelper.getDriverVersion(ClientMetadataHelper.java:111)&lt;br/&gt;
     at com.mongodb.connection.ClientMetadataHelper.getDriverInformation(ClientMetadataHelper.java:201)&lt;br/&gt;
     at com.mongodb.connection.ClientMetadataHelper.addDriverInformation(ClientMetadataHelper.java:182)&lt;br/&gt;
     at com.mongodb.connection.ClientMetadataHelper.&amp;lt;clinit&amp;gt;(ClientMetadataHelper.java:64)&lt;br/&gt;
     at com.mongodb.connection.InternalStreamConnectionFactory.&amp;lt;init&amp;gt;(InternalStreamConnectionFactory.java:41) &lt;br/&gt;
     at com.mongodb.connection.DefaultClusterableServerFactory.create(DefaultClusterableServerFactory.java:68) &lt;br/&gt;
     at com.mongodb.connection.BaseCluster.createServer(BaseCluster.java:360) &lt;br/&gt;
     at com.mongodb.connection.SingleServerCluster.&amp;lt;init&amp;gt;(SingleServerCluster.java:54) &lt;br/&gt;
     at com.mongodb.connection.DefaultClusterFactory.create(DefaultClusterFactory.java:114) &lt;br/&gt;
     at com.mongodb.Mongo.createCluster(Mongo.java:744) &lt;br/&gt;
     at com.mongodb.Mongo.createCluster(Mongo.java:728) &lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:293) &lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:288) &lt;br/&gt;
     at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:284) &lt;br/&gt;
     at com.mongodb.MongoClient.&amp;lt;init&amp;gt;(MongoClient.java:179) &lt;br/&gt;
     at com.mongodb.MongoClient.&amp;lt;init&amp;gt;(MongoClient.java:136) &lt;br/&gt;
     &#8230; app code ...&lt;br/&gt;
     at java.lang.Thread.run(Thread.java:818) &lt;/p&gt;</description>
                <environment>Android 5.0</environment>
        <key id="375039">JAVA-2494</key>
            <summary>Connection failure from Android</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="13201">Fixed</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="leisim">Simon</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Apr 2017 12:26:49 +0000</created>
                <updated>Sun, 29 Oct 2023 02:32:45 +0000</updated>
                            <resolved>Tue, 25 Apr 2017 12:19:53 +0000</resolved>
                                    <version>3.4.2</version>
                                    <fixVersion>3.4.3</fixVersion>
                    <fixVersion>3.5.0</fixVersion>
                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1557057" author="xgen-internal-githook" created="Tue, 25 Apr 2017 12:25:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Don&apos;t trust the JVM to yield the code source path&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2494&quot; title=&quot;Connection failure from Android&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2494&quot;&gt;&lt;del&gt;JAVA-2494&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 3.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/45a7f58b6d25b532c14b8bf1b94fcccebac9b72c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/45a7f58b6d25b532c14b8bf1b94fcccebac9b72c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1557044" author="xgen-internal-githook" created="Tue, 25 Apr 2017 12:19:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rozza&apos;, u&apos;name&apos;: u&apos;Ross Lawley&apos;, u&apos;email&apos;: u&apos;ross.lawley@gmail.com&apos;}
&lt;p&gt;Message: Don&apos;t trust the JVM to yield the code source path&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2494&quot; title=&quot;Connection failure from Android&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2494&quot;&gt;&lt;del&gt;JAVA-2494&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/fd1ff2e97fb8f98cdb7783d587d82b2fd76aaca2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/fd1ff2e97fb8f98cdb7783d587d82b2fd76aaca2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1556985" author="ross@10gen.com" created="Tue, 25 Apr 2017 10:18:17 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/rozza/mongo-java-driver/pull/186&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/rozza/mongo-java-driver/pull/186&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1551441" author="jeff.yemin" created="Tue, 18 Apr 2017 13:23:34 +0000"  >&lt;p&gt;In this case it&apos;s Class#getProtectionDomain that is returning null rather than ProtectionDomain#getCodeSource, so one step earlier in the call chain.&lt;/p&gt;</comment>
                            <comment id="1551413" author="leisim" created="Tue, 18 Apr 2017 13:12:14 +0000"  >&lt;p&gt;I tried the latest snapshot version and it does not fix the problem :/&lt;/p&gt;

&lt;p&gt;I understand that it is harder to support Android but I think there are great use cases for mongo on Android (we use it for our storemen to control the warehouse system).&lt;/p&gt;

&lt;p&gt;Until now every Mongo Java Diver version supported Android. It would be very sad if the platform was dropped now :/&lt;/p&gt;

&lt;p&gt;Thanks, Simon&lt;/p&gt;</comment>
                            <comment id="1551393" author="ross@10gen.com" created="Tue, 18 Apr 2017 12:36:16 +0000"  >&lt;p&gt;Marking the NPE as fixed.&lt;/p&gt;

&lt;p&gt;Regarding Android support, the Mongo Java Driver doesn&apos;t aim to support Android. This is due to limitations with the Android JRE, where some classes that are used by the driver aren&apos;t available. One such example is SCRAM-SHA1 authentication.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1551391" author="ross@10gen.com" created="Tue, 18 Apr 2017 12:33:25 +0000"  >&lt;p&gt;I believe this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2449&quot; title=&quot;NullPointerException in ClientMetadataHelper.getDriverVersion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2449&quot;&gt;&lt;del&gt;JAVA-2449&lt;/del&gt;&lt;/a&gt; and the NPE has been fixed in master.&lt;/p&gt;

&lt;p&gt;Until the release snapshots are available from &lt;a href=&quot;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/3.5.0-SNAPSHOT/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Sonatype&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Could you confirm the fix with the latest snapshot?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="353723">JAVA-2449</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|hsxo1j:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1686">JVM Sprint 39</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>