Title: no default JsonSchemaValidatorSupplier or default McpJsonMapper in mcp-json project · Issue #574 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: no default JsonSchemaValidatorSupplier or default McpJsonMapper in mcp-json project · Issue #574 · modelcontextprotocol/java-sdk
X Title: no default JsonSchemaValidatorSupplier or default McpJsonMapper in mcp-json project · Issue #574 · modelcontextprotocol/java-sdk
Description: As per bug #562 I'm also getting these exceptions when running the latest 0.14.0 in repo (not deployed yet). java.lang.IllegalStateException: No default JsonSchemaValidatorSupplier implementation found at io.modelcontextprotocol.json.sch...
Open Graph Description: As per bug #562 I'm also getting these exceptions when running the latest 0.14.0 in repo (not deployed yet). java.lang.IllegalStateException: No default JsonSchemaValidatorSupplier implementation f...
X Description: As per bug #562 I'm also getting these exceptions when running the latest 0.14.0 in repo (not deployed yet). java.lang.IllegalStateException: No default JsonSchemaValidatorSupplier implementati...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/574
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"no default JsonSchemaValidatorSupplier or default McpJsonMapper in mcp-json project","articleBody":"As per bug #562 I'm also getting these exceptions when running the latest 0.14.0 in repo (not deployed yet).\n\njava.lang.IllegalStateException: No default JsonSchemaValidatorSupplier implementation found\n\tat io.modelcontextprotocol.json.schema.JsonSchemaInternal.lambda$createDefaultValidator$2(JsonSchemaInternal.java:66)\n\tat java.base/java.util.Optional.orElseThrow(Optional.java:403)\n\tat io.modelcontextprotocol.json.schema.JsonSchemaInternal.createDefaultValidator(JsonSchemaInternal.java:61)\n\tat io.modelcontextprotocol.json.schema.JsonSchemaInternal.getDefaultValidator(JsonSchemaInternal.java:30)\n\tat io.modelcontextprotocol.json.schema.JsonSchemaValidator.getDefault(JsonSchemaValidator.java:61)\n\tat io.modelcontextprotocol.server.McpServer$SingleSessionAsyncSpecification.build(McpServer.java:232)\n\tat ...\n\nand\n\njava.lang.IllegalStateException: No default McpJsonMapper implementation found\n\tat io.modelcontextprotocol.json.McpJsonInternal.lambda$createDefaultMapper$2(McpJsonInternal.java:67)\n\tat java.base/java.util.Optional.orElseThrow(Optional.java:403)\n\tat io.modelcontextprotocol.json.McpJsonInternal.createDefaultMapper(McpJsonInternal.java:62)\n\tat io.modelcontextprotocol.json.McpJsonInternal.getDefaultMapper(McpJsonInternal.java:30)\n\tat io.modelcontextprotocol.json.McpJsonMapper.getDefault(McpJsonMapper.java:97)\n\tat io.modelcontextprotocol.server.McpServer$SingleSessionSyncSpecification.build(McpServer.java:818)\n\tat ...\n\nThis problem does not appear to me to be an OSGi problem as when I look in the [mcp-json project](https://github.com/modelcontextprotocol/java-sdk/tree/main/mcp-json) there does not appear to be any META-INF/services/* files. I can see that the ServiceLoader is used in io.modelcontextprotocol.json.schema.JsonSchemaInternal line 41, and in io.modelcontextprotocol.json.McpJsonInternal line 45, so I suspect that the META-INF/services/* files in mcp-json were accidently not checked in.\n","author":{"url":"https://github.com/scottslewis","@type":"Person","name":"scottslewis"},"datePublished":"2025-09-25T01:50:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/574/java-sdk/issues/574"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e7c4d03d-c4c6-74db-6b00-4937575456f2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C2D8:F0ECB:37002A:4DA1E3:6A605A32 |
| html-safe-nonce | c701c36cedcc6d37c11aaafd2906d735489eccce33409857ef3d0713cd9aa3f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkQ4OkYwRUNCOjM3MDAyQTo0REExRTM6NkE2MDVBMzIiLCJ2aXNpdG9yX2lkIjoiMTIwNzY4NTIyNTYzMzU2OTMzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a332960b9926a0504d2ae1afebfd92996a30a915bcab919f74b255214b1bc66b |
| hovercard-subject-tag | issue:3451520725 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/java-sdk/574/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d4cf6cccc393818e1b669c235d6c2a3811d47747df456289fac0708ac1e1ebc4/modelcontextprotocol/java-sdk/issues/574 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d4cf6cccc393818e1b669c235d6c2a3811d47747df456289fac0708ac1e1ebc4/modelcontextprotocol/java-sdk/issues/574 |
| og:image:alt | As per bug #562 I'm also getting these exceptions when running the latest 0.14.0 in repo (not deployed yet). java.lang.IllegalStateException: No default JsonSchemaValidatorSupplier implementation f... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | scottslewis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60da8c2a42fa2bbf5f7567474990ec467836a84444262a58e200fa91b7f3d2d0 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/java-sdk git https://github.com/modelcontextprotocol/java-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 919609219 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/java-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 919609219 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/java-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9824515e740d83d5eb82168a089b806ab0fe04a1 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width