javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.myservice.domain.Person, and Java type class com.myservice.domain.Person, and MIME media type application/json was not found

coderanch.com | 3 months ago
  1. 0

    Unable to Produce JSON - javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException (Web Services forum at Coderanch)

    coderanch.com | 7 months ago
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.myservice.domain.Person, and Java type class com.myservice.domain.Person, and MIME media type application/json was not found
  2. 0

    Unable to Produce JSON - javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException (Web Services forum at Coderanch)

    coderanch.com | 3 months ago
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.myservice.domain.Person, and Java type class com.myservice.domain.Person, and MIME media type application/json was not found
  3. 0

    Unable to Produce JSON - javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException

    Coderanch | 4 years ago | James Dekker
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.myservice.domain.Person, and Java type class com.myservice.domain.Person, and MIME media type application/json was not found
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jersey + Json media type application/json was not found

    Stack Overflow | 4 years ago | Ajay
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.test.Jsonexample, and Java type class com.test.Jsonexample, and MIME media type application/json was not found
  6. 0

    My REST API (using Jersey) cannot find a message body writer (for JSON) for a persisted entity (using OpenJPA).

    Stack Overflow | 2 years ago | nick.bourbaki
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.apache.openjpa.enhance.com$stod$models$User$pcsubclass, and Java type class com.stod.models.User, and MIME media type application/json was not found

  1. Bradford Hovinen 1 times, last 9 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.sun.jersey.api.MessageException

    A message body writer for Java class com.myservice.domain.Person, and Java type class com.myservice.domain.Person, and MIME media type application/json was not found

    at com.sun.jersey.spi.container.ContainerResponse.write()
  2. Jersey
    WebApplicationImpl.handleRequest
    1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:285)
    2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1448)
    3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360)
    4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350)
    4 frames
  3. Jersey
    ServletContainer.service
    1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
    2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
    3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
    3 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    1 frame
  5. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
    6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
    9 frames
  6. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    3 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    3. java.lang.Thread.run(Thread.java:662)
    3 frames