Tests run: 853, Failures: 5, Errors: 9, Skipped: 8
Opened this issue · 2 comments
I'm raising a PR for #605 and it asks me to confirm in the template that, quote:
"New and existing tests pass locally?"
However, when I simply locally run the main branch as of the current 19a8c00, with ./mvnw clean install, on:
$ java --version
openjdk 21.0.8 2025-07-15
OpenJDK Runtime Environment (Red_Hat-21.0.8.0.9-1) (build 21.0.8+9)
OpenJDK 64-Bit Server VM (Red_Hat-21.0.8.0.9-1) (build 21.0.8+9, mixed mode, sharing)
then it as-is without even making any changes it already fails with:
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] HttpClientStreamableHttpAsyncClientTests.testReadResource expectation "expectNextCount(10)" failed (expected: count = 10; actual: counted = 0; signal: onError(java.lang.TypeNotPresentException: Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present))
[ERROR] HttpSseMcpAsyncClientTests.testReadResource expectation "expectNextCount(10)" failed (expected: count = 10; actual: counted = 0; signal: onError(java.lang.TypeNotPresentException: Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present))
[ERROR] HttpSseMcpSyncClientTests.testReadResourceWithoutInitialization expectation "expectNextCount(1)" failed (expected: count = 1; actual: counted = 0; signal: onError(java.lang.TypeNotPresentException: Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present))
[ERROR] StdioMcpAsyncClientTests.testReadResource expectation "expectNextCount(10)" failed (expected: count = 10; actual: counted = 0; signal: onError(java.lang.TypeNotPresentException: Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present))
[ERROR] StdioMcpSyncClientTests.testReadResourceWithoutInitialization expectation "expectNextCount(1)" failed (expected: count = 1; actual: counted = 0; signal: onError(java.lang.TypeNotPresentException: Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present))
[ERROR] Errors:
[ERROR] HttpClientStreamableHttpSyncClientTests.startContainer:50 » ContainerLaunch Container startup failed for image docker.io/tzolov/mcp-everything-server:v3
[ERROR] HttpSseMcpAsyncClientLostConnectionTests.testPingWithEaxctExceptionType » ExceptionInInitializer
[ERROR] HttpSseMcpSyncClientTests.testReadResource » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] StdioMcpSyncClientTests.testReadResource » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] McpSchemaTests.testEmbeddedResource:159 » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] McpSchemaTests.testEmbeddedResourceDeserialization:170 » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] McpSchemaTests.testEmbeddedResourceWithBlobContents:190 » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] McpSchemaTests.testEmbeddedResourceWithBlobContentsDeserialization:201 » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[ERROR] McpSchemaTests.testReadResourceResult:542 » TypeNotPresent Type io.modelcontextprotocol.spec.McpSchema$TextResourceContents not present
[INFO]
[ERROR] Tests run: 853, Failures: 5, Errors: 9, Skipped: 8
https://gist.github.com/vorburger/c598985929b513099db185472e782cdd has the full log.
@vorburger it must be a issue with your local environment. Our Github builds are OK and I successfully tested with the same JDK version (below).
Make sure you are running on top of the latest main branch (rebase if needed), use -U maven option to update maven cache (or better delete the local maven repo).
Also you need to have docker container installed to run some of the tests.
➜ java-sdk git:(main) java --version
java 21.0.8 2025-07-15 LTS
Java(TM) SE Runtime Environment (build 21.0.8+12-LTS-250)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.8+12-LTS-250, mixed mode, sharing)
java-sdk git:(main) ./mvnw clean install
....
INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Java SDK MCP Parent 0.15.0-SNAPSHOT:
[INFO]
[INFO] Java SDK MCP Parent ................................ SUCCESS [ 0.632 s]
[INFO] Java SDK MCP BOM ................................... SUCCESS [ 0.016 s]
[INFO] Java MCP SDK JSON Support .......................... SUCCESS [ 0.679 s]
[INFO] Java MCP SDK JSON Jackson .......................... SUCCESS [ 1.527 s]
[INFO] Java MCP SDK Core .................................. SUCCESS [02:06 min]
[INFO] Java MCP SDK ....................................... SUCCESS [ 0.016 s]
[INFO] Tests for the Java MCP SDK ......................... SUCCESS [ 0.502 s]
[INFO] WebFlux transports ................................. SUCCESS [ 47.994 s]
[INFO] Spring Web MVC transports .......................... SUCCESS [ 35.395 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:33 min
[INFO] Finished at: 2025-10-14T10:59:29+02:00
[INFO] ------------------------------------------------------------------------
➜ java-sdk git:(main)