Skip to content

Instantly share code, notes, and snippets.

@jeremy303
Created September 26, 2012 21:46
Show Gist options
  • Save jeremy303/3790817 to your computer and use it in GitHub Desktop.
Save jeremy303/3790817 to your computer and use it in GitHub Desktop.
Sep 26, 2012 5:35:59 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class com.acme.server.webservice.
representation.RootRepresentation, and Java type class com.acme.server.w
ebservice.representation.RootRepresentation, and MIME media type application/jso
n was not found
Sep 26, 2012 5:35:59 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: The registered message body writers compatible with the MIME media type
are:
*/* ->
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter
Sep 26, 2012 5:35:59 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: A message body writer for Java class com.acme.server.webservice.
exception.WebServiceFailure, and Java type class com.acme.server.webserv
ice.exception.WebServiceFailure, and MIME media type application/json was not fo
und
Sep 26, 2012 5:35:59 PM com.sun.jersey.spi.container.ContainerResponse write
SEVERE: The registered message body writers compatible with the MIME media type
are:
*/* ->
com.sun.jersey.server.impl.template.ViewableMessageBodyWriter
17:35:59.372 [qtp184245201-22 - /] ERROR o.a.h.ReflectorServletProcessor - onReq
uest()
javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A mess
age body writer for Java class com.acme.server.webservice.exception.WebS
erviceFailure, and Java type class com.acme.server.webservice.exception.
WebServiceFailure, and MIME media type application/json was not found
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerRespons
e.java:285) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ
est(WebApplicationImpl.java:1457) ~[server-0.0.1-SNAPSHOT-jar-with-dependenc
ies.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
st(WebApplicationImpl.java:1360) ~[server-0.0.1-SNAPSHOT-jar-with-dependenci
es.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
st(WebApplicationImpl.java:1350) ~[server-0.0.1-SNAPSHOT-jar-with-dependenci
es.jar:na]
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen
t.java:416) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet
Container.java:538) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet
Container.java:716) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [ser
ver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterCh
ain.java:170) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(Atmospher
eFilterChain.java:131) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWr
apper.service(ReflectorServletProcessor.java:310) ~[server-0.0.1-SNAPSHOT-ja
r-with-dependencies.jar:na]
at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorS
ervletProcessor.java:168) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
na]
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor
.java:257) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProces
sor.java:168) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.container.Jetty7CometSupport.service(Jetty7CometSuppor
t.java:96) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.container.JettyAsyncSupportWithWebSocket.service(Jetty
AsyncSupportWithWebSocket.java:67) [server-0.0.1-SNAPSHOT-jar-with-dependenc
ies.jar:na]
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFrame
work.java:1266) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:29
3) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279
) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) [ser
ver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) [ser
ver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643
) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:450) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:229) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:1067) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
377) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:192) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:1001) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:129) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:111) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.Server.handle(Server.java:356) [server-0
.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstrac
tHttpConnection.java:454) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:n
a]
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstra
ctHttpConnection.java:890) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
na]
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.header
Complete(AbstractHttpConnection.java:944) [server-0.0.1-SNAPSHOT-jar-with-de
pendencies.jar:na]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [
server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnecti
on.java:77) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
dPoint.java:622) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
Point.java:46) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
l.java:603) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
.java:538) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_03]
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java c
lass com.acme.server.webservice.exception.WebServiceFailure, and Java ty
pe class com.acme.server.webservice.exception.WebServiceFailure, and MIM
E media type application/json was not found
... 42 common frames omitted
17:35:59.438 [qtp184245201-22 - /] WARN o.e.jetty.servlet.ServletHandler - /
java.lang.RuntimeException: javax.ws.rs.WebApplicationException: com.sun.jersey.
api.MessageException: A message body writer for Java class com.acme.vmaserv
er.webservice.exception.WebServiceFailure, and Java type class com.acme.
server.webservice.exception.WebServiceFailure, and MIME media type application/j
son was not found
at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorS
ervletProcessor.java:171) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
na]
at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor
.java:257) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProces
sor.java:168) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.container.Jetty7CometSupport.service(Jetty7CometSuppor
t.java:96) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.container.JettyAsyncSupportWithWebSocket.service(Jetty
AsyncSupportWithWebSocket.java:67) ~[server-0.0.1-SNAPSHOT-jar-with-dependen
cies.jar:na]
at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFrame
work.java:1266) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:29
3) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:279
) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:735) ~[se
rver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[se
rver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:643
) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java
:450) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandl
er.java:229) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
er.java:1067) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
377) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandle
r.java:192) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
r.java:1001) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
ava:129) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
.java:111) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.Server.handle(Server.java:356) [server-0
.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(Abstrac
tHttpConnection.java:454) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:n
a]
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(Abstra
ctHttpConnection.java:890) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
na]
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.header
Complete(AbstractHttpConnection.java:944) [server-0.0.1-SNAPSHOT-jar-with-de
pendencies.jar:na]
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:630) [
server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:230)
[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnecti
on.java:77) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
dPoint.java:622) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
Point.java:46) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
l.java:603) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
.java:538) [server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_03]
Caused by: javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageExcept
ion: A message body writer for Java class com.acme.server.webservice.exc
eption.WebServiceFailure, and Java type class com.acme.server.webservice
.exception.WebServiceFailure, and MIME media type application/json was not found
at com.sun.jersey.spi.container.ContainerResponse.write(ContainerRespons
e.java:285) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequ
est(WebApplicationImpl.java:1457) ~[server-0.0.1-SNAPSHOT-jar-with-dependenc
ies.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
st(WebApplicationImpl.java:1360) ~[server-0.0.1-SNAPSHOT-jar-with-dependenci
es.jar:na]
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleReque
st(WebApplicationImpl.java:1350) ~[server-0.0.1-SNAPSHOT-jar-with-dependenci
es.jar:na]
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponen
t.java:416) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet
Container.java:538) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at com.sun.jersey.spi.container.servlet.ServletContainer.service(Servlet
Container.java:716) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) ~[se
rver-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.util.AtmosphereFilterChain.doFilter(AtmosphereFilterCh
ain.java:170) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.util.AtmosphereFilterChain.invokeFilterChain(Atmospher
eFilterChain.java:131) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:na]
at org.atmosphere.handler.ReflectorServletProcessor$FilterChainServletWr
apper.service(ReflectorServletProcessor.java:310) ~[server-0.0.1-SNAPSHOT-ja
r-with-dependencies.jar:na]
at org.atmosphere.handler.ReflectorServletProcessor.onRequest(ReflectorS
ervletProcessor.java:168) ~[server-0.0.1-SNAPSHOT-jar-with-dependencies.jar:
na]
... 30 common frames omitted
Caused by: com.sun.jersey.api.MessageException: A message body writer for Java c
lass com.acme.server.webservice.exception.WebServiceFailure, and Java ty
pe class com.acme.server.webservice.exception.WebServiceFailure, and MIM
E media type application/json was not found
... 42 common frames omitted
17:35:59.504 [qtp184245201-22 - /] DEBUG o.e.jetty.servlet.ServletHandler - (GET
/)@1087555910 org.eclipse.jetty.server.Request@40d2c946
17:35:59.506 [qtp184245201-22 - /] DEBUG org.eclipse.jetty.server.Server - RESPO
NSE / 500 handled=true
17:35:59.509 [qtp184245201-22] DEBUG o.e.jetty.server.AsyncHttpConnection - Enab
led read interest SCEP@5794d12c{l(/0:0:0:0:0:0:0:1:51073)<->r(/0:0:0:0:0:0:0:1:8
080),d=true,open=true,ishut=false,oshut=false,rb=false,wb=false,w=true,i=0r}-{As
yncHttpConnection@6b30cc9f,g=HttpGenerator{s=4,h=0,b=0,c=-1},p=HttpParser{s=0,l=
10,c=0},r=1}
17:35:59.519 [qtp184245201-22] DEBUG org.eclipse.jetty.http.HttpParser - filled
0/0
17:37:39.528 [qtp184245201-21] DEBUG o.e.jetty.io.nio.ChannelEndPoint - ishut SC
EP@5794d12c{l(/0:0:0:0:0:0:0:1:51073)<->r(/0:0:0:0:0:0:0:1:8080),d=true,open=tru
e,ishut=false,oshut=false,rb=false,wb=false,w=true,i=1r}-{AsyncHttpConnection@6b
30cc9f,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=-14,l=0,c=-3},r=1}
17:37:49.797 [qtp184245201-21] DEBUG org.eclipse.jetty.http.HttpParser - filled
-1/0
17:37:49.800 [qtp184245201-21] DEBUG o.e.jetty.server.AsyncHttpConnection - Disa
bled read interest while writing response SCEP@5794d12c{l(/0:0:0:0:0:0:0:1:51073
)<->r(/0:0:0:0:0:0:0:1:8080),d=true,open=true,ishut=true,oshut=false,rb=false,wb
=false,w=true,i=1r}-{AsyncHttpConnection@6b30cc9f,g=HttpGenerator{s=0,h=-1,b=-1,
c=-1},p=HttpParser{s=0,l=0,c=-3},r=1}
17:37:49.808 [qtp184245201-21] DEBUG o.e.jetty.io.nio.ChannelEndPoint - close SC
EP@5794d12c{l(/0:0:0:0:0:0:0:1:51073)<->r(/0:0:0:0:0:0:0:1:8080),d=true,open=tru
e,ishut=true,oshut=false,rb=false,wb=false,w=true,i=1!}-{AsyncHttpConnection@6b3
0cc9f,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3},r=1}
17:37:49.812 [qtp184245201-16 Selector0] DEBUG org.eclipse.jetty.io.nio - destro
yEndPoint SCEP@5794d12c{l(null)<->r(0.0.0.0/0.0.0.0:8080),d=false,open=false,ish
ut=true,oshut=true,rb=false,wb=false,w=true,i=1!}-{AsyncHttpConnection@6b30cc9f,
g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=HttpParser{s=0,l=0,c=-3},r=1}
17:37:49.815 [qtp184245201-16 Selector0] DEBUG o.e.j.server.AbstractHttpConnecti
on - closed AsyncHttpConnection@6b30cc9f,g=HttpGenerator{s=0,h=-1,b=-1,c=-1},p=H
ttpParser{s=0,l=0,c=-3},r=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment