Я использую Localhost: 8080/_ah/API/исследователь Google исследовать: Я получаюJava Blobstore и Google SPI AppEngine конечная точка
{
"error": {
"message": "com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: Can not construct instance of javax.servlet.http.HttpServletResponse, problem: abstract types can only be instantiated with additional type information\n at [Source: N/A; line: -1, column: -1]",
"code": 400,
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "com.google.appengine.repackaged.org.codehaus.jackson.map.JsonMappingException: Can not construct instance of javax.servlet.http.HttpServletResponse, problem: abstract types can only be instantiated with additional type information\n at [Source: N/A; line: -1, column: -1]"
}
]
}
мой Google SPI код является:
@ApiMethod(name = "findBillImage", httpMethod = ApiMethod.HttpMethod.GET)
public void findImage(HttpServletResponse httpServletResponse , @Named("blobkey") String blobKeyValue) throws IOException {
BlobKey blobKey = new BlobKey(blobKeyValue);
BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
blobstoreService.serve(blobKey, httpServletResponse);
}
в любое время Я пытаюсь написать что-нибудь в HttpServletResponse. Я получаю эту ошибку .. im потерял почему я не могу написать httpServletResponse