null poniter exception while transferring data to MONGO DB from a file

One Star

null poniter exception while transferring data to MONGO DB from a file

 

I am getting following error when trying to load a simple text file to mongoDB using talend

 

Exception in component tMongoDBOutput_1 (CSVtomongo)
java.lang.NullPointerException
at local_project.csvtomongo_0_1.CSVtomongo.tFileInputDelimited_1Process(CSVtomongo.java:597)
at local_project.csvtomongo_0_1.CSVtomongo.runJobInTOS(CSVtomongo.java:1160)
at local_project.csvtomongo_0_1.CSVtomongo.main(CSVtomongo.java:1009)
[statistics] disconnected

 

Following is the error log in C:\Talend\TOS_DI-20170623_1246-V6.4.1\workspace\.metadata.

 

 

 

!ENTRY org.talend.platform.logging 1 0 2018-02-13 11:53:34.678
!MESSAGE 2018-02-13 11:53:34,676 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.local_project:code.Master:6.4.1 @ C:\Talend\TOS_DI-20170623_1246-V6.4.1\workspace\.Java\pom.xml.


!ENTRY org.talend.platform.logging 1 0 2018-02-13 11:53:36.632
!MESSAGE 2018-02-13 11:53:36,629 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.local_project:code.Master:6.4.1 @ C:\Talend\TOS_DI-20170623_1246-V6.4.1\workspace\.Java\pom.xml.


!ENTRY org.talend.platform.logging 1 0 2018-02-13 11:53:37.574
!MESSAGE 2018-02-13 11:53:37,573 INFO org.talend.designer.core.runprocess.Processor - Command line: C:/Program Files/Java/jre1.8.0_161/bin/java.exe -Xms256M -Xmx1024M -Dfile.encoding=UTF-8 -cp C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/target/classes;.;C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/lib/dom4j-1.6.1.jar;C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/lib/log4j-1.2.16.jar;C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/lib/mongo-1.3.jar;C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/lib/talend_file_enhanced_20070724.jar;C:/Talend/TOS_DI-20170623_1246-V6.4.1/workspace/.Java/lib/talendcsv.jar; local_project.csvtomongo_0_1.CSVtomongo --context=Default --stat_port=3725 %*


!ENTRY org.talend.platform.logging 1 0 2018-02-13 11:53:38.223
!MESSAGE 2018-02-13 11:53:38,221 INFO org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory - Using NULL lifecycle mapping for MavenProject: org.talend.master.local_project:code.Master:6.4.1 @ C:\Talend\TOS_DI-20170623_1246-V6.4.1\workspace\.Java\pom.xml.

 

Forteen Stars

Re: null poniter exception while transferring data to MONGO DB from a file

C:\Talend\TOS_DI-20170623_1246-V6.4.1

do You really use Open Studio for Data Integrator?

as I remember it not support MongoDB component - https://help.talend.com/reader/QgrwjIQJDI2TJ1pa2caRQA/tQ1c2SB98dN7wMhVC90XBg

in this case do You use component from community exchange?

 

if both - yes, first try to switch DI for Open Studio for Big Data

-----------
One Star

Re: null poniter exception while transferring data to MONGO DB from a file

Thank you very much.

it is working in bigdata open studio

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Modern Data Engineering in the Cloud

Learn about modern data engineering in the Cloud

Watch Now

How to deploy Talend Jobs as Docker images to Amazon, Azure and Google Cloud reg...

Learn how to deploy Talend Jobs as Docker images to Amazon, Azure and Google Cloud registries

Blog

Talend API Services Publish to Talend Cloud

Learn how to publish your API Services to Talend Cloud

Watch Now