On Thursday, September 10, 2020 12:55:03 PM CEST Rajshekhar AP wrote: > Hi Oliver
Hi AP, > On Thu, 10 Sep 2020 at 01:33, Oliver Lietz <[email protected]> wrote: > > On Wednesday, September 9, 2020 4:31:11 PM CEST Carlos Munoz wrote: > > > Hi Oliver, I have been working with AP on this. Is it possible to have > > > > some > > > > > stable (non-SNAPSHOT) releases of the karaf artifacts? Right now we are > > > forking these repos to make sure things don't change from under us, but > > > that might not be the ideal solution. > > > > Hi Carlos, > > > > There will be a release soon™. I'm "just" waiting for R7 support in Karaf > > or > > at least for 4.3 with partial R7 support. Looks like Pax Web 8.0 will not > > make > > it into 4.3.0 and we have to use Felix HTTP Service (which is fine but not > > the > > default in Karaf). > > > > This is good to know. > > > > I run a full build today and cannot see any issues related to mongo-java- > > driver. Can you please double-check and provide details in JIRA in case > > you > > still face issues with MongoDB? > > When you say build, does it include accessing data? We are seein Bson codec > related exceptions > when a request for content is received (including composium). I will raise > a JIRA. I have one query, though. > Test case for SlingQuickstartOakMongoIT should include content access, > right. I'm using this little project to build the Karaf modules: https://github.com/oliverlietz/sling-karaf-builder The r/w access is in AbstractSlingQuickstartOakTestSupport (extended by SlingQuickstartOakMongoIT and SlingQuickstartOakTarIT, original code is from Bertrand): https://github.com/apache/sling-org-apache-sling-karaf-integration-tests/blob/ master/src/test/java/org/apache/sling/karaf/tests/bootstrap/ AbstractSlingQuickstartOakTestSupport.java So yes, data gets written and read into/from MongoDB during build (requires running Docker). AFAIR I have seen those BSON issues when playing with the 4.x line of the driver only. Regards, O. > Thanks in advance. > > > Regards, > > O. > > > > > Regards, > > > > > > Carlos > > > > > > On Mon, Sep 7, 2020 at 3:10 AM Oliver Lietz <[email protected]> > > > > wrote: > > > > On Monday, September 7, 2020 7:45:02 AM CEST Rajshekhar AP wrote: > > > > > Hi all > > > > > > > > Hi, > > > > > > > > > I hope this is the right forum to ask this question. > > > > > > > > Yes, it is. > > > > > > > > > We are using the sling karaf features to create our own custom > > > > > distribution. Due to the latest changes to the Sling Karaf features, > > > > the > > > > > > > distribution is throwing "java.lang.UnsupportedOperationException: > > The > > > > > > > BsonCodec can only encode to Bson". > > > > > > > > > > I have traced it to the mongodb-java-driver version upgrade. > > > > > > > > > > What approach do you recommend so that we can resolve this issue ? > > > > > > > > This issue sounds familiar. Please create an issue in JIRA and provide > > > > as > > > > > > many > > > > details as possible. > > > > When is the exception thrown? Can you create a test case for > > > > SlingQuickstartOakMongoIT? > > > > > > > > Regards, > > > > O. > > > > > > > > > Thanks in advance.
