Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUERY] spring cosmos 3.5.1 is backward compaitable in spring boot #20391

Closed
s998899 opened this issue Apr 6, 2021 · 2 comments
Closed

[QUERY] spring cosmos 3.5.1 is backward compaitable in spring boot #20391

s998899 opened this issue Apr 6, 2021 · 2 comments
Assignees
Labels
azure-spring All azure-spring related issues azure-spring-cosmos Spring cosmos related issues. azure-spring-dependency Spring dependency related issues. Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone

Comments

@s998899
Copy link

s998899 commented Apr 6, 2021

Query/Question
I tried to use spring cosmos 3.5.1 in spring boot 2.2 but getting NoClassDefFoundError: reactor.util.context.ContextView.
if incase of updating the spring boot is only way or any way without updating spring boot because of i need to use spring boot 2.2 version

and also there 3.4.0 auditing bug where it will not update createdate and createdby.

Why is this not a Bug or a feature Request?
a kinda query

Setup (please complete the following information if applicable):

  • OS: windows
  • IDE : IntelliJ
  • Version of the Library used 3.4.0
@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Apr 6, 2021
@chenrujun chenrujun added azure-spring All azure-spring related issues azure-spring-cosmos Spring cosmos related issues. labels Apr 8, 2021
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Apr 8, 2021
@chenrujun chenrujun added the Client This issue points to a problem in the data-plane of the library. label Apr 8, 2021
@chenrujun
Copy link

spring-boot: 2.2.9.RELEASE managed reactor-core version: 3.3.8.RELEASE.
Refs:

  1. https://repo.maven.apache.org/maven2/org/springframework/boot/spring-boot-dependencies/2.2.9.RELEASE/spring-boot-dependencies-2.2.9.RELEASE.pom
  2. https://repo1.maven.org/maven2/io/projectreactor/reactor-bom/Dysprosium-SR10/reactor-bom-Dysprosium-SR10.pom

azure-spring-data-cosmos: 3.5.0 required reactor-core version: 3.4.3.
Refs:

  1. https://github.com/Azure/azure-sdk-for-java/blob/azure-spring-data-cosmos_3.5.0/eng/versioning/external_dependencies.txt#L62

My suggestion:

  • Solution 1: Add following content in pom.xml:
    <dependency>
      <groupId>io.projectreactor</groupId>
      <artifactId>reactor-core</artifactId>
      <version>3.4.3</version>
    </dependency>
  • Solution 2: Upgrade to spring-boot:2.4.3.

If problem still exists after the 2 solutions, please share your pom.xml.

@chenrujun chenrujun self-assigned this Apr 8, 2021
@s998899
Copy link
Author

s998899 commented Apr 8, 2021

Thanks fixed this issue by adding bom

mavenBom "io.projectreactor:reactor-bom:2020.0.4"

and netty dependeciey

compile "io.projectreactor.netty:reactor-netty-core:1.0.4"

@s998899 s998899 closed this as completed Apr 8, 2021
@saragluna saragluna added the azure-spring-dependency Spring dependency related issues. label Apr 26, 2021
@chenrujun chenrujun added this to the [2021] April milestone Apr 28, 2021
azure-sdk pushed a commit to azure-sdk/azure-sdk-for-java that referenced this issue Sep 5, 2022
dev-Sentinel-2022-09-01-preview (Azure#20391)

* Adds base for updating Microsoft.SecurityInsights from version preview/2022-08-01-preview to version 2022-09-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add eventGroupingSettings to NRT alert rules (Azure#20422)

* Update AutomationRules.json (Azure#20257)

* Update AutomationRules.json

* fix typo

* prettier

* fix linter errors

* Update example file to show the 2 new condition types

Co-authored-by: matanpa <matanpa@users.noreply.github.com>
Co-authored-by: ityankel <47292630+ityankel@users.noreply.github.com>
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
azure-spring All azure-spring related issues azure-spring-cosmos Spring cosmos related issues. azure-spring-dependency Spring dependency related issues. Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants