Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceHttpRequestHandler fails with IllegalArgumentException: No matching constant for [0] [SPR-13516] #18093

spring-projects-issues opened this issue Sep 28, 2015 · 1 comment
in: web type: bug


Copy link

@spring-projects-issues spring-projects-issues commented Sep 28, 2015

Wang Ping opened SPR-13516 and commented

This exception happens in two cases.

  1. If the response status is not yet set by the application, and the servlet container implementation has 0 as the default status
  2. If a filter or application logic sets the response status to an illegal value

Also see this SO thread.

Affects: 4.2.1

Reference URL:

Issue Links:

  • #18094 Unable to configure resource mapping in spring framework 4.2.1 release ("is duplicated by")
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Sep 28, 2015

Brian Clozel commented

Hello Wang Ping

I tried to reproduce this issue in a repro project but couldn't.
It seems the response comes with an HTTP response status of value "0" which breaks the parsing algorithm. I'd like to know where this value is coming from.

Could you provide more information about this?

  • application logs with org.springframework.web at DEBUG level
  • HTTP request + HTTP response (headers)

Also, could you take a look at this project and try to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: web type: bug
None yet

No branches or pull requests

2 participants