2014-12-08 3 views
1

에 대한 내 자원메시지 본문 리더 AsyncResponse

@GET 
    @Path("/{a}") 
    @Produces(Array(MediaType.APPLICATION_XML)) 
    def asyncGet(@Suspended asyncResponse: AsyncResponse, @PathParam("a") a: Int): Unit = { 
    someFuture.onSuccess(asyncResponse.resume(_)) 
    } 

를에 저지의 비동기 reposne 기능을 사용하고 있습니다하지만이 리소스에 요청을 수행 할 때 나는 HTTP로 회색을 사용하고

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 

를 얻을 수 서버

답변

0

문제점은 저널 1.x에 transitivly 의존 한 하나의 맞춤 라이브러리에 문제가 있었지만 프로젝트에서 저지 2.x를 사용하고 있습니다. 그래서 문제가 해결되었습니다