Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] failed to generate

Hi,
I'm getting a error when generating with TOS 3.0.0 in a JAVA project The message is
Execution failed : Failed to generate code.
.
How to I fix/debug this?
Thanks in advanced,
Doug

Labels (2)
21 Replies
Anonymous
Not applicable
Author

Hi,
I've the same problem.
I made a working job few days ago, and today it doesn't work without changing anything.
I don't know why...
When I display the Code tab, file is blank. No Java source code is generated.
If I click on Run, I've the following error message:
Execution failed : Failed to generate code.

Does anyone know how to repare this error ?
Thx in advance.
FYI:
TOS 3.0.1.r19980
Java project
Anonymous
Not applicable
Author

Ok, I found how to solve my problem.
I you've got the same problem, try this method:
Just after having the error:
- Open the log file ....//workspace/.metadata/.log in notepad.
- Go to the end of the file.
- 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
- Get the last error in stack trace and find the component raising the error. In my case, the component is TFilterRowMainJava.
- Deactivate all components of the family which raises the error. tFilterRow_1 in my case.
- When I click on "Code" tab, Java source code is displayed.
- Correct errors if exists.
- If you click on run, the job is running...
I hope this help you.
🙂
Anonymous
Not applicable
Author

Hi,
I had the same problem and this topic helped me a lot.
Thanks a lot
RJ
Anonymous
Not applicable
Author

hi,
good tips Milou, it could help me
++
Anonymous
Not applicable
Author

Hi
I get the same problem, but when I try to desactivate my "tFilterRow"s, I get SWTEvent error in the ".log" file and the Design View does not refresh content any more.
Any way to recover the job ?
-- Talend 3.1.2 r25815 --
Anonymous
Not applicable
Author

Hello
the Design View does not refresh content any more.

After you desactive the error component, like tFilterRow, you should press ctrl+s to save the job, then open the code tab to see if it generate the Java code again.
Best regards

shong
Anonymous
Not applicable
Author

shong,
I cannot desactivate the component, because selecting the option in the context menu generates SWTEvent error.
However I finally managed to recover the job, but I'm not sure what triggered it.
I think opening the component props, modifying some, and save the job may have done the trick.
Anyway job's code gets generated again.
HTH
_AnonymousUser
Specialist III
Specialist III

i am getting the same error...in my case its due to tfiledelimited....i deactivated the component and saw the code...but hw am i supposed to know hw to resolve the errors...pls help m new to talend...
Anonymous
Not applicable
Author

Hello
i am getting the same error...in my case its due to tfiledelimited....i deactivated the component and saw the code...

You are doing some wrong settings on tfiledelimited, need to check and correct it. If you can't find the errors, please upload some screenshots of your job.
Best regards

shong