<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: java.lang.NullPointerException: Cannot invoke &amp;quot;com.jcraft.jsch.ChannelSftp.getHome()&amp;quot; because &amp;quot;c_tFTPFileList_1&amp;quot; is null in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-lang-NullPointerException-Cannot-invoke-quot-com-jcraft/m-p/2541385#M149331</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error you’re seeing:&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: Cannot invoke "com.jcraft.jsch.ChannelSftp.getHome()" because "c_tFTPFileList_1" is null&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;indicates that the SFTP component (tFTPFileList) is being invoked without a valid SFTP connection object. This typically occurs when:&lt;/P&gt;&lt;P&gt;The SFTP connection was not established before the file list operation was executed.&lt;/P&gt;&lt;P&gt;The component configuration does not include valid credentials/host/port.&lt;/P&gt;&lt;P&gt;The job flow allows the tFTPFileList to execute even when the preceding connection has not succeeded.&lt;/P&gt;&lt;P&gt;Recommended steps to resolve:&lt;/P&gt;&lt;P&gt;Verify the SFTP connection details&lt;BR /&gt;Ensure the host, port, username and authentication (password or private key) are correctly configured in tFTPConnection.&lt;/P&gt;&lt;P&gt;Check component ordering and triggers&lt;BR /&gt;Use appropriate triggers (e.g., OnSubjobOk or OnComponentOk) to ensure the SFTP connection component completes successfully before tFTPFileList executes.&lt;/P&gt;&lt;P&gt;Handle null connection gracefully&lt;BR /&gt;Add error checks or conditionals so that if the connection fails, the file list component does not run.&lt;/P&gt;&lt;P&gt;Test connection separately&lt;BR /&gt;Before running the full pipeline, test the SFTP connection and file listing in a small isolated job to confirm credentials and network connectivity.&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;When a connection object is null, any dependent operations (like tFTPFileList.getHome()) will throw a NullPointerException because Talend cannot initialize the underlying JSch SFTP channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourav&lt;/P&gt;</description>
    <pubDate>Fri, 23 Jan 2026 09:28:03 GMT</pubDate>
    <dc:creator>gouravdubey5</dc:creator>
    <dc:date>2026-01-23T09:28:03Z</dc:date>
    <item>
      <title>java.lang.NullPointerException: Cannot invoke "com.jcraft.jsch.ChannelSftp.getHome()" because "c_tFTPFileList_1" is null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-lang-NullPointerException-Cannot-invoke-quot-com-jcraft/m-p/2520220#M147627</link>
      <description>&lt;P&gt;Hi Support team, Currently we are facing the issue with the pipeline as it try to extract the data from SAP to ADLS, in the meanwhile doing the cleanup in the sftp server with the old files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yulongguan_0-1749113562690.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181063iEE8D5BAED34A7139/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yulongguan_0-1749113562690.png" alt="yulongguan_0-1749113562690.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here are the 2 component configuration that caused the job failure.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yulongguan_1-1749113682705.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181064i2F6C5F822BC62A67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yulongguan_1-1749113682705.png" alt="yulongguan_1-1749113682705.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yulongguan_2-1749113711245.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181065i15DCFC3B970F8C61/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yulongguan_2-1749113711245.png" alt="yulongguan_2-1749113711245.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Error log&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;tRunJob_1 - Child job returns 1. It doesn't terminate normally.
NOTE: Picked up JDK_JAVA_OPTIONS: --add-reads=java.xml=java.logging --add-exports=java.base/org.apache.karaf.specs.locator=java.xml,ALL-UNNAMED --patch-module java.base=F:/Install/talend/lib/endorsed/org.apache.karaf.specs.locator-4.4.6.jar --patch-module java.xml=F:/Install/talend/lib/endorsed/org.apache.karaf.specs.java.xml-4.4.6.jar --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.naming/javax.naming.spi=ALL-UNNAMED --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-exports=java.base/sun.net.www.content.text=ALL-UNNAMED --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED --add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED
Picked up JAVA_TOOL_OPTIONS: -Dlog4j2.formatMsgNoLookups=true
Exception in component tSAPTableInput_1 (acquire_sapEcc_singletable_Incremental)
java.lang.NullPointerException: Cannot invoke "Object.getClass()" because "val" is null
    at java.base/java.math.BigDecimal.toStrictBigInteger(BigDecimal.java:1069)
    at java.base/java.math.BigDecimal.&amp;lt;init&amp;gt;(BigDecimal.java:1083)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tSAPTableInput_1Process(acquire_sapEcc_singletable_Incremental.java:27454)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tAzureAdlsGen2Delete_1Process(acquire_sapEcc_singletable_Incremental.java:26020)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tJava_3Process(acquire_sapEcc_singletable_Incremental.java:25632)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tJava_1Process(acquire_sapEcc_singletable_Incremental.java:25316)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tSetGlobalVar_2Process(acquire_sapEcc_singletable_Incremental.java:25051)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.runJobInTOS(acquire_sapEcc_singletable_Incremental.java:33863)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.main(acquire_sapEcc_singletable_Incremental.java:32757)
Exception in component tFTPFileList_1 (acquire_sapEcc_singletable_Incremental)
java.lang.NullPointerException: Cannot invoke "com.jcraft.jsch.ChannelSftp.getHome()" because "c_tFTPFileList_1" is null
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tFTPFileList_1Process(acquire_sapEcc_singletable_Incremental.java:29039)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tFTPConnection_2Process(acquire_sapEcc_singletable_Incremental.java:32344)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tSAPTableInput_1_onSubJobError(acquire_sapEcc_singletable_Incremental.java:1734)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.tSAPTableInput_1_error(acquire_sapEcc_singletable_Incremental.java:1474)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:569)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental$TalendException.printStackTrace(acquire_sapEcc_singletable_Incremental.java:1096)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental$TalendException.printStackTrace(acquire_sapEcc_singletable_Incremental.java:1085)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental$TalendException.printStackTrace(acquire_sapEcc_singletable_Incremental.java:1085)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental$TalendException.printStackTrace(acquire_sapEcc_singletable_Incremental.java:1085)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental$TalendException.printStackTrace(acquire_sapEcc_singletable_Incremental.java:1085)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.runJobInTOS(acquire_sapEcc_singletable_Incremental.java:33868)
    at dacoe_etl.acquire_sapecc_singletable_incremental_2_0.acquire_sapEcc_singletable_Incremental.main(acquire_sapEcc_singletable_Incremental.java:32757)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 08:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-lang-NullPointerException-Cannot-invoke-quot-com-jcraft/m-p/2520220#M147627</guid>
      <dc:creator>yulongguan</dc:creator>
      <dc:date>2025-06-05T08:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: java.lang.NullPointerException: Cannot invoke "com.jcraft.jsch.ChannelSftp.getHome()" because "c_tFTPFileList_1" is null</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-lang-NullPointerException-Cannot-invoke-quot-com-jcraft/m-p/2541385#M149331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error you’re seeing:&lt;/P&gt;&lt;P&gt;java.lang.NullPointerException: Cannot invoke "com.jcraft.jsch.ChannelSftp.getHome()" because "c_tFTPFileList_1" is null&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;indicates that the SFTP component (tFTPFileList) is being invoked without a valid SFTP connection object. This typically occurs when:&lt;/P&gt;&lt;P&gt;The SFTP connection was not established before the file list operation was executed.&lt;/P&gt;&lt;P&gt;The component configuration does not include valid credentials/host/port.&lt;/P&gt;&lt;P&gt;The job flow allows the tFTPFileList to execute even when the preceding connection has not succeeded.&lt;/P&gt;&lt;P&gt;Recommended steps to resolve:&lt;/P&gt;&lt;P&gt;Verify the SFTP connection details&lt;BR /&gt;Ensure the host, port, username and authentication (password or private key) are correctly configured in tFTPConnection.&lt;/P&gt;&lt;P&gt;Check component ordering and triggers&lt;BR /&gt;Use appropriate triggers (e.g., OnSubjobOk or OnComponentOk) to ensure the SFTP connection component completes successfully before tFTPFileList executes.&lt;/P&gt;&lt;P&gt;Handle null connection gracefully&lt;BR /&gt;Add error checks or conditionals so that if the connection fails, the file list component does not run.&lt;/P&gt;&lt;P&gt;Test connection separately&lt;BR /&gt;Before running the full pipeline, test the SFTP connection and file listing in a small isolated job to confirm credentials and network connectivity.&lt;/P&gt;&lt;P&gt;Note:&lt;BR /&gt;When a connection object is null, any dependent operations (like tFTPFileList.getHome()) will throw a NullPointerException because Talend cannot initialize the underlying JSch SFTP channel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourav&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 09:28:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-lang-NullPointerException-Cannot-invoke-quot-com-jcraft/m-p/2541385#M149331</guid>
      <dc:creator>gouravdubey5</dc:creator>
      <dc:date>2026-01-23T09:28:03Z</dc:date>
    </item>
  </channel>
</rss>

