org.jboss.resteasy.spi.UnsupportedMediaTypeException

RESTEASY001055: Cannot consume content type

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6

  • via Stack Overflow by Nico
    ,
  • Stack trace

    • org.jboss.resteasy.spi.UnsupportedMediaTypeException: RESTEASY001055: Cannot consume content type at org.jboss.resteasy.core.registry.Segment.match(Segment.java:118)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:34)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:328)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:45)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:328)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:45)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:328)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.SimpleSegment.matchSimple(SimpleSegment.java:45)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchChildren(RootSegment.java:328)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:375)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.registry.RootSegment.matchRoot(RootSegment.java:368)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.ResourceMethodRegistry.getResourceInvoker(ResourceMethodRegistry.java:349)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.getInvoker(SynchronousDispatcher.java:191)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:124)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)[resteasy-jaxrs-2.3.10.Final-redhat-1.jar:] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)[jboss-servlet-api_3.0_spec-1.0.2.Final-redhat-2.jar:1.0.2.Final-redhat-2] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:295)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at ar.com.flexibility.app.filter.ApiOriginFilter.doFilterInternal(ApiOriginFilter.java:46)[classes:] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)[spring-web-3.2.2.RELEASE.jar:3.2.2.RELEASE] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:231)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:149)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)[jboss-as-web-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:150)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:97)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:102)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:344)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:854)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)[jbossweb-7.5.7.Final-redhat-1.jar:7.5.7.Final-redhat-1] at java.lang.Thread.run(Unknown Source)[rt.jar:1.8.0_101]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,