<?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 Re: How to acess controller service from advanced UI in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-acess-controller-service-from-advanced-UI/m-p/205126#M76564</link>
    <description>&lt;P&gt;ok. found the issue. &lt;/P&gt;&lt;P&gt;added "&lt;EM&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;/EM&gt;" to maven dependencies of &lt;EM&gt;"MYProcessor&lt;/EM&gt;" project. &lt;/P&gt;&lt;P&gt;before &lt;EM&gt;"Myservice&lt;/EM&gt;" was deployed twice one inside &lt;EM&gt;"MYProcessor.Nar" &lt;/EM&gt;and one alone&lt;EM&gt; "Myservice.nar" &lt;/EM&gt;which was wrong. adding following code to &lt;EM&gt;MYProcessor &lt;/EM&gt;project solved it. &lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Apr 2018 14:23:38 GMT</pubDate>
    <dc:creator>gel_yine_gel</dc:creator>
    <dc:date>2018-04-03T14:23:38Z</dc:date>
    <item>
      <title>How to acess controller service from advanced UI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-acess-controller-service-from-advanced-UI/m-p/205125#M76563</link>
      <description>&lt;P&gt;with the custom processor i have, i need to get controllerService inside advanced UI, with following code im not able to access it, getting following casting error.  also im not sure why its returning "com.sun.proxy.$Proxy78" class.&lt;/P&gt;&lt;P&gt;am i doing it right ? how can i get controller service under advance UI ? &lt;/P&gt;&lt;PRE&gt;MYDBCPConnectionPool cs = (MYDBCPConnectionPool) nifiWebContext.getControllerService(componentDetails.getProperties().get("MYDBCP-connection-pool"), processorId);
logger.info(cs.getClass().getName());
&lt;/PRE&gt;&lt;PRE&gt;&amp;gt;&amp;gt; com.sun.proxy.$Proxy78 cannot be cast to org.apache.nifi.dbcp.MYDBCPConnectionPool&lt;/PRE&gt;&lt;P&gt;also what is the dependency requirement for "advanced-UI" when i need to access "ControllerService" . didn't find any source or example.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 16:04:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-acess-controller-service-from-advanced-UI/m-p/205125#M76563</guid>
      <dc:creator>gel_yine_gel</dc:creator>
      <dc:date>2018-03-28T16:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to acess controller service from advanced UI</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-acess-controller-service-from-advanced-UI/m-p/205126#M76564</link>
      <description>&lt;P&gt;ok. found the issue. &lt;/P&gt;&lt;P&gt;added "&lt;EM&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;/EM&gt;" to maven dependencies of &lt;EM&gt;"MYProcessor&lt;/EM&gt;" project. &lt;/P&gt;&lt;P&gt;before &lt;EM&gt;"Myservice&lt;/EM&gt;" was deployed twice one inside &lt;EM&gt;"MYProcessor.Nar" &lt;/EM&gt;and one alone&lt;EM&gt; "Myservice.nar" &lt;/EM&gt;which was wrong. adding following code to &lt;EM&gt;MYProcessor &lt;/EM&gt;project solved it. &lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;scope&amp;gt;provided&amp;lt;/scope&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Apr 2018 14:23:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-acess-controller-service-from-advanced-UI/m-p/205126#M76564</guid>
      <dc:creator>gel_yine_gel</dc:creator>
      <dc:date>2018-04-03T14:23:38Z</dc:date>
    </item>
  </channel>
</rss>

