Failed to generate error in Talend Open Studio

Here is on of the solution on failed to generate error.

Just after having the error:

  1. Open the log file …./[Talend INSTALL Folder]/workspace/.metadata/.log in notepad.
  2. – Go to the end of the file.
  3. – You will have a stack trace like that:

!STACK 0

org.eclipse.emf.codegen.jet.JETException: InvocationTargetException
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:475)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
[…]
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[…]
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:467)
… 53 more
Caused by: java.lang.NullPointerException
at org.talend.designer.codegen.translators.processing.TFilterRowMainJava.generate(TFilterRowMainJava.java:134)
… 58 more

  1. – Get the last error in stack trace and find the component raising the error. In my case, the component is TFilterRowMainJava.
  2. – Deactivate all components of the family which raises the error. tFilterRow_1 in my case.
  3. – When I click on “Code” tab, Java source code is displayed.
  4. – Correct errors if exists.
  5. – If you click on run, the job is running…

About Umesh

I am Software consultant with approx 7 years of experience mainly in Business Intelligence and data warehousing assignments using Talend. Writing is not my passion but i am doing it to help others. if you have any special case where you want me to demonstrate then please post me.

Leave a Reply

Your email address will not be published. Required fields are marked *