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

chore: update SpringBoot version in spring client sample #1425

Closed
wants to merge 1 commit into from

Conversation

octonato
Copy link
Member

No description provided.

@github-actions github-actions bot added java-sdk-protobuf kalix-runtime Runtime and SDKs sub-team labels Jan 30, 2023
@@ -52,7 +52,7 @@
<dependency>
<groupId>net.devh</groupId>
<artifactId>grpc-client-spring-boot-starter</artifactId>
<version>2.13.1.RELEASE</version>
<version>2.14.0.RELEASE</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is another third party library to have grpc client. I'm just updating to last version.

Their README mention it is build with 2.6.13, https://github.com/yidongnan/grpc-spring-boot-starter#versions not clear if it will work with SpringBoot 3

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SpringBoot 3 uses Spring Framework 6 and may not be compatible with the grpc starter.

https://github.com/yidongnan/grpc-spring-boot-starter/issues/826

If that's the case, version 2.13.1 won't be a good fit either and we will have to keep this sample on SpringBoot 2.7.8

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, tests failing with

java.lang.NoClassDefFoundError: javax/servlet/DispatcherType
	at com.example.client.spring.rest.CounterControllerIntegrationTest.setUp(CounterControllerIntegrationTest.java:27)
Caused by: java.lang.ClassNotFoundException: javax.servlet.DispatcherType
	at com.example.client.spring.rest.CounterControllerIntegrationTest.setUp(CounterControllerIntegrationTest.java:27

We won't be able to update this sample for now. Unless grpc-spring-boot-starter gets updated or we have another solution for it.

I don't think it's a bit issue for this sample to stay on Boot 2.7.8.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://app.circleci.com/pipelines/github/lightbend/kalix-jvm-sdk/5467/workflows/d24e1efa-1af3-4e31-91c4-ddd7b9e64593/jobs/103012?invite=true#step-113-446

java.lang.NoClassDefFoundError: Could not initialize class com.github.tomakehurst.wiremock.jetty9.JettyHttpServerFactory
	at com.example.client.spring.rest.CounterControllerIntegrationTest.setUp(CounterControllerIntegrationTest.java:27)

@octonato
Copy link
Member Author

closing for now. Not so important for us to update this one or keep a broken PR open.

@octonato octonato closed this Feb 10, 2023
@octonato octonato deleted the octonato/update-spring-client-sample branch April 20, 2023 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java-sdk-protobuf kalix-runtime Runtime and SDKs sub-team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants