<?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: Exception in ExecuteSQL processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95832#M9167</link>
    <description>&lt;P&gt;For the record, the patch has now made it into the next NiFi release.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2015 19:24:42 GMT</pubDate>
    <dc:creator>andrewg</dc:creator>
    <dc:date>2015-10-26T19:24:42Z</dc:date>
    <item>
      <title>Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95827#M9162</link>
      <description>&lt;P&gt;After fixing the empty schema bug, when trying to pull data from Oracle server to PutFile I get the following exception:&lt;/P&gt;&lt;PRE&gt;2015-10-20 15:59:59,859 ERROR [Timer-Driven Process Thread-9] o.a.nifi.processors.standard.ExecuteSQL ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] failed to process due to org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence; rolling back session: org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence
2015-10-20 15:59:59,860 ERROR [Timer-Driven Process Thread-9] o.a.nifi.processors.standard.ExecuteSQL ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] failed to process session due to org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence: org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence
2015-10-20 15:59:59,860 WARN [Timer-Driven Process Thread-9] o.a.nifi.processors.standard.ExecuteSQL ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] Processor Administratively Yielded for 1 sec due to processing failure
2015-10-20 15:59:59,860 WARN [Timer-Driven Process Thread-9] o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding ExecuteSQL[id=f92d313d-fc87-42a9-ac24-ce7d9b6972c9] due to uncaught Exception: org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence
2015-10-20 15:59:59,864 WARN [Timer-Driven Process Thread-9] o.a.n.c.t.ContinuallyRunProcessorTask
org.apache.avro.file.DataFileWriter$AppendWriteException: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence
  at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:296) ~[na:na]
  at org.apache.nifi.processors.standard.util.JdbcCommon.convertToAvroStream(JdbcCommon.java:87) ~[na:na]
  at org.apache.nifi.processors.standard.ExecuteSQL$1.process(ExecuteSQL.java:142) ~[na:na]
  at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:1937) ~[nifi-framework-core-0.3.0.jar:0.3.0]
  at org.apache.nifi.processors.standard.ExecuteSQL.onTrigger(ExecuteSQL.java:136) ~[na:na]
  at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-0.3.0.jar:0.3.0]
  at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1077) ~[nifi-framework-core-0.3.0.jar:0.3.0]
  at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:127) [nifi-framework-core-0.3.0.jar:0.3.0]
  at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:49) [nifi-framework-core-0.3.0.jar:0.3.0]
  at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:119) [nifi-framework-core-0.3.0.jar:0.3.0]
  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_79]
  at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) [na:1.7.0_79]
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_79]
  at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.7.0_79]
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_79]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_79]
  at java.lang.Thread.run(Thread.java:745) [na:1.7.0_79]
Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.CharSequence
  at org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:213) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:208) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:76) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.writeField(GenericDatumWriter.java:114) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.writeRecord(GenericDatumWriter.java:104) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:66) ~[na:na]
  at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58) ~[na:na]
  at org.apache.avro.file.DataFileWriter.append(DataFileWriter.java:290) ~[na:na]&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Apr 2026 12:35:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95827#M9162</guid>
      <dc:creator>vjain</dc:creator>
      <dc:date>2026-04-21T12:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95828#M9163</link>
      <description>&lt;P&gt;Can you please share the source table DDL?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 20:15:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95828#M9163</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-22T20:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95829#M9164</link>
      <description>&lt;P&gt;CREATE TABLE PDMS.PROTOCOL&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;  FLDNUM NUMBER NOT NULL,&lt;/P&gt;&lt;P&gt; PROTOCOL VARCHAR2(130 CHAR),&lt;/P&gt;&lt;P&gt; ON_PDMS VARCHAR2(130 CHAR),&lt;/P&gt;&lt;P&gt; TITLE VARCHAR2(550 CHAR),&lt;/P&gt;&lt;P&gt; CHAIRMAN NUMBER,&lt;/P&gt;&lt;P&gt; MANAGER NUMBER,&lt;/P&gt;&lt;P&gt;  MULTICENTER_TRIAL VARCHAR2(130 CHAR),&lt;/P&gt;&lt;P&gt;  OB_BLIND_STUDY_YN VARCHAR2(130 CHAR),&lt;/P&gt;&lt;P&gt;  CREATE_DTM DATE,&lt;/P&gt;&lt;P&gt;  CREATE_USER VARCHAR2(30 BYTE),&lt;/P&gt;&lt;P&gt;  LAST_UPDATED_DTM DATE,&lt;/P&gt;&lt;P&gt;  LAST_UPDATE_USER VARCHAR2(30 BYTE),&lt;/P&gt;&lt;P&gt;  CONSTRAINT PROTOCOL_PK PRIMARY KEY(FLDNUM) ENABLE&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2015 21:29:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95829#M9164</guid>
      <dc:creator>vjain</dc:creator>
      <dc:date>2015-10-22T21:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95830#M9165</link>
      <description>&lt;P&gt;I think the error is coming from a NUMBER with unlimited precision being treated as java.math.BigDecimal. Will ask a developer to take a loot next.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:35:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95830#M9165</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-23T21:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95831#M9166</link>
      <description>&lt;P&gt;Vedant,&lt;/P&gt;&lt;P&gt;I have submitted a patch for this issue here: &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-1056"&gt;https://issues.apache.org/jira/browse/NIFI-1056&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, I do not have a way to test against Oracle database because it requires licenses. However, I did create a unit test to return a BigDecimal for a NUMERIC type, verified that it failed, and addressed the issue so that it now works. If you have a chance, please give it a try!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Mark&lt;/P&gt;</description>
      <pubDate>Fri, 23 Oct 2015 22:50:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95831#M9166</guid>
      <dc:creator>mpayne</dc:creator>
      <dc:date>2015-10-23T22:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in ExecuteSQL processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95832#M9167</link>
      <description>&lt;P&gt;For the record, the patch has now made it into the next NiFi release.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 19:24:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-ExecuteSQL-processor/m-p/95832#M9167</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-10-26T19:24:42Z</dc:date>
    </item>
  </channel>
</rss>

