Error in tFTPGet component when running the job on server but in local this job is running fine

Four Stars

Error in tFTPGet component when running the job on server but in local this job is running fine

Hi All,

 

I am getting below error in tFTPGet component when running my job on a custom scheduler. By this error message, I am not able to understand the exact problem in my job.  Please help me to figure it out. Any help is highly appreciated

 

 

Exception in component tFTPGet_1
4:
at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:359)
at sw_processmosaicmonthlyreports.formulasimportingp1_0_1.FormulasImportingP1.tFTPGet_1Process(FormulasImportingP1.java:2446)
at sw_processmosaicmonthlyreports.formulasimportingp1_0_1.FormulasImportingP1.tFileList_1Process(FormulasImportingP1.java:2145)
at sw_processmosaicmonthlyreports.formulasimportingp1_0_1.FormulasImportingP1.tFileInputDelimited_1Process(FormulasImportingP1.java:1444)
at sw_processmosaicmonthlyreports.formulasimportingp1_0_1.FormulasImportingP1.runJobInTOS(FormulasImportingP1.java:3729)
at sw_processmosaicmonthlyreports.formulasimportingp1_0_1.FormulasImportingP1.runJob(FormulasImportingP1.java:3532)
at sw_processmosaicmonthlyreports.sw_processmosaicmonthlyreports_0_1.SW_ProcessMosaicMonthlyReports.tRunJob_4Process(SW_ProcessMosaicMonthlyReports.java:651)
at sw_processmosaicmonthlyreports.sw_processmosaicmonthlyreports_0_1.SW_ProcessMosaicMonthlyReports.runJobInTOS(SW_ProcessMosaicMonthlyReports.java:1000)
at sw_processmosaicmonthlyreports.sw_processmosaicmonthlyreports_0_1.SW_ProcessMosaicMonthlyReports.runJob(SW_ProcessMosaicMonthlyReports.java:807)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:397)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:186)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:751)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:243)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3432)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:646)
at com.jcraft.jsch.ChannelSftp.remoteAbsolutePath(ChannelSftp.java:2916)
at com.jcraft.jsch.ChannelSftp.cd(ChannelSftp.java:339)
... 41 more

 

Moderator

Re: Error in tFTPGet component when running the job on server but in local this job is running fine

Hello,

Could you please let us know on which talend build version you got this issue? What's your a custom scheduler server? Did you export your job as a standalone job(job script) and schedule it on your custom scheduler server? More information will be preferred.

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.
Four Stars

Re: Error in tFTPGet component when running the job on server but in local this job is running fine

Hi Sabrina,

 

Thanks for your reply we are using Talend open Studio for DI v6.3.1. Then using code from workspace we are building job in Jenkins. After building the job we are scheduling on (Mastros Application) a custom application.

 

 

Thanks

Kailash Yadav

Thirteen Stars

Re: Error in tFTPGet component when running the job on server but in local this job is running fine

@kailash12345,please share the configuration details of tFTPGet ?can you let me know are do using hard coded values for remote directory for other values also?

Manohar B
Four Stars

Re: Error in tFTPGet component when running the job on server but in local this job is running fine

Hi Manohar,

 

Thanks for your reply I am using context variables in the configuration of tFTPGet component  as following and loading the context variables in the job from a .properties file. As in the below screen we are using SFTP support.

Capture.PNG

Thirteen Stars

Re: Error in tFTPGet component when running the job on server but in local this job is running fine

Are you using the same context values,while running from local and remote,there might be folders either local or remote directories are not there,could you please confirm that directories are present or not?
Manohar B