Five Stars

The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

Getting the above error. Trying to connect Mongo DB using Talend DB, Just giving my connection details and running the job, getting the below error

 

org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "JobDemo" has a compile errors, please fix and export again.
Error Line: 1
Detail Message: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:328)
at org.talend.designer.runprocess.DefaultRunProcessService.checkLastGenerationHasCompilationError(DefaultRunProcessService.java:424)
at org.talend.designer.runprocess.RunProcessService.checkLastGenerationHasCompilationError(RunProcessService.java:309)

1 ACCEPTED SOLUTION

Accepted Solutions
Moderator

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

Hello,

Is your DB connection Ok with you? Could you please try to centralize MongoDB metadata  in the Metadata folder in the Repository tree view to see if it works?

Please refer to this online user guide about:

TalendHelpCenter:Centralizing MongoDB metadata

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
5 REPLIES
Moderator

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

Hello,

Is your DB connection Ok with you? Could you please try to centralize MongoDB metadata  in the Metadata folder in the Repository tree view to see if it works?

Please refer to this online user guide about:

TalendHelpCenter:Centralizing MongoDB metadata

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Twelve Stars

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

can you check that required Mongo jars are installed in Talend?
Manohar B
Moderator

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

Hello,

Is there any update for your issue?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Five Stars

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

Hi Sabrina, 

 

The issue was with jar files, i tried to install the jars seperately. and the connection was working fine Smiley Happy Sorry for the delayed response

Twelve Stars

Re: The type com.mongodb.client.MongoDriverInformation cannot be resolved. It is indirectly referenced from required .class files,Getting the Error while Connecting MONGO DB

did it help my answer,please accespt solution

Manohar B