/api/positions/?deviceId={id} return NullPointerException

Rogers Dwiputra 8 years ago

Hi, when I call API Method /api/positions/?deviceId={id} it's return

NullPointerException (... < DateUtil:64 < PositionResource:67 < ...)

but when no parameter, it's normal (return list of position of all devices)

Thank You

Anton Tananaev 8 years ago

You need to provide Accept header in your request.

Rogers Dwiputra 8 years ago

Hi Anton, i have included Accept: application/json header, but still response NullPointerException (... < DateUtil:64 < PositionResource:67 < ...)

alt text

Anton Tananaev 8 years ago

Actually the problem is that you haven't provided from and to parameters.