Issue -
we use commandline utility from talend to export jobs from SVN into a .jar /.sh / .bat execuatables. This process is running for last 5 months successfully, but all of a sudden our exportJob process started failing with following error.
Exception in thread "Code generation background thread" java.lang.Error: Unresol
ved compilation problems:
The import org.talend.designer.codegen.config cannot be resolved
The import org.talend.designer.codegen.i18n cannot be resolved
CodeGeneratorArgument cannot be resolved to a type
CodeGeneratorArgument cannot be resolved to a type
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
at org.talend.designer.codegen.translators.common.HeaderJava.<init>(Head
erJava.java:8)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.eclipse.emf.codegen.jet.JETEmitter.setMethod(JETEmitter.java:291)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.in
itializeEmittersPool(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.ac
cess$7(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$Jo
bRunnable.doRun(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$Jo
bRunnable.run(Unknown Source)
!ENTRY org.eclipse.core.jobs 4 2 2011-12-29 08:54:54.152
!MESSAGE An internal error occurred during: "Generation Engine Initialization in
progress...".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:71)
FAILED at Thu Dec 29 08:54:54 EST 2011
exception : org.talend.commandline.client.command.CommandStatusWrapException: ja
va.lang.Exception: java.lang.NullPointerException
Solution -
Redeploy (re-extract) commandline utility into new folder from your talend software zip and use this new commandline location to run export job.Here redeploy means that in our linux environment which hosts the commandline utility, we simply extracted the commandline folder (which includes commandline-workspace) again from our talend software zip.
we use commandline utility from talend to export jobs from SVN into a .jar /.sh / .bat execuatables. This process is running for last 5 months successfully, but all of a sudden our exportJob process started failing with following error.
Exception in thread "Code generation background thread" java.lang.Error: Unresol
ved compilation problems:
The import org.talend.designer.codegen.config cannot be resolved
The import org.talend.designer.codegen.i18n cannot be resolved
CodeGeneratorArgument cannot be resolved to a type
CodeGeneratorArgument cannot be resolved to a type
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
Messages cannot be resolved
at org.talend.designer.codegen.translators.common.HeaderJava.<init>(Head
erJava.java:8)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at org.eclipse.emf.codegen.jet.JETEmitter.setMethod(JETEmitter.java:291)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.in
itializeEmittersPool(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory.ac
cess$7(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$Jo
bRunnable.doRun(Unknown Source)
at org.talend.designer.codegen.model.CodeGeneratorEmittersPoolFactory$Jo
bRunnable.run(Unknown Source)
!ENTRY org.eclipse.core.jobs 4 2 2011-12-29 08:54:54.152
!MESSAGE An internal error occurred during: "Generation Engine Initialization in
progress...".
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:71)
FAILED at Thu Dec 29 08:54:54 EST 2011
exception : org.talend.commandline.client.command.CommandStatusWrapException: ja
va.lang.Exception: java.lang.NullPointerException
Solution -
Redeploy (re-extract) commandline utility into new folder from your talend software zip and use this new commandline location to run export job.Here redeploy means that in our linux environment which hosts the commandline utility, we simply extracted the commandline folder (which includes commandline-workspace) again from our talend software zip.
Were you using Talend enterprise or Talend open studio?
ReplyDeletetalend enterprise. We also later discovered that instead of extracting entire commandline folder, if we extracted only workspace, it worked fine.
ReplyDeleteHi Arpit,
ReplyDeleteI am new to this Talend world. Could you please send me either a script or syntax to generate/export jobs from SVN repository to a .jar file by using the commandline utility.
Thanks
Reddy
see this post http://garpitmzn.blogspot.in/2011/11/generate-job-exports-from-talend.html
ReplyDelete