<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Custom Controller Service could not be instantiated in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Custom-Controller-Service-could-not-be-instantiated/m-p/195891#M157945</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am developing a custom controller service to interact with Apache Phoenix. After building the NAR files I faced an InstantiationException when deploying the NARs and restarting NiFi. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could anyone with experience developing custom processors and especially custom controller services take a look at the below error output and help point me in the right direction? I have also attached the poms as well as the bundled dependencies &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the error output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to 
&lt;STRONG&gt;java.util.ServiceConfigurationError:
org.apache.nifi.controller.ControllerService: Provider 
org.apache.nifi.phoenix.service.PhoenixDBCPService could not be 
instantiatedjava.util.ServiceConfigurationError:
 org.apache.nifi.controller.ControllerService: Provider 
org.apache.nifi.phoenix.service.PhoenixDBCPService
could not be instantiated  at &lt;/STRONG&gt;java.util.ServiceLoader.fail(ServiceLoader.java:232)  at java.util.ServiceLoader.access$100(ServiceLoader.java:185)  at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)  at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)  at java.util.ServiceLoader$1.next(ServiceLoader.java:480)  at org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:142)  at org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:117)  at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:771)  at org.apache.nifi.NiFi.&amp;lt;init&amp;gt;(NiFi.java:160)  at &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;org.apache.nifi.NiFi.main(NiFi.java:268)Caused by: java.lang.InstantiationException: &lt;/STRONG&gt;org.apache.nifi.phoenix.service.PhoenixDBCPService  at java.lang.Class.newInstance(Class.java:427)  at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)  ... 7 common frames omitted&lt;/P&gt;&lt;P&gt;Caused by: &lt;STRONG&gt;java.lang.NoSuchMethodException: org.apache.nifi.phoenix.service.PhoenixDBCPService.&amp;lt;init&amp;gt;()  at &lt;/STRONG&gt;java.lang.Class.getConstructor0(Class.java:3082)  at java.lang.Class.newInstance(Class.java:412)  ... 8 common frames omitted&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/65418-bundled-dependencies-phoenix-service.txt"&gt;bundled-dependencies-phoenix-service.txt&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 21 Mar 2018 23:05:15 GMT</pubDate>
    <dc:creator>mehtaparas77</dc:creator>
    <dc:date>2018-03-21T23:05:15Z</dc:date>
    <item>
      <title>Custom Controller Service could not be instantiated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Custom-Controller-Service-could-not-be-instantiated/m-p/195891#M157945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am developing a custom controller service to interact with Apache Phoenix. After building the NAR files I faced an InstantiationException when deploying the NARs and restarting NiFi. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could anyone with experience developing custom processors and especially custom controller services take a look at the below error output and help point me in the right direction? I have also attached the poms as well as the bundled dependencies &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks in advance!!!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the error output:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ERROR [main] org.apache.nifi.NiFi Failure to launch NiFi due to 
&lt;STRONG&gt;java.util.ServiceConfigurationError:
org.apache.nifi.controller.ControllerService: Provider 
org.apache.nifi.phoenix.service.PhoenixDBCPService could not be 
instantiatedjava.util.ServiceConfigurationError:
 org.apache.nifi.controller.ControllerService: Provider 
org.apache.nifi.phoenix.service.PhoenixDBCPService
could not be instantiated  at &lt;/STRONG&gt;java.util.ServiceLoader.fail(ServiceLoader.java:232)  at java.util.ServiceLoader.access$100(ServiceLoader.java:185)  at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)  at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)  at java.util.ServiceLoader$1.next(ServiceLoader.java:480)  at org.apache.nifi.nar.ExtensionManager.loadExtensions(ExtensionManager.java:142)  at org.apache.nifi.nar.ExtensionManager.discoverExtensions(ExtensionManager.java:117)  at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:771)  at org.apache.nifi.NiFi.&amp;lt;init&amp;gt;(NiFi.java:160)  at &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;org.apache.nifi.NiFi.main(NiFi.java:268)Caused by: java.lang.InstantiationException: &lt;/STRONG&gt;org.apache.nifi.phoenix.service.PhoenixDBCPService  at java.lang.Class.newInstance(Class.java:427)  at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)  ... 7 common frames omitted&lt;/P&gt;&lt;P&gt;Caused by: &lt;STRONG&gt;java.lang.NoSuchMethodException: org.apache.nifi.phoenix.service.PhoenixDBCPService.&amp;lt;init&amp;gt;()  at &lt;/STRONG&gt;java.lang.Class.getConstructor0(Class.java:3082)  at java.lang.Class.newInstance(Class.java:412)  ... 8 common frames omitted&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/65418-bundled-dependencies-phoenix-service.txt"&gt;bundled-dependencies-phoenix-service.txt&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:05:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Custom-Controller-Service-could-not-be-instantiated/m-p/195891#M157945</guid>
      <dc:creator>mehtaparas77</dc:creator>
      <dc:date>2018-03-21T23:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Controller Service could not be instantiated</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Custom-Controller-Service-could-not-be-instantiated/m-p/195892#M157946</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've resolved the issue - in the file "src/main/resources/META-INF/services/org.apache.nifi.controller.ControllerService" I previously had it as "org.apache.nifi.phoenix.service.PhoenixDBCPService" and after changing it to "org.apache.nifi.phoenix.service.PhoenixConnectionPool" NiFi was able to startup and I was able to use/access my custom processors.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 23:56:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Custom-Controller-Service-could-not-be-instantiated/m-p/195892#M157946</guid>
      <dc:creator>mehtaparas77</dc:creator>
      <dc:date>2018-03-21T23:56:14Z</dc:date>
    </item>
  </channel>
</rss>

