You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ranger.apache.org by Nigel Jones <ni...@gmail.com> on 2018/10/22 17:18:30 UTC

Debugging a REST operation - catalina.out

I am trying to debug my use of some Ranger REST APIs.
I am using ranger built from master, configured with mariadb, and using the regular ranger startup script with only ranger-2.0.0-SNAPSHOT-admin for now.

However I'm noticing that the catalina.out log file (where I've seen some issues, for example in the parsing of the JSON payload of some of my requests) is buffered. I'd like to force the file to flush, ideally after every log entry, whilst developing.

The kind of errors I'm looking for are from within tomcat itself ie 

Oct 22, 2018 3:44:25 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [REST Service] in context with path [] threw exception [org.codehaus.jackson.map.JsonMappingException: Can not construct instance 

Somewhat typical when trying to get the right payload...

However I'm unsure what exactly to change to achieve this. Any tips?

nigel.

Re: Debugging a REST operation - catalina.out

Posted by Nigel Jones <ni...@gmail.com>.

On 2018/10/22 17:18:30, Nigel Jones <ni...@gmail.com> wrote: 

> However I'm noticing that the catalina.out log file (where I've seen some issues, for example in the parsing of the JSON payload of some of my requests) is buffered. I'd like to force the file to flush, ideally after every log entry, whilst developing.

Resolved for now - I was using the wrong baseURL. 

Now seeing the ranger log exceptions which are helping me debug my rest calls