Pierre, Under the assumption your issues are occurring under the testing framework with the TestRunner, are you calling one of the overloaded TestRunner#run methods that allows specification of stopOnFinish, such as [1]?
If this is not the case, is your code available anywhere for inspection? [1] https://github.com/apache/nifi/blob/master/nifi-mock/src/main/java/org/apache/nifi/util/TestRunner.java#L84 On Sun, Feb 28, 2016 at 10:25 AM, Pierre Villard < [email protected]> wrote: > Hi, > > I am working on SNMP processors [1] and I'm almost ready for a PR... but I > have an issue I can't explain. In my processors, I have implemented a > method close() with the @OnStopped annotation but it seems the annotation > is not seen. When debugging and stopping my processor, I correctly go > through quietlyInvokeMethodsWithAnnotations() in ReflectionUtils and my > method close() appears without any annotation. I guess I am missing > something simple. Any idea? > > [1] https://issues.apache.org/jira/browse/NIFI-1537 >
