javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class net.bull.javamelody.CounterResponseStream, and Java type class net.bull.javamelody.CounterResponseStream, and MIME media type application/octet-stream was not found.

Stack Overflow | annih | 4 months ago
  1. 0

    Javamelody CounterResponseStream application/octet-stream Message Body Writer not found

    Stack Overflow | 4 months ago | annih
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class net.bull.javamelody.CounterResponseStream, and Java type class net.bull.javamelody.CounterResponseStream, and MIME media type application/octet-stream was not found.
  2. 0

    REST Jersey causes HTTP Status 500 - Internal Server Error

    Stack Overflow | 3 years ago | ron
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.json.JSONObject, and Java type class org.json.JSONObject, and MIME media type application/json was not found
  3. 0

    I am getting exception while accessing below webservice method through browser

    Stack Overflow | 2 years ago | tanmay
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class java.lang.Integer, and Java type int, and MIME media type text/plain was not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to send Response from Rest method

    Stack Overflow | 2 years ago | Gokul Nath
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.sun.jersey.core.spi.factory.ResponseBuilderImpl, and Java type class javax.ws.rs.core.Response$ResponseBuilder, and MIME media type application/octet-stream was not found
  6. 0

    Dreaded Exception SEVERE: A message body writer for Java class, MIME media type application/json | Build CarPool Solutions On Any Device To Run Anywhere

    wordpress.com | 1 year ago
    javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class com.mcruiseon.atom.endpoint.response.ConsolidationSearchForUsersResponse, and Java type class com.mcruiseon.atom.endpoint.response.ConsolidationSearchForUsersResponse, 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 net.bull.javamelody.CounterResponseStream, and Java type class net.bull.javamelody.CounterResponseStream, and MIME media type application/octet-stream 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:284)
    2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1510)
    3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
    4. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
    4 frames
  3. Jersey
    ServletContainer.service
    1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
    2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
    3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)
    3 frames
  4. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    1 frame
  5. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  6. Tomcat WS
    WsFilter.doFilter
    1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    1 frame
  7. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  8. hidden.web.filter
    LogFilter.doFilter
    1. hidden.web.filter.LogFilter.doFilter(LogFilter.java:89)
    1 frame
  9. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  10. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    2. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    3. org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    4. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    5. org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    6. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    7. org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
    8. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    8 frames
  11. hidden.web.filter
    DebugFilter.doFilter
    1. hidden.web.filter.DebugFilter.doFilter(DebugFilter.java:138)
    1 frame
  12. Spring Security
    FilterChainProxy$VirtualFilterChain.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    2. org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    4. org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    5. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    5 frames
  13. org.springframework.security
    SpnegoAuthenticationProcessingFilter2.doFilter
    1. org.springframework.security.extensions.kerberos.web.SpnegoAuthenticationProcessingFilter2.doFilter(SpnegoAuthenticationProcessingFilter2.java:211)
    1 frame
  14. Spring Security
    FilterChainProxy.doFilter
    1. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    2. org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
    3. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    4. org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    5. org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    6. org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    6 frames
  15. Spring
    DelegatingFilterProxy.doFilter
    1. org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
    2. org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
    2 frames
  16. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  17. Spring
    OncePerRequestFilter.doFilter
    1. org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
    2. org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    2 frames
  18. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  19. hidden.web.filter
    MandantFilter.doFilter
    1. hidden.web.filter.MandantFilter.doFilter(MandantFilter.java:315)
    1 frame
  20. Glassfish Core
    ApplicationDispatcher.forward
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    3. org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748)
    4. org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486)
    5. org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:411)
    6. org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338)
    6 frames
  21. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor141.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    3. java.lang.reflect.Method.invoke(Method.java:483)
    3 frames
  22. net.bull.javamelody
    JdbcWrapper$DelegatingInvocationHandler.invoke
    1. net.bull.javamelody.JspWrapper.invoke(JspWrapper.java:150)
    2. net.bull.javamelody.JdbcWrapper$DelegatingInvocationHandler.invoke(JdbcWrapper.java:285)
    2 frames
  23. com.sun.proxy
    $Proxy187.forward
    1. com.sun.proxy.$Proxy187.forward(Unknown Source)
    1 frame
  24. hidden.web.filter
    MandantFilter.doFilter
    1. hidden.web.filter.MandantFilter.doFilter(MandantFilter.java:251)
    1 frame
  25. Glassfish Core
    ApplicationFilterChain.doFilter
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    2 frames
  26. net.bull.javamelody
    MonitoringFilter.doFilter
    1. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:202)
    2. net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:180)
    2 frames
  27. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    9 frames
  28. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
    3 frames
  29. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    2 frames
  30. Tomcat Util
    TaskThread$WrappingRunnable.run
    1. org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    1 frame
  31. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame