<?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 ExecuteGroovyScript gives InstantiationException in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286065#M212197</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to add an ExecuteGroovyScript processor. A simple example test works fine, but when I try to add my script it does not initiate. Exception (on hoover over) is really brief: InstantiationException thrown by groovy invokehelper.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Script uses some external jars. As far as I can see I added those to the classpath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am probably doing something stupid but I was wondering how to debug this issue? The log files do not seem to contain anything wrt this error which makes troubleshooting very difficult&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All tips warmly welcomed!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 06:51:41 GMT</pubDate>
    <dc:creator>peter_coppens</dc:creator>
    <dc:date>2019-12-20T06:51:41Z</dc:date>
    <item>
      <title>ExecuteGroovyScript gives InstantiationException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286065#M212197</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to add an ExecuteGroovyScript processor. A simple example test works fine, but when I try to add my script it does not initiate. Exception (on hoover over) is really brief: InstantiationException thrown by groovy invokehelper.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Script uses some external jars. As far as I can see I added those to the classpath.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am probably doing something stupid but I was wondering how to debug this issue? The log files do not seem to contain anything wrt this error which makes troubleshooting very difficult&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All tips warmly welcomed!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 06:51:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286065#M212197</guid>
      <dc:creator>peter_coppens</dc:creator>
      <dc:date>2019-12-20T06:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteGroovyScript gives InstantiationException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286244#M212318</link>
      <description>&lt;P&gt;This is quite a broad question and hard to troubleshoot all at once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A general approach:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Analyze your custom code and identify all bits of complexity/all dependencies&lt;/P&gt;&lt;P&gt;2. Run the standard example&lt;/P&gt;&lt;P&gt;3. Introduce in a very minimal fashion one complexity/dependency from your custom code into the standard&lt;/P&gt;&lt;P&gt;4. If it works, repeat step 3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should allow you to narrow down exactly what is causing the problem (and hopefully guide the resolution).&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:31:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286244#M212318</guid>
      <dc:creator>DennisJaheruddi</dc:creator>
      <dc:date>2019-12-24T11:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteGroovyScript gives InstantiationException</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286247#M212321</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Tx for your reaction Dennis. I was able to continue.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The reason I was having issues seemed to be related to the fact that the Groovy script was a standard class with a static main method. It makes sense that Nifi does not accept that I guess, but the process of diagnosing such issue might be made easier imo. It was a trial and error task, and as you suggested, by starting from an example.&lt;BR /&gt;&lt;BR /&gt;Anyway, I am good now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;&lt;BR /&gt;Peter&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2019 11:43:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteGroovyScript-gives-InstantiationException/m-p/286247#M212321</guid>
      <dc:creator>peter_coppens</dc:creator>
      <dc:date>2019-12-24T11:43:52Z</dc:date>
    </item>
  </channel>
</rss>

