<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:02:15 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-4505] org.mongodb.driver-core-4.5.0 requires javax.annotation.meta but it could not be found</title>
                <link>https://jira.mongodb.org/browse/JAVA-4505</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When I upgrade my OSGi target platform so it uses the 4.5.0 Java driver JARs, I get&lt;br/&gt;
&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Missing requirement: org.mongodb.driver-core 4.5.0 requires &apos;java.package; javax.annotation.meta 0.0.0&apos;&lt;/tt&gt; but it could not be found in my Tycho build. I&apos;m on Java 8. It reminds me of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4399&quot; title=&quot;OSGi package import of jdk.net in mongodb-driver-core-4.3.1.jar&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4399&quot;&gt;&lt;del&gt;JAVA-4399&lt;/del&gt;&lt;/a&gt; where a jdk.net dependency killed the OSGi / Tycho build. Is it possible that this dependency shouldn&apos;t exist?&lt;/p&gt;</description>
                <environment></environment>
        <key id="1986862">JAVA-4505</key>
            <summary>org.mongodb.driver-core-4.5.0 requires javax.annotation.meta but it could not be found</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="mongo@homemp3.dyndns.org">Donald Duck</reporter>
                        <labels>
                            <label>external-user</label>
                    </labels>
                <created>Sat, 19 Feb 2022 23:09:32 +0000</created>
                <updated>Sat, 28 Oct 2023 11:20:49 +0000</updated>
                            <resolved>Thu, 17 Mar 2022 16:35:57 +0000</resolved>
                                    <version>4.5.0</version>
                                    <fixVersion>4.5.1</fixVersion>
                                    <component>Packaging</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4430684" author="jeff.yemin" created="Wed, 23 Mar 2022 20:09:01 +0000"  >&lt;p&gt;FYI, 4.5.1 has been released with a fix for this issue.&lt;/p&gt;</comment>
                            <comment id="4418705" author="JIRAUSER1262103" created="Thu, 17 Mar 2022 16:56:20 +0000"  >&lt;p&gt;Thx &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="4418642" author="xgen-internal-githook" created="Thu, 17 Mar 2022 16:35:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@mongodb.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Exclude javax.annotation.* from OSGi imports (#895)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4505&quot; title=&quot;org.mongodb.driver-core-4.5.0 requires javax.annotation.meta but it could not be found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4505&quot;&gt;&lt;del&gt;JAVA-4505&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: 4.5.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/bcdb1e553d6d4cbeb149bcfb5232295b6fed58ae&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/bcdb1e553d6d4cbeb149bcfb5232295b6fed58ae&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4418640" author="xgen-internal-githook" created="Thu, 17 Mar 2022 16:35:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@mongodb.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Exclude javax.annotation.* from OSGi imports (#895)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4505&quot; title=&quot;org.mongodb.driver-core-4.5.0 requires javax.annotation.meta but it could not be found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4505&quot;&gt;&lt;del&gt;JAVA-4505&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/1ca647799e036cd0c7471b7eb16a756ba54f8f32&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/1ca647799e036cd0c7471b7eb16a756ba54f8f32&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4397207" author="JIRAUSER1262103" created="Tue, 8 Mar 2022 08:18:50 +0000"  >&lt;p&gt;java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of a null object loaded from local variable &apos;value&apos;&lt;br/&gt;
	at org.bson.codecs.BsonArrayCodec.encode(BsonArrayCodec.java:81)&lt;br/&gt;
	at org.bson.codecs.BsonArrayCodec.encode(BsonArrayCodec.java:37)&lt;br/&gt;
	at org.bson.codecs.EncoderContext.encodeWithChildContext(EncoderContext.java:91)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:210)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:168)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:44)&lt;br/&gt;
	at org.bson.internal.LazyCodec.encode(LazyCodec.java:38)&lt;br/&gt;
	at org.bson.codecs.EncoderContext.encodeWithChildContext(EncoderContext.java:91)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.writeValue(DocumentCodec.java:210)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:168)&lt;br/&gt;
	at org.bson.codecs.DocumentCodec.encode(DocumentCodec.java:44)&lt;br/&gt;
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)&lt;br/&gt;
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)&lt;br/&gt;
	at com.mongodb.internal.connection.SplittablePayload$WriteRequestEncoder.encode(SplittablePayload.java:200)&lt;br/&gt;
	at com.mongodb.internal.connection.SplittablePayload$WriteRequestEncoder.encode(SplittablePayload.java:187)&lt;br/&gt;
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:63)&lt;br/&gt;
	at org.bson.codecs.BsonDocumentWrapperCodec.encode(BsonDocumentWrapperCodec.java:29)&lt;br/&gt;
	at com.mongodb.internal.connection.BsonWriterHelper.writeDocument(BsonWriterHelper.java:77)&lt;br/&gt;
	at com.mongodb.internal.connection.BsonWriterHelper.writePayload(BsonWriterHelper.java:59)&lt;br/&gt;
	at com.mongodb.internal.connection.CommandMessage.encodeMessageBodyWithMetadata(CommandMessage.java:168)&lt;br/&gt;
	at com.mongodb.internal.connection.RequestMessage.encode(RequestMessage.java:138)&lt;br/&gt;
	at com.mongodb.internal.connection.CommandMessage.encode(CommandMessage.java:62)&lt;br/&gt;
	at com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:326)&lt;br/&gt;
	at com.mongodb.internal.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:116)&lt;br/&gt;
	at com.mongodb.internal.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:643)&lt;br/&gt;
	at com.mongodb.internal.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:71)&lt;br/&gt;
	at com.mongodb.internal.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:240)&lt;br/&gt;
	at com.mongodb.internal.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:226)&lt;br/&gt;
	at com.mongodb.internal.connection.DefaultServerConnection.command(DefaultServerConnection.java:126)&lt;br/&gt;
	at com.mongodb.internal.connection.DefaultServer$OperationCountTrackingConnection.command(DefaultServer.java:354)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.executeCommand(MixedBulkWriteOperation.java:477)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.executeBulkWriteBatch(MixedBulkWriteOperation.java:339)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.lambda$execute$2(MixedBulkWriteOperation.java:260)&lt;br/&gt;
	at com.mongodb.internal.operation.OperationHelper.lambda$withSourceAndConnection$2(OperationHelper.java:575)&lt;br/&gt;
	at com.mongodb.internal.operation.OperationHelper.withSuppliedResource(OperationHelper.java:600)&lt;br/&gt;
	at com.mongodb.internal.operation.OperationHelper.lambda$withSourceAndConnection$3(OperationHelper.java:574)&lt;br/&gt;
	at com.mongodb.internal.operation.OperationHelper.withSuppliedResource(OperationHelper.java:600)&lt;br/&gt;
	at com.mongodb.internal.operation.OperationHelper.withSourceAndConnection(OperationHelper.java:573)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.lambda$execute$3(MixedBulkWriteOperation.java:232)&lt;br/&gt;
	at com.mongodb.internal.async.function.RetryingSyncSupplier.get(RetryingSyncSupplier.java:65)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:268)&lt;br/&gt;
	at com.mongodb.internal.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:84)&lt;br/&gt;
	at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:212)&lt;br/&gt;
	at com.mongodb.client.internal.MongoCollectionImpl.executeInsertMany(MongoCollectionImpl.java:499)&lt;br/&gt;
	at com.mongodb.client.internal.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:481)&lt;br/&gt;
	at com.mongodb.client.internal.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:476)&lt;br/&gt;
        ...&lt;/p&gt;

&lt;p&gt;The &quot;value&quot; parameter in the DocumentCodec.writeValue(BdonWriter, EncoderContext, Object) method is:&lt;br/&gt;
  BsonArray{values=[null, BsonDouble&lt;/p&gt;
{value=12.0}
&lt;p&gt;]}&lt;br/&gt;
and it is the null value for index 0 that is offending. BsonArrayCodec.encode then fails with the value.getClass() call in line 81.&lt;/p&gt;</comment>
                            <comment id="4396410" author="jeff.yemin" created="Mon, 7 Mar 2022 21:18:40 +0000"  >&lt;p&gt;Thanks for the update.  Would you mind posting the NPE that you encountered?  It&apos;s not ringing any bells.&lt;/p&gt;</comment>
                            <comment id="4396374" author="JIRAUSER1262103" created="Mon, 7 Mar 2022 21:12:14 +0000"  >&lt;p&gt;Yes, adding the jsr305 jar to our target platform allows us to proceed for now. As usual for many JARs, that JAR from Maven central needs manifest patching to make it into an OSGi bundle. Then, after being able to build again a few tests failed, based on BsonArray instances with null value which seem to have passed through storing without problems in the old version of the driver but now cause an NPE, but that was an easy fix, and I saw that at least the BsonArray constructor with a values array has ever since demanded non-null values only. (Nota bene: throwing an NPE in the BsonArray.add(BsonValue) method would help catch the root cause of such problems with more confidence, I think.)&lt;br/&gt;
Thanks for your support.&lt;/p&gt;</comment>
                            <comment id="4396337" author="jeff.yemin" created="Mon, 7 Mar 2022 20:54:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mongo%40homemp3.dyndns.org&quot; class=&quot;user-hover&quot; rel=&quot;mongo@homemp3.dyndns.org&quot;&gt;mongo@homemp3.dyndns.org&lt;/a&gt; were you able to work around this or are you blocked from upgrading?&lt;/p&gt;</comment>
                            <comment id="4382149" author="jeff.yemin" created="Mon, 28 Feb 2022 22:44:47 +0000"  >&lt;p&gt;Ah, that makes more sense now.  I looked at the 4.3.1 MANIFEST.MF and &lt;tt&gt;javax.annotation&lt;/tt&gt; doesn&apos;t appear at all, but in 4.4.0 it does.   Looking at the changes in 4.4.0, &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4381&quot; title=&quot;mongodb-driver-legacy MANIFEST.MF should not include Automatic-Module-Name&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4381&quot;&gt;&lt;del&gt;JAVA-4381&lt;/del&gt;&lt;/a&gt; seems like the most likely thing that changed the manifest.&lt;/p&gt;

&lt;p&gt;As a workaround, can you take a dependency on &lt;tt&gt;com.google.code.findbugs:jsr305:1.3.9&lt;/tt&gt; while we investigate a fix?&lt;/p&gt;</comment>
                            <comment id="4381990" author="JIRAUSER1262103" created="Mon, 28 Feb 2022 22:01:37 +0000"  >&lt;p&gt;Sorry, I double-checked, and so far we are using 4.3.1&lt;/p&gt;</comment>
                            <comment id="4381941" author="JIRAUSER1262103" created="Mon, 28 Feb 2022 21:41:25 +0000"  >&lt;p&gt;From 4.4&lt;/p&gt;</comment>
                            <comment id="4381614" author="jeff.yemin" created="Mon, 28 Feb 2022 20:12:56 +0000"  >&lt;p&gt;The driver takes a compile-only dependency on &lt;tt&gt;com.google.code.findbugs:jsr305:1.3.9&lt;/tt&gt;, which is where the driver finds the &lt;tt&gt;javax.annotation.meta&lt;/tt&gt; classes.  I&apos;m not sure why this results an an entry in Import-Package in the manifest, but it&apos;s been there for a while.  What driver release are you upgrading from?&lt;/p&gt;
</comment>
                            <comment id="4381466" author="JIRAUSER1262103" created="Mon, 28 Feb 2022 19:24:26 +0000"  >&lt;p&gt;I can&apos;t get a Tycho build running with a dependency to this Jar with Java8 because the javax.annotation.meta package cannot be resolved. It is a mandatory dependency of the mongodb jar and I wonder where to satisfy it from under Java8.&lt;/p&gt;</comment>
                            <comment id="4380080" author="jeff.yemin" created="Mon, 28 Feb 2022 13:00:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mongo%40homemp3.dyndns.org&quot; class=&quot;user-hover&quot; rel=&quot;mongo@homemp3.dyndns.org&quot;&gt;mongo@homemp3.dyndns.org&lt;/a&gt;, the dependency still exists, as a result of &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2d6c0691c8cfdf2f872f7405f3ce4f17da3c84b0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this commit&lt;/a&gt;.  And I still see it listed in the 4.5 manifest for driver-core.&lt;/p&gt;

&lt;p&gt;So I&apos;m not sure what the issue is yet.  Do you see any issues with the manifest?&lt;/p&gt;</comment>
                            <comment id="4369208" author="esha.bhargava" created="Tue, 22 Feb 2022 18:23:26 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mongo%40homemp3.dyndns.org&quot; class=&quot;user-hover&quot; rel=&quot;mongo@homemp3.dyndns.org&quot;&gt;mongo@homemp3.dyndns.org&lt;/a&gt; Thank you for reporting this issue! We&apos;ll look into it and get back to you soon.&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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i04nz2:i</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>