You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/03/12 20:37:30 UTC

[GitHub] [nifi] bbende commented on issue #3353: NIFI-6105: Fix handling of arrays of records/maps in record utilities

bbende commented on issue #3353: NIFI-6105: Fix handling of arrays of records/maps in record utilities
URL: https://github.com/apache/nifi/pull/3353#issuecomment-472171161
 
 
   @mattyb149 @ijokarumawak I ran this branch against the schemas and data in the stackoverflow questions and got the below error..
   ```
   
   org.apache.nifi.serialization.record.util.IllegalTypeConversionException: Cannot convert value [{uuid=MFMS1-MC5, componentId=path1, eventType=Samples, type=PathFeedrate, dataItemId=pf, timestamp=2019-03-01T21:48:27.940558Z, sequence=68104, value=425.5333, name=Fact, subType=ACTUAL, sampleRate=null, statistic=null, duration=null, sampleCount=null, compositionId=null, resetTriggered=null}] of type class java.util.LinkedHashMap for field a to any of the following available Sub-Types for a Choice: [RECORD, RECORD]
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.convertType(DataTypeUtils.java:185)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.convertType(DataTypeUtils.java:101)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.convertType(DataTypeUtils.java:97)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.convertType(DataTypeUtils.java:165)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.convertType(DataTypeUtils.java:101)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.toRecord(DataTypeUtils.java:388)
   	at org.apache.nifi.serialization.record.util.DataTypeUtils.toRecord(DataTypeUtils.java:329)
   	at org.apache.nifi.processors.jolt.record.JoltTransformRecord.transform(JoltTransformRecord.java:390)
   	at org.apache.nifi.processors.jolt.record.JoltTransformRecord.onTrigger(JoltTransformRecord.java:333)
   	at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
   	at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1162)
   	at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:205)
   	at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
   	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:1149)
   	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   	at java.lang.Thread.run(Thread.java:748)
   ```
   Seems like something is still not lining up.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services