Nirmal, If you consume the body of the response it should indicate the reason for the 409. On failed responses, the response body should be text/plain. Let me know if that helps.
Thanks Matt On Mon, Dec 5, 2016 at 11:29 PM, Nirmal Kumar <[email protected]> wrote: > Hi All, > > > > I am getting the following exception **intermittently** when firing a > DELETE request for deleting the Process group: > > http://xxx.xxx.xxx.xxx:9091/nifi-api/process-groups/ > 103111c4-123b-14f9-a794-14795038dbdf?version=0 > > > > org.springframework.web.client.HttpClientErrorException: 409 Conflict > > at org.springframework.web.client.DefaultResponseErrorHandler. > handleError(DefaultResponseErrorHandler.java:91) ~[nifi-util-1.0.0.jar:na] > > at org.springframework.web.client.RestTemplate. > handleResponseError(RestTemplate.java:615) ~[nifi-util-1.0.0.jar:na] > > at > org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:573) > ~[nifi-util-1.0.0.jar:na] > > at > org.springframework.web.client.RestTemplate.execute(RestTemplate.java:529) > ~[nifi-util-1.0.0.jar:na] > > at > org.springframework.web.client.RestTemplate.delete(RestTemplate.java:401) > ~[nifi-util-1.0.0.jar:na] > > > > I am using Nifi 1.0.0 version. > > > > Not sure if setting these timeout will help here: > > *public* RestTemplate restTemplate() { > > *return* *new* RestTemplate(*clientHttpRequestFactory*()); > > } > > > > *private* *ClientHttpRequestFactory* clientHttpRequestFactory() { > > *HttpComponentsClientHttpRequestFactory* factory = *new* > *HttpComponentsClientHttpRequestFactory*(); > > factory.setReadTimeout(2000); > > factory.setConnectTimeout(2000); > > *return* factory; > > } > > > > Any pointers here would be great. > > > > Thanks, > > -Nirmal > > > > ------------------------------ > > > > > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. >
