Spring

 Hi everyone, I am currently using spring 4.3.5 and geode 9.10.0 without spring-data-gemfire. Now, I am trying to upgrade gemfire to 10.0.2 keeping the spring version as is. I just wanted to know the compatibility between gemfire 10.0.2 and spring.

Bikash Mainali's profile image
Bikash Mainali posted Feb 15, 2024 10:03 PM

 

Todd Robbins's profile image
Broadcom Employee Todd Robbins

Hello Bikash,

 

Please reference the the compatibility chart for Spring Data for VMware GemFire. It will be necessary to upgrade Spring Framework version to 6.0+ for compatibility for 10.0.2.

 

Also, please see the KB article:

 

Customers who use Spring Boot, Data, and Session for Gemfire and are upgrading Gemfire to version 9.15 or later from version 9.10 or earlier will need to migrate from the previous, open source Spring for Apache Geode solutions to the new Spring for VMware Gemfire in order to maintain compatibility.

 

As announced in a blog post, the Spring for Gemfire products have been re-introduced to restore compatibility with Gemfire, starting with version 9.15.0. Along with this, there have been some changes to Spring material that will be detailed below.

 

Since you mentioned geode 9.10.0, I think it will be necessary to migrate to Spring for VMware Gemfire per steps in that article.

Bikash Mainali's profile image
Bikash Mainali

Thank you Todd.

Bikash Mainali's profile image
Bikash Mainali

Hi Todd,

I am facing issue after upgrading Spring framework to 5.3.18 and gemfire 10.0.2. But I am using gradle 2.14.1. Does gemfire has dependency with gradle by any reason? If yes could you please provide me the resource reference to figure out the compatibility between them?

Todd Robbins's profile image
Broadcom Employee Todd Robbins

Hi Bikash, Gradle is an automation tool for compilation and packaging, so I don't think we publish compatibility chart for something like that because it's not really a dependency. That being said, Gradle 2.14 appears quite old, so you might try updating version to see if that helps.

Bikash Mainali's profile image
Bikash Mainali

Thank you for quick response. Appreciated.

Bikash Mainali's profile image
Bikash Mainali

Hi Todd,

 

Sorry to chase you again. I have to implement gemfire 10 in spring 4 project anyhow. I tried using standard gemfire (isolated from spring or xml configuration). I could be able to connect to gemfire cache with standalone java configuration. But during run time, I got one issue which is really hard to fix for me. Below is the error:

 

Cause By: Expression parsing failed; nested exception is java.lang.NoSuchMethodError: org.springframework.expression.spel.support.StandardTypeConverter.<init>(Ljava/util/function/Supplier;)V

 

I am wondering why this is happening even if I am not using xml configuration for gemfire. FYI, I am not using spring-data-gemfire. I am trying to segregate gemfire configuration as a standalone configuration from spring context and just use ClientCache wherever needed.

 

Could you please assist me with this issue? Does gemfire really has a tight coupling with spring framework/context? What alternatives can we have? I am not getting proper documentation regarding gemfire and spring version compatibility (again I am not using spring-data-gemfire). I just got compatibility matrix or spring-data-gemfire & gemfire and spring-boot & gemfire. Is there any document that clearly says which version of gemfire is compatible with which version of spring (not spring-data-gemfire) ?

 

Below are what I have looked at:

Screenshot 2024-03-31 at 1.31.56 AMScreenshot 2024-03-31 at 1.29.49 AM