Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to read JSON data from and file using tExtractJSONFields and then load into MongoDB using tmongodboutput
I am getting below error while doing that
Execution failed : org.talend.commons.exception.PersistenceException: org.talend.designer.runprocess.ProcessorException: Job compile errors
At least job "Job_Name" has a compile errors, please fix and export again.
Error Line: 8697
Detail Message: net.sf.json cannot be resolved to a type
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
Hello,
I replaced .m2 folder with my colleagues .m2 folder (he doesn't face this issue) and it is working fine now!
Hi @RANJITH MEDA
What versions of Talend Studio and Java are you using?
Hello @Anselmo Peixoto
I am using Java 8 and Talend 7.3.1
Hi @RANJITH MEDA
Although Java 8 is considered supported by Talend 7.3.1 according to the documentation, I suggest you try using Java 11 that is the recommended version.
Hello,
From your above error message, could you please check if the JAVA_HOME path is set properly and JAR used by your component is supported or compatible.
In Talend 7.3.1, the default version of this jar is json-lib-2.4.5-talend Jar, please check if your .m2 path contains the correct jar version
(Note: Make sure to take a backup before deleting these folders), restart Studio and then download the default json-lib-2.4.5-talend.jar through tWriteJSON component in Studio.
Feel free to let us know if it is OK with you.
Best regards
Sabrina
Hello @Xiaodi Shi - I checked JAVA_HOME and it looks fine.
I see 2 folders in \configuration\.m2\repository\net\sf\json-lib\json-lib 2.4.6-talend and 2.4.5-talend. Deleted both of them and installed again. Still getting same error.
Hello,
Could you please try to use tLibraryLoad component to force the library in the job?
Best regards
Sabrina
Hello,
I replaced .m2 folder with my colleagues .m2 folder (he doesn't face this issue) and it is working fine now!
Hello,
Great it works and feel free to let us know if there is any further help we can give.
Best regards
Sabrina