Jersey/Jackson Exception problem with ExceptionMapper

前端 未结 5 1245
野趣味
野趣味 2021-02-04 05:07

I\'m using Jersey to provide a java REST service to the outside world. I offer some functions that take JSON and I use the Jackson framework in combination with jersey to conver

5条回答
  •  情书的邮戳
    2021-02-04 05:51

    Thanks for your help, an ExceptionMapper for JsonParseException didn't help. I removed the jackson jar files from my projekt and included the jackson sources. Then I modified ord.codehaus.jackson.jaxrs.JsonParseExceptionMapper and JacksonMappingExceptionMapper to return my custom response content. I'm not happy with it, but it works now!

    Thanks for your help!

提交回复
热议问题