Title: Session not found handling · Issue #107 · modelcontextprotocol/java-sdk · GitHub
Open Graph Title: Session not found handling · Issue #107 · modelcontextprotocol/java-sdk
X Title: Session not found handling · Issue #107 · modelcontextprotocol/java-sdk
Description: Bug description After a server restart, a client calling the message endpoint with its session id it obtained via the previous running server instance gets a HTTP/1.1 500 Internal Server Error Environment java-sdk: 0.8.1 via Spring AI St...
Open Graph Description: Bug description After a server restart, a client calling the message endpoint with its session id it obtained via the previous running server instance gets a HTTP/1.1 500 Internal Server Error Envi...
X Description: Bug description After a server restart, a client calling the message endpoint with its session id it obtained via the previous running server instance gets a HTTP/1.1 500 Internal Server Error Envi...
Opengraph URL: https://github.com/modelcontextprotocol/java-sdk/issues/107
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Session not found handling","articleBody":"**Bug description**\nAfter a server restart, a client calling the message endpoint with its session id it obtained via the previous running server instance gets a HTTP/1.1 500 Internal Server Error\n\n\n**Environment**\njava-sdk: 0.8.1 via Spring AI\n\n**Steps to reproduce**\nCall server message endpoint after a server restart, using previous sessionId\n\n**Expected behavior**\nNot too sure but it seems that the client should not interpret that there was indeed an internal server error because of a restart. It could either get a message which leads to recreating a session or there should be some sessions persistence between restart. There is a TODO around the code which returns the 500: https://github.com/modelcontextprotocol/java-sdk/blob/main/mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/server/transport/WebFluxSseServerTransportProvider.java#L288\n\n","author":{"url":"https://github.com/tikal","@type":"Person","name":"tikal"},"datePublished":"2025-04-04T11:15:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/107/java-sdk/issues/107"}
| 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:0617f3e7-0385-0316-e252-7142f133ec9c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BC04:1DB7DE:1AB690C:25F9BE8:6A5A3D1E |
| html-safe-nonce | 872ac5ed80d32e180f40b1fbaaa67c966ab9ebbbf6caa1a638e70729860c45dd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzA0OjFEQjdERToxQUI2OTBDOjI1RjlCRTg6NkE1QTNEMUUiLCJ2aXNpdG9yX2lkIjoiNTU4NDY2Njk0NTA3OTg4NTA4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4e7b92c4f9e041195acc8c8d614391e2fbc9bd2b6406fe641dab6e42fc5cc549 |
| hovercard-subject-tag | issue:2972059056 |
| 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/107/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7ae06dd9eabeac140386f76417d8aba2603e9637cb402b44892c6efaaa4be3d8/modelcontextprotocol/java-sdk/issues/107 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7ae06dd9eabeac140386f76417d8aba2603e9637cb402b44892c6efaaa4be3d8/modelcontextprotocol/java-sdk/issues/107 |
| og:image:alt | Bug description After a server restart, a client calling the message endpoint with its session id it obtained via the previous running server instance gets a HTTP/1.1 500 Internal Server Error Envi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tikal |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc |
| 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 | e618485bff22dab2ef1ffb4e34e4e6626688df69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width