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

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads