[ https://issues.apache.org/jira/browse/NIFI-6554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Thomsen resolved NIFI-6554. -------------------------------- Resolution: Fixed Assignee: Mike Thomsen Fix Version/s: 1.10.0 > PutMongo processor throws exception when $oid supplied as _id > ------------------------------------------------------------- > > Key: NIFI-6554 > URL: https://issues.apache.org/jira/browse/NIFI-6554 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 1.9.2 > Reporter: Andrei Kavalionak > Assignee: Mike Thomsen > Priority: Major > Fix For: 1.10.0 > > Time Spent: 0.5h > Remaining Estimate: 0h > > The PutMongo processor throws an exception when $oid is supplied > {code:java} > {"_id": {"$oid": "5cd1a7376264b959a71588c1"}}{code} > ``` > java.lang.ClassCastException: org.bson.types.ObjectId cannot be cast to > java.lang.String > at > org.apache.nifi.processors.mongodb.PutMongo.parseUpdateKey(PutMongo.java:258) > at org.apache.nifi.processors.mongodb.PutMongo.onTrigger(PutMongo.java:222) > 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:209) > at > org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117) > at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110) > 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)``` -- This message was sent by Atlassian JIRA (v7.6.14#76016)