java.lang.IllegalArgumentException: Invalid token character ':' in token "http://www.wapforum.org/xhtml"

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 Spring JIRA by David Pacheco, 1 year ago
Invalid token character ':' in token "http://www.wapforum.org/xhtml"
via Spring JIRA by David Pacheco, 1 year ago
Invalid token character ':' in token "http://www.wapforum.org/xhtml"
via tagwith.com by Unknown author, 2 years ago
via Stack Overflow by doug78
, 2 years ago
Invalid token character ',' in token "json, application/json"
java.lang.IllegalArgumentException: Invalid token character ':' in token "http://www.wapforum.org/xhtml"
at org.springframework.http.MediaType.checkToken(MediaType.java:282)
at org.springframework.http.MediaType.checkParameters(MediaType.java:302)
at org.springframework.http.MediaType.(MediaType.java:263)
at org.springframework.http.MediaType.parseMediaType(MediaType.java:584)
at org.springframework.http.HttpHeaders.getContentType(HttpHeaders.java:286)
at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:97)
at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:1)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.writeWithMessageConverters(AnnotationMethodHandlerAdapter.java:973)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.handleResponseBody(AnnotationMethodHandlerAdapter.java:931)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.getModelAndView(AnnotationMethodHandlerAdapter.java:880)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:429)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:415)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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