<?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 Read Avro record for the QueryRecord processor in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Read-Avro-record-for-the-QueryRecord-processor/m-p/198000#M160051</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="83389-flow.png" style="width: 880px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17795iBD3419FD407B169B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="83389-flow.png" alt="83389-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I'm trying to query an Avro record with the QueryRecord processor. The Avro gets created with a ExecuteSQL processor. The output of the ExecuteSQL seems fine and I can convert it in e.g. JSON without any problems. But when I try to query it I get a NullPointerException. Anyone able to help me with the problem?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QueryRecord&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83384-queryrecord.png" target="_blank"&gt;queryrecord.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroReader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83383-avroreader.png" target="_blank"&gt;avroreader.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroRecordSetWriter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83385-avrorecordsetwriter.png" target="_blank"&gt;avrorecordsetwriter.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exception in the QueryRecord processor&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;2018-07-24 14:27:37,277 ERROR [Timer-Driven Process Thread-4] o.a.nifi.processors.standard.QueryRecord QueryRecord[id=ac799474-0164-1000-ffff-ffffc83bf6e1] Unable to query StandardFlowFileRecord[uuid=78d37332-b122-4433-b16d-099757d8d839,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1532435241579-3, container=default, section=3], offset=0, length=108732158],offset=0,name=6117269883610207,size=108732158] due to java.lang.NullPointerException: {}
java.lang.NullPointerException: null
        at Baz$5$1.current(Unknown Source)
        at org.apache.calcite.linq4j.Linq4j$EnumeratorIterator.next(Linq4j.java:672)
        at org.apache.calcite.avatica.util.IteratorCursor.next(IteratorCursor.java:46)
        at org.apache.calcite.avatica.AvaticaResultSet.next(AvaticaResultSet.java:227)
        at org.apache.nifi.serialization.record.ResultSetRecordSet.&amp;lt;init&amp;gt;(ResultSetRecordSet.java:51)
        at org.apache.nifi.processors.standard.QueryRecord$1.process(QueryRecord.java:313)
        at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2571)
        at org.apache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.java:306)
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1124)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 06:12:22 GMT</pubDate>
    <dc:creator>markus_wilhelm</dc:creator>
    <dc:date>2019-08-18T06:12:22Z</dc:date>
    <item>
      <title>Read Avro record for the QueryRecord processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Avro-record-for-the-QueryRecord-processor/m-p/198000#M160051</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="83389-flow.png" style="width: 880px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17795iBD3419FD407B169B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="83389-flow.png" alt="83389-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I'm trying to query an Avro record with the QueryRecord processor. The Avro gets created with a ExecuteSQL processor. The output of the ExecuteSQL seems fine and I can convert it in e.g. JSON without any problems. But when I try to query it I get a NullPointerException. Anyone able to help me with the problem?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QueryRecord&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83384-queryrecord.png" target="_blank"&gt;queryrecord.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroReader&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83383-avroreader.png" target="_blank"&gt;avroreader.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AvroRecordSetWriter&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/83385-avrorecordsetwriter.png" target="_blank"&gt;avrorecordsetwriter.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exception in the QueryRecord processor&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;2018-07-24 14:27:37,277 ERROR [Timer-Driven Process Thread-4] o.a.nifi.processors.standard.QueryRecord QueryRecord[id=ac799474-0164-1000-ffff-ffffc83bf6e1] Unable to query StandardFlowFileRecord[uuid=78d37332-b122-4433-b16d-099757d8d839,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1532435241579-3, container=default, section=3], offset=0, length=108732158],offset=0,name=6117269883610207,size=108732158] due to java.lang.NullPointerException: {}
java.lang.NullPointerException: null
        at Baz$5$1.current(Unknown Source)
        at org.apache.calcite.linq4j.Linq4j$EnumeratorIterator.next(Linq4j.java:672)
        at org.apache.calcite.avatica.util.IteratorCursor.next(IteratorCursor.java:46)
        at org.apache.calcite.avatica.AvaticaResultSet.next(AvaticaResultSet.java:227)
        at org.apache.nifi.serialization.record.ResultSetRecordSet.&amp;lt;init&amp;gt;(ResultSetRecordSet.java:51)
        at org.apache.nifi.processors.standard.QueryRecord$1.process(QueryRecord.java:313)
        at org.apache.nifi.controller.repository.StandardProcessSession.write(StandardProcessSession.java:2571)
        at org.apache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.java:306)
        at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1124)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
        at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:12:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Avro-record-for-the-QueryRecord-processor/m-p/198000#M160051</guid>
      <dc:creator>markus_wilhelm</dc:creator>
      <dc:date>2019-08-18T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read Avro record for the QueryRecord processor</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Read-Avro-record-for-the-QueryRecord-processor/m-p/198001#M160052</link>
      <description>&lt;P&gt;Seems like a error in the SQL statement threw the NullPointerException. Not really the place I would have looked with this kind of error.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 14:34:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Read-Avro-record-for-the-QueryRecord-processor/m-p/198001#M160052</guid>
      <dc:creator>markus_wilhelm</dc:creator>
      <dc:date>2018-07-26T14:34:46Z</dc:date>
    </item>
  </channel>
</rss>

