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

Cryptic error message for invalid media type of response #307

Closed
jerseyrobot opened this issue Jan 25, 2008 · 6 comments
Closed

Cryptic error message for invalid media type of response #307

jerseyrobot opened this issue Jan 25, 2008 · 6 comments

Comments

@jerseyrobot
Copy link
Contributor

When the developer returns a response with an invalid media type, for example:

return Response.ok(e, "matrix").build();

The runtime will validate the response after the HTTP method as returned the
response value. This will result in an exception and error message but the
message is unclear on the precise cause and the exception could be thrown closer
to the location of the error.

Environment

Operating System: All
Platform: Sun

@jerseyrobot
Copy link
Contributor Author

@glassfishrobot Commented
Reported by sandoz@java.net

@jerseyrobot
Copy link
Contributor Author

@glassfishrobot Commented
Was assigned to jersey-issues

@jerseyrobot
Copy link
Contributor Author

@glassfishrobot Commented
sandoz@java.net said:
Stack trace is associated with the source of the error.

@jerseyrobot
Copy link
Contributor Author

@glassfishrobot Commented
Marked as fixed on Monday, June 16th 2008, 9:36:39 pm

@jerseyrobot
Copy link
Contributor Author

@glassfishrobot Commented
This issue was imported from java.net JIRA JERSEY-35

@jerseyrobot
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant