<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:50 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-3945] Codec Configuration Exception When POJO has Field set as (fluent = true)</title>
                <link>https://jira.mongodb.org/browse/JAVA-3945</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;While declaring POJO classes with the codec registry configuration having the value of the&#160;&lt;b&gt;automatic&lt;/b&gt;&#160;variable set to &lt;b&gt;true,&lt;/b&gt;&#160;When the &lt;b&gt;@Accessor(fluent = false)&lt;/b&gt; annotation is used, the converting a BSON document to a POJO using the&#160;&lt;b&gt;aggregate(List&amp;lt;&amp;gt; Pipeline)&lt;/b&gt;&#160;successfully converts the MongoDB collection to a POJO. However, when the annotation&#160;&lt;b&gt;@Accessor(fluent = true)&lt;/b&gt;&#160;is used with the POJO class, then a&#160;&lt;b&gt;CodecConfigurationException&lt;/b&gt;&#160;is thrown. Can anyone please help me with this problem?&lt;/p&gt;</description>
                <environment>Java reactivestreams driver</environment>
        <key id="1593534">JAVA-3945</key>
            <summary>Codec Configuration Exception When POJO has Field set as (fluent = true)</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="13203">Gone away</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="kunaljani18@gmail.com">Kunal jani</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Jan 2021 02:36:46 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:29 +0000</updated>
                            <resolved>Fri, 5 Feb 2021 12:00:00 +0000</resolved>
                                                                    <component>POJO</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3601208" author="backlog-server-pm" created="Fri, 5 Feb 2021 12:00:00 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="3575891" author="ross@10gen.com" created="Thu, 21 Jan 2021 16:24:55 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kunaljani18%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kunaljani18@gmail.com&quot;&gt;kunaljani18@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;There&apos;s not much to go on from your comment.  The error is reporting &lt;tt&gt;Can&apos;t find a codec for class com.snapcheck.db.reactive.entities.ActorDetail&lt;/tt&gt;  but the provided code doesn&apos;t include any details of the &lt;tt&gt;ActorDetail&lt;/tt&gt; class.&lt;/p&gt;

&lt;p&gt;Just to note the PojoCodec itself doesn&apos;t use the &lt;tt&gt;@Accessor&lt;/tt&gt; annotation so I&apos;m unclear how it relates to the PojoCodec or the issue you are seeing.  &lt;/p&gt;

&lt;p&gt;It would be great if you  could provide some more detail.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="3571657" author="JIRAUSER1258334" created="Tue, 19 Jan 2021 17:35:33 +0000"  >&lt;p&gt;@Data&lt;br/&gt;
@Accessors(fluent = true)&lt;br/&gt;
@NoArgsConstructor&lt;br/&gt;
@JsonIgnoreProperties(ignoreUnknown = true)&lt;br/&gt;
public class ClassName{}&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;org.bson.codecs.configuration.CodecConfigurationException: Can&apos;t find a codec for class com.snapcheck.db.reactive.entities.ClassName.org.bson.codecs.configuration.CodecConfigurationException: Can&apos;t find a codec for class com.snapcheck.db.reactive.entities.ActorDetails. at org.bson.internal.CodecCache.getOrThrow(CodecCache.java:57) at org.bson.internal.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:64) at org.bson.internal.ProvidersCodecRegistry.get(ProvidersCodecRegistry.java:39) at com.mongodb.internal.operation.Operations.aggregate(Operations.java:200) at com.mongodb.internal.operation.AsyncOperations.aggregate(AsyncOperations.java:129) at com.mongodb.async.client.AggregateIterableImpl.asAsyncReadOperation(AggregateIterableImpl.java:172) at com.mongodb.async.client.MongoIterableImpl.batchCursor(MongoIterableImpl.java:167) at com.mongodb.async.client.MongoIterableSubscription.requestInitialData(MongoIterableSubscription.java:46) at com.mongodb.async.client.AbstractSubscription.tryRequestInitialData(AbstractSubscription.java:164) at com.mongodb.async.client.AbstractSubscription.request(AbstractSubscription.java:87) at com.mongodb.reactivestreams.client.internal.ObservableToPublisher$1$1.request(ObservableToPublisher.java:48) at reactor.core.publisher.MonoNext$NextSubscriber.request(MonoNext.java:102) at reactor.core.publisher.MonoNext$NextSubscriber.request(MonoNext.java:102) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.set(Operators.java:2152) at reactor.core.publisher.Operators$MultiSubscriptionSubscriber.onSubscribe(Operators.java:2026) at reactor.core.publisher.MonoNext$NextSubscriber.onSubscribe(MonoNext.java:64) at reactor.core.publisher.MonoNext$NextSubscriber.onSubscribe(MonoNext.java:64) at com.mongodb.reactivestreams.client.internal.ObservableToPublisher$1.onSubscribe(ObservableToPublisher.java:37) at com.mongodb.async.client.MongoIterableSubscription.&amp;lt;init&amp;gt;(MongoIterableSubscription.java:40) at com.mongodb.async.client.Observables$1.subscribe(Observables.java:47) at com.mongodb.reactivestreams.client.internal.ObservableToPublisher.subscribe(ObservableToPublisher.java:34) at com.mongodb.reactivestreams.client.internal.AggregatePublisherImpl.subscribe(AggregatePublisherImpl.java:121) at reactor.core.publisher.MonoFromPublisher.subscribe(MonoFromPublisher.java:63) at reactor.core.publisher.Mono.subscribe(Mono.java:4219) at reactor.core.publisher.Mono.subscribeWith(Mono.java:4330) at reactor.core.publisher.Mono.subscribe(Mono.java:4190) at reactor.core.publisher.Mono.subscribe(Mono.java:4126) at reactor.core.publisher.Mono.subscribe(Mono.java:4073) at com.snapcheck.db.reactive.ClassReactiveDAO.actorData(ClassReactiveDAO.java:124) at com.reactive.ClassTest.junitTest(ClassTest.java:124) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at io.vertx.ext.unit.junit.VertxUnitRunner.invokeTestMethod(VertxUnitRunner.java:95) at io.vertx.ext.unit.junit.VertxUnitRunner.lambda$invokeExplosively$0(VertxUnitRunner.java:114) at io.vertx.ext.unit.impl.TestContextImpl.run(TestContextImpl.java:90) at io.vertx.ext.unit.junit.VertxUnitRunner.invokeExplosively(VertxUnitRunner.java:130) at io.vertx.ext.unit.junit.VertxUnitRunner.access$000(VertxUnitRunner.java:39) at io.vertx.ext.unit.junit.VertxUnitRunner$1.evaluate(VertxUnitRunner.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at io.vertx.ext.unit.junit.VertxUnitRunner$2.evaluate(VertxUnitRunner.java:196) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58) at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38) at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:66) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155) at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137) at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748)&lt;/p&gt;</comment>
                            <comment id="3570510" author="ross@10gen.com" created="Tue, 19 Jan 2021 09:53:13 +0000"  >&lt;p&gt;Hi Kunal jani,&lt;/p&gt;

&lt;p&gt;Many thanks for the ticket.  Could you provide more detail on the bug?  Either a full stacktrace or a test case to reproduce the error.  Ideally, a &lt;a href=&quot;https://stackoverflow.com/help/minimal-reproducible-example&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;minimal reproducible example&lt;/a&gt; would help as I could replicate the bug and use it as a test case for the fix.&lt;/p&gt;

&lt;p&gt;Did you know the best place for asking questions is our MongoDB community portal, located &lt;a href=&quot;https://developer.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;?&lt;/p&gt;

&lt;p&gt;All the best,&lt;/p&gt;

&lt;p&gt;Ross&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|hybsnr:</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>