One Star

sFTP job failing to deploy but works well when run thru Studio

sFTP job failing to deploy but works well when run thru Studio on remote server.
The JVM on the TAC server is the same as we have in Studio. Yet getting this error!
java.lang.RuntimeException: org.talend.designer.runprocess.ProcessorException: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "j_pt_sftp_get" has a compile errors, please fix and export again.
Error Line: 845
Detail Message: The method chdir(String) from the type SFTPGetter_tFTPGet_1 refers to the missing type SftpException
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:197)
at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:31)
at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161)
at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.talend.designer.runprocess.ProcessorException: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "j_pt_sftp_get" has a compile errors, please fix and export again.
Error Line: 845
Detail Message: The method chdir(String) from the type SFTPGetter_tFTPGet_1 refers to the missing type SftpException
There may be some other errors caused by JVM compatibility. Make sure your JVM setup is similar to the studio.
at org.talend.commandline.util.JobHandler.export(JobHandler.java:234)
at org.talend.commandline.command.execute.BuildJobExecuteCommand.execute(BuildJobExecuteCommand.java:143)
at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:195)
... 7 more
Caused by: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "j_pt_sftp_get" has a compile errors, please fix and export again.
Error Line: 845
Detail Message: The method chdir(String) from the type SFTPGetter_tFTPGet_1 refers to the missing type SftpException
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:307)
at org.talend.commandline.util.JobHandler.export(JobHandler.java:226)
... 9 more
12 REPLIES
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

Hi,
Could you please indicate what's the build version you are using?
Are your studio and commandline on the different machines? Have you already reported a ticket on talend support portal?
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.
One Star

Re: sFTP job failing to deploy but works well when run thru Studio

Its 6.2.1 licensed version.
Studio and command line run on different m/c.
I have not created a ticket with support yet. 
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

Hi,
For your subscription version, could you please report a ticket on talend support portal so that we can give you a remote assistance through support cycle with priority?
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.
One Star

Re: sFTP job failing to deploy but works well when run thru Studio

Hi Sabrina, does anyone ever respond your Talend Support site? Its the most sluggish support on the planet!
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

Hi,
There is no any response on your support ticket? Could you please give us your CASE ID and we will check it with our colleagues from support team?
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.
One Star

Re: sFTP job failing to deploy but works well when run thru Studio

I got a response finally. The issue is resolved. Thanks.
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

Hi,
Thanks for your feedback. Could you please share your solution with us?
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.
One Star

Re: sFTP job failing to deploy but works well when run thru Studio

Hi Sachin,
We are also having same issue, Could you please share the solution .
    
One Star

Re: sFTP job failing to deploy but works well when run thru Studio

I got a response finally. The issue is resolved. Thanks.

Hi Sachin,
We are also getting the similar issue. Please share the steps to resolve this issue.
Error:
java.lang.RuntimeException: org.talend.designer.runprocess.ProcessorException: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "Standard" has a compile errors, please fix and export again.
Error Line: 1522
Detail Message: com.jcraft 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.
  at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:197)
  at org.talend.commandline.client.command.extension.AbstractExtensionCommandSwitch.doSwitch(AbstractExtensionCommandSwitch.java:31)
  at org.talend.commandline.command.CommandProcessorSwitch.caseExtensionCommand(CommandProcessorSwitch.java:161)
  at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:70)
  at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
  at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
  at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine.java:139)
  at java.lang.Thread.run(Thread.java:745)
Caused by: org.talend.designer.runprocess.ProcessorException: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "Standard" has a compile errors, please fix and export again.
Error Line: 1522
Detail Message: com.jcraft 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.
  at org.talend.commandline.util.JobHandler.export(JobHandler.java:234)
  at org.talend.commandline.command.execute.BuildJobExecuteCommand.execute(BuildJobExecuteCommand.java:143)
  at org.talend.commandline.command.ExtensionCommandSwitch.caseExtensionServerCommand(ExtensionCommandSwitch.java:195)
  ... 7 more
Caused by: org.talend.designer.runprocess.ProcessorException: Job compile errors 
At least job "Standard" has a compile errors, please fix and export again.
Error Line: 1522
Detail Message: com.jcraft 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.
  at org.talend.designer.runprocess.JobErrorsChecker.checkLastGenerationHasCompilationError(JobErrorsChecker.java:307)
  at org.talend.commandline.util.JobHandler.export(JobHandler.java:226)
  ... 9 more


Regards,
Rahul
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

 Hi Rahul,
Are you using talend 6.2.1 licensed version and studio and command line run on different machine?
Starting from version 6.0, Talend Studio integrates with Maven. The way copying your libraries from studio to the commandline folder manully may cause some potential issue.(There are some rules for naming  external libraries in maven). 
You'd better do it by auto.
Could you please follow up these steps to sync up these  external libraries with commandline?
1: Open a remote project from studio (make sure that your SVN/ Nexus is running well at the same time)
2: Install your required external libraries by using Module view(Window-->Show View-->Talend-->Modules)
In this way, SVN/ Nexus will sync up your required external libraries automatically and then commandline will get them from .m2 repository to deploy your job.
Please take a look at my screenshots and let us know if it works.
 
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: sFTP job failing to deploy but works well when run thru Studio

Hi, 
I get the same error even after following the steps to sync the modules from the local studio to the one on the etl server.  What else do i need to do .
Please Help!. Here is the log from using  JASON Component. This is just for testing the Component. It run fine on local studio but fails on ETL Server
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - TalendJob: 'tWriteJSONField_Aggregation_not_consistent' - Start.
connecting to socket on port 10694
connected
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_1_Out - Start to work.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tLogRow_3 - Start to work.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tLogRow_2 - Start to work.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_1_In - Start to work.
disconnected
Exception in thread "Thread-1" java.lang.NoClassDefFoundError: nu/xom/Element
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent.tWriteJSONField_1_InProcess(tWriteJSONField_Aggregation_not_consistent.java:2795)
at hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent$1ThreadXMLField_tWriteJSONField_1_Out.run(tWriteJSONField_Aggregation_not_consistent.java:650)
Caused by: java.lang.ClassNotFoundException: nu.xom.Element
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 14 more
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_1_Out - Done.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_2_Out - Start to work.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tLogRow_1 - Start to work.
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_2_In - Start to work.
disconnected
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - tWriteJSONField_2_Out - Done.
disconnected
: hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent - TalendJob: 'tWriteJSONField_Aggregation_not_consistent' - Done.
Exception in thread "Thread-2" java.lang.NoClassDefFoundError: nu/xom/Element
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent.tWriteJSONField_2_InProcess(tWriteJSONField_Aggregation_not_consistent.java:3751)
at hl7.twritejsonfield_aggregation_not_consistent_0_1.tWriteJSONField_Aggregation_not_consistent$1ThreadXMLField_tWriteJSONField_2_Out.run(tWriteJSONField_Aggregation_not_consistent.java:1432)
Caused by: java.lang.ClassNotFoundException: nu.xom.Element
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Moderator

Re: sFTP job failing to deploy but works well when run thru Studio

Hi,
We have replied to your another topic:https://www.talendforge.org/forum/viewtopic.php?id=55344. Could you please take a look at it?
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.