Matt Burgess created NIFI-2155:
----------------------------------
Summary: Cannot disable a controller service if referenced by a
processor
Key: NIFI-2155
URL: https://issues.apache.org/jira/browse/NIFI-2155
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 1.0.0
Reporter: Matt Burgess
When a Controller Service (such as Database Connection Pool) is referenced by a
processor and enabled, then disabling it causes an NPE:
2016-06-30 09:33:01,850 INFO [NiFi Web Server-79]
org.apache.nifi.web.filter.RequestLogger Attempting request for (anonymous) PUT
http://127.0.0.1:8989/nifi-api/controller-services/1d1acd4d-3946-4cd5-9074-94f89de5be9e/references
(source ip: 127.0.0.1)
2016-06-30 09:33:01,856 ERROR [NiFi Web Server-79]
o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred:
java.lang.NullPointerException. Returning Internal Server Error response.
java.lang.NullPointerException: null
at
org.apache.nifi.web.api.dto.DtoFactory.createRevisionDTO(DtoFactory.java:2882)
~[classes/:na]
at
org.apache.nifi.web.StandardNiFiServiceFacade.createControllerServiceReferencingComponentsEntity(StandardNiFiServiceFacade.java:1761)
~[classes/:1.0.0-SNAPSHOT]
If the controller service is not referenced by a processor, it can be disabled
successfully.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)