javax.ws.rs.WebApplicationException: java.lang.IllegalArgumentException: Error parsing media type ', application/xml'

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Atlassian JIRA by Lucas Timm [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Error parsing media type ', application/xml'
via Atlassian JIRA by Lucas Timm [Atlassian], 1 year ago
java.lang.IllegalArgumentException: Error parsing media type ', application/xml'
via Java.net JIRA by chandankr, 1 year ago
java.lang.IllegalArgumentException: Error parsing media type 'abcd'
via Java.net JIRA by mahoney266, 10 months ago
java.lang.IllegalArgumentException: Error parsing media type 'application\json; charset=UTF-8'
via Java.net JIRA by raja04, 1 year ago
java.lang.IllegalArgumentException: Error parsing media type 'application/'
via GitHub by manuviswam
, 2 years ago
java.lang.IllegalArgumentException: Error parsing media type 'foo'
javax.ws.rs.WebApplicationException: java.lang.IllegalArgumentException: Error parsing media type ', application/xml'
at com.sun.jersey.server.impl.model.HttpHelper.clientError(HttpHelper.java:265)
at com.sun.jersey.server.impl.model.HttpHelper.getContentType(HttpHelper.java:91)
at com.sun.jersey.server.impl.model.HttpHelper.getContentType(HttpHelper.java:77)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.