Support Questions
Find answers, ask questions, and share your expertise

ListenHTTP NiFi Proccessor error with same port differnt path

Explorer

I have 2 ListenHttp processor listening on the same port, with two different paths and I get the following error:

Any ideas? why? Im using nifi 0.7.4 @Matt Clarke @Matt Burgess

ListenHTTP[id=ed7a45f5-4c4e-485a-a53d-8178649ec1e0] ListenHTTP[id=ed7a45f5-4c4e-485a-a53d-8178649ec1e0] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30000 milliseconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.
1 REPLY 1

Explorer

@John T,

You cannot have two different ListenHttp processors listening on the same port. Also, ListenHttp allows only one path. You can use HandleHttpRequest followed by a RouteOnAttribute and use the http.request.url attribute to route to your path.