Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I have a Talend job which uses tJDBCConnection that works fine in Studio. When I build it and run the windows executable from command line, it fails with the below error. Seems to be some compatibility issue with java. Could someone guide how to troubleshoot the issue. Appreciate your help.
Error:
Establishing JDBC connection to the source database....
[FATAL]: imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict - tJDBCConnection_1 null
java.lang.NullPointerException
at oracle.net.jndi.JndiAttrs.getAttrs(JndiAttrs.java:207)
at oracle.net.resolver.AddrResolution.<init>(AddrResolution.java:205)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:223)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1140)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:340)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:553)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:254)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:528)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at routines.system.SharedDBConnectionLog4j.getConnection(SharedDBConnectionLog4j.java:88)
at routines.system.SharedDBConnectionLog4j.getDBConnection(SharedDBConnectionLog4j.java:166)
at imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict.tJDBCConnection_1Process(tRetrieveDataDict.java:4132)
at imas_datalake.tretrievedatadict_0_1.tRetrieveDataDict.tFileInputDelimited_1Process(tRetrieveDataDict.java:395
0)
Some related settings:
Talend Job Settings and java version
Hello,
Please make sure the export is working well.
Before building your job, could you please go to Window > Preferences, select Talend > Import/Export, and then select the "Add classpath jar in exported jobs" check box to wrap the Jars in a classpath.jar file added to the built Job?
Best regards
Sabrina