funky-eyes commented on issue #7920:
URL: 
https://github.com/apache/incubator-seata/issues/7920#issuecomment-3737077221

   > [@funky-eyes](https://github.com/funky-eyes) Hi. I was just about to share 
my progress.
   > 
   > ### Test Environment
   > I selected one of the failing CI configurations to reproduce the issue:
   > 
   > ./mvnw -T 4C clean test -P args-for-client-test \
   >   -Dspring-boot.version=2.3.12.RELEASE \
   >   -Dspring-framework.version=5.2.15.RELEASE \
   >   -e -B
   > ### Step 1: Added OkHttp 4.9.3 → Apollo Test Failed
   > **Action:** Added `<okhttp.version>4.9.3</okhttp.version>` to 
`seata-dependencies/pom.xml`
   > 
   > **Result:**
   > 
   > ```
   > [ERROR] org.apache.seata.config.apollo.ApolloConfigurationTest
   > java.lang.NoSuchMethodError: 'void 
okhttp3.internal.Internal.initializeInstanceForTests()'
   > ```
   > 
   > **Root Cause:** Apollo Client requires OkHttp 3.x internally, but project 
now uses 4.x globally.
   > 
   > ### Step 2: Fixed Apollo Module → Console Module Failed
   > **Action:** Isolated Apollo test with OkHttp 3.14.9 in 
`config/seata-config-apollo/pom.xml`
   > 
   > <dependency>
   >     <groupId>com.squareup.okhttp3</groupId>
   >     <artifactId>okhttp</artifactId>
   >     <version>3.14.9</version>
   >     <scope>test</scope>
   > </dependency>
   > **Result:** Apollo tests pass ✅, but new errors in console module:
   > 
   > ```
   > [ERROR] cannot find symbol: class HttpStatusCode (Spring 6.0+ only)
   > [ERROR] cannot access javax.servlet.Filter
   > [ERROR] incompatible types: JwtAuthenticationTokenFilter cannot be 
converted to jakarta.servlet.Filter
   > ```
   > 
   > **Root Cause:** Console module uses Spring Boot 3.x APIs, incompatible 
with Spring Boot 2.x tests in CI.
   > 
   > This is where I am now. Could I get some feedback on how to proceed?
   
   It looks like the issue has now been resolved — thank you!
   I’d like to know which version of Apollo Client supports OkHttp 4.x. If we 
could switch to a compatible version, that would be ideal.
   Regarding the JwtAuthenticationTokenFilter issue you mentioned earlier, 
would you mind creating a new issue for it?
   Additionally, I believe we should enforce that the console and namingserver 
modules must be compiled with Spring Boot 3 and JDK 25. When building with 
Spring Boot 2, these two modules should not be compiled or tested at all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to