<?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: Saxparser2 not found: upgrade nifi 1.1 to nifi 1.5 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201061#M83700</link>
    <description>&lt;P&gt;Thank you Matt,&lt;BR /&gt;I solved this problem by rewriting the script with Groovy.&lt;BR /&gt;An other way to fix this problem has been proposed by a hortonworks nifi expert who developped a new patch of jython (which i have tested it), but this solution is under approval process by the hortonworks support.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 15:10:32 GMT</pubDate>
    <dc:creator>hfaiedhwalid</dc:creator>
    <dc:date>2018-10-23T15:10:32Z</dc:date>
    <item>
      <title>Saxparser2 not found: upgrade nifi 1.1 to nifi 1.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201058#M83697</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/91513-capture-error-executescript.png"&gt;capture-error-executescript.png&lt;/A&gt;I have a script python that is executed to parse xml and do some operations to the data extracted from an xml file. This script is executed by the ExecuteScript processor. I has been working correctly with nifi 1.1. But after upgrading to nifi 1.5, an error was occured because of jython-shaded-2.7.1.jar which eventually contains the  SAXParser 2. In nifi 1.1, the jython used is the jython-standalone-2.7.0.jar.&lt;BR /&gt;&lt;BR /&gt;Please, can anyone tell me how to fix this problem?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 20:14:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201058#M83697</guid>
      <dc:creator>hfaiedhwalid</dc:creator>
      <dc:date>2018-09-20T20:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Saxparser2 not found: upgrade nifi 1.1 to nifi 1.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201059#M83698</link>
      <description>&lt;P&gt;I have the same problem,&lt;BR /&gt;did you find any work-around?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 21:31:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201059#M83698</guid>
      <dc:creator>minaa_khalili</dc:creator>
      <dc:date>2018-10-09T21:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Saxparser2 not found: upgrade nifi 1.1 to nifi 1.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201060#M83699</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/98203/hfaiedhwalid.html" nodeid="98203"&gt;@walid hfaiedh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/223174/saxparser2-not-found-upgrade-nifi-11-to-nifi-15.html?childToView=224878#"&gt;@mina kh&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you noted there was a change between NiFi 1.1. and NiFi 1.5 in the jython jar being used.  This change was made to address &lt;A href="https://issues.apache.org/jira/browse/NIFI-4301"&gt;https://issues.apache.org/jira/browse/NIFI-4301&lt;/A&gt;. As result the SAXParser your script used in NiFi 1.1 is no longer available.   &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The following Apache Jira was opened to address this issue:&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/NIFI-5650"&gt;https://issues.apache.org/jira/browse/NIFI-5650&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Possible alternatives solution in mean time:&lt;BR /&gt;1. Rewrite your script in groovy&lt;/P&gt;&lt;P&gt;2. If script still executes fine via command line from the NiFi server, try using ExecuteStreamCommand processor instead for now. (this may not be an option depending on nature of your jython script)&lt;/P&gt;&lt;P&gt;3. Swap out the scripting nar provided in NiFi 1.5 with the scripting nar from NiFi 1.1 until above issue is addressed.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If you found this answer addressed your question, please take a moment to login in and click the "ACCEPT" link.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 21:58:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201060#M83699</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-10-09T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Saxparser2 not found: upgrade nifi 1.1 to nifi 1.5</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201061#M83700</link>
      <description>&lt;P&gt;Thank you Matt,&lt;BR /&gt;I solved this problem by rewriting the script with Groovy.&lt;BR /&gt;An other way to fix this problem has been proposed by a hortonworks nifi expert who developped a new patch of jython (which i have tested it), but this solution is under approval process by the hortonworks support.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 15:10:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Saxparser2-not-found-upgrade-nifi-1-1-to-nifi-1-5/m-p/201061#M83700</guid>
      <dc:creator>hfaiedhwalid</dc:creator>
      <dc:date>2018-10-23T15:10:32Z</dc:date>
    </item>
  </channel>
</rss>

