users@jersey.java.net

[Jersey] _at_Context HttpServletRequest request is null

From: jeff saremi <jeffsaremi_at_hotmail.com>
Date: Mon, 14 Dec 2015 15:43:32 -0500

From the printed stack trace i can see the nullpointeexception is throw on the following line:

String addr = request.getRemoteAddr();

which is the first line in my method:
    @Path("parse") @POST @Consumes(MediaType.TEXT_PLAIN) @Produces(MediaType.TEXT_PLAIN) public String parse(String jsonInput, @Context HttpServletRequest request) {

How can it get the proper object?

thanksJeff