<?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: ExecuteScrip Groovy ClassNotFound Exception in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301025#M220489</link>
    <description>&lt;P&gt;OK,&amp;nbsp; will try to install the required java version. My bad, I did not think that would cause the problem. Do I have to uninstall nifi and reinstall everything or just uninstalling\reinstalling java would suffice.?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 18:49:33 GMT</pubDate>
    <dc:creator>SAMSAL</dc:creator>
    <dc:date>2020-08-06T18:49:33Z</dc:date>
    <item>
      <title>ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/300784#M220387</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Im new to Nifi and Groovy. I have been trying to run a groovy script using the ExecuteScript Processor but not matter what my groovy code is I keep getting the exception "Java.Lang.NoClassDefFoundError: Couldnot Initialize class groovy.lang.groovySystem" not sure why? I have installed the groovy sdk and set the environment variable PATH accordingly. Not sure what else I have to do? Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 17:19:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/300784#M220387</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-03T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301000#M220473</link>
      <description>&lt;P&gt;Anybody can help with this please? I cant progress without resolving this error which seems to be related to Nifi\groovy configuration that prevents me from running any kind of groovy script from nifi. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 13:59:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301000#M220473</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-06T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301003#M220476</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you provide a bit more info.&lt;/P&gt;&lt;P&gt;What version of NiFi are you on?&lt;/P&gt;&lt;P&gt;Can you provide the script?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you are using ExecuteScript make sure you are setting groovy as script engine and y&lt;SPAN&gt;ou do not need to install Groovy separately for&amp;nbsp;&lt;/SPAN&gt;ExecuteScript&lt;SPAN&gt;&amp;nbsp;because it runs on the internal JVM using JSR-223 scripting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So if you are setting&amp;nbsp;Module Directory just because you think you need to set that to point to groovy, try unsetting that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and can you run a simple script to test this out:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;import groovy.io.FileType
def flowFile = session.get();&lt;BR /&gt;&lt;SPAN&gt;session.transfer(flowFile, REL_SUCCESS)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:48:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301003#M220476</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2020-08-06T14:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301008#M220479</link>
      <description>&lt;P&gt;Thanks for attending to my ticket.&lt;/P&gt;&lt;P&gt;Im using what I think the latest nifi version 1.11.4. Running on windows 10 for testing.&lt;/P&gt;&lt;P&gt;I was using script similar to what is provided in (&lt;A href="https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-1/ta-p/248922" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Community-Articles/ExecuteScript-Cookbook-part-1/ta-p/248922&lt;/A&gt; )&amp;nbsp; which seems to be outdated because the scripting languages there doesnt match what I see in the latest version of Nifi. None the less when I try your script it still fails with the same error (other scripts engine like python works fine):&lt;/P&gt;&lt;DIV class="bulletin"&gt;&lt;PRE&gt;ExecuteScript[id=c461682d-0173-1000-f3bb-1a7ace8e772d] ExecuteScript[id=c461682d-0173-1000-f3bb-1a7ace8e772d] failed to process session due to Could not initialize class org.codehaus.groovy.classgen.Verifier; Processor Administratively Yielded for 1 sec: java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.classgen.Verifier&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="bulletin"&gt;&lt;DIV class="bulletin-info"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExecuteSriptGroovy.JPG" style="width: 800px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/28494i0F3FACFB5BB38B74/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExecuteSriptGroovy.JPG" alt="ExecuteSriptGroovy.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 15:45:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301008#M220479</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-06T15:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301022#M220486</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt; thanks for confirmation, what java version is the NiFi JVM using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can find it multiple ways but maybe easiest is to look at:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Global Configuration Menu ( top right ) &amp;gt; Cluster &amp;gt; Versions tab&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or if single node maybe just finding the java version windows has, assuming not multiple.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:58:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301022#M220486</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2020-08-06T17:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301023#M220487</link>
      <description>&lt;P&gt;Im using single instance. I just ran the "java -version" command, and here is what I have:&lt;/P&gt;&lt;P&gt;java version "14.0.1" 2020-04-14&lt;BR /&gt;Java(TM) SE Runtime Environment (build 14.0.1+7)&lt;BR /&gt;Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:11:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301023#M220487</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-06T18:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301024#M220488</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NiFi will only run on java 8 or 11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;NiFi requires Java 8 or 11. It is recommended that you have installed one of these Java versions prior to installing NiFi via Homebrew. Homebrew is aware NiFi depends on Java but not the specific supported versions, so it may prompt to install an incompatible JDK as part of its NiFi install."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/getting-started.html#downloading-and-installing-nifi" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/html/getting-started.html#downloading-and-installing-nifi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:19:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301024#M220488</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2020-08-06T18:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301025#M220489</link>
      <description>&lt;P&gt;OK,&amp;nbsp; will try to install the required java version. My bad, I did not think that would cause the problem. Do I have to uninstall nifi and reinstall everything or just uninstalling\reinstalling java would suffice.?&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 18:49:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301025#M220489</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-06T18:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301027#M220491</link>
      <description>&lt;P&gt;Just install the right java should be good enough.&lt;/P&gt;&lt;P&gt;And if you get more than one JAVA just point JAVA HOME to a proper version for NiFi&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 19:05:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301027#M220491</guid>
      <dc:creator>DigitalPlumber</dc:creator>
      <dc:date>2020-08-06T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: ExecuteScrip Groovy ClassNotFound Exception</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301086#M220514</link>
      <description>&lt;P&gt;Thank you very much! After installing the proper java version the Groovy script started to work.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 17:14:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ExecuteScrip-Groovy-ClassNotFound-Exception/m-p/301086#M220514</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2020-08-07T17:14:55Z</dc:date>
    </item>
  </channel>
</rss>

