【发布时间】:2014-12-08 21:49:29
【问题描述】:
我在资源中使用 jersey 的异步 reposne 功能
@GET
@Path("/{a}")
@Produces(Array(MediaType.APPLICATION_XML))
def asyncGet(@Suspended asyncResponse: AsyncResponse, @PathParam("a") a: Int): Unit = {
someFuture.onSuccess(asyncResponse.resume(_))
}
但是当对该资源执行请求时,我得到了
SEVERE: A message body reader for Java class javax.ws.rs.container.AsyncResponse, and Java type interface javax.ws.rs.container.AsyncResponse, and MIME media type application/octet-stream was not found
我使用 grizzly 作为 http 服务器
【问题讨论】:
标签: scala asynchronous jersey jax-rs grizzly