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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Failed to generate code

Hi, when i run my project, i receive this exception:
Execution failed : Failed to generate code.

can anyone help me? that's mean?
I think that the bug is on tMap_5, because it appear when i create it and i link it with others components.
Thanks
Labels (2)
1 Solution

Accepted Solutions
_AnonymousUser
Specialist III
Specialist III

Finally my job is working!
I've just deleted a tUnite component, re-created and it works.
Thanks!

View solution in original post

8 Replies
Anonymous
Not applicable
Author

Hello
See solutions on 4560.
Best regards
Shong
Anonymous
Not applicable
Author

Hi, i see the post and i dont found the solution, because my exception is not at any component,
....
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor144.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.emf.codegen.jet.JETEmitter.generate(JETEmitter.java:467)
... 46 more
Caused by: java.lang.NullPointerException
at org.talend.designer.codegen.translators.common.HeaderJava.generate(HeaderJava.java:529)
... 50 more
I dont know HeaderJava.
can i help me?
thanks.
Anonymous
Not applicable
Author

Hello
Which version of TOS do you use?
We can't see what's wrong only from the message, Can you export your job and send it to me via email?
Best regards
Shong
_AnonymousUser
Specialist III
Specialist III

Hello,
I'm having the same problem, suddenly when i'm trying to execute my job i'm getting :
Execution failed : Failed to generate code.

and when i'm going to the log i have :
java.lang.NullPointerException
at org.talend.designer.codegen.translators.common.HeaderJava.generate(HeaderJava.java:529)

TOS Version: 4.0.1
thanks
Anonymous
Not applicable
Author

have you tried good ol 'alt-shift-f3' This should restart the generation engine. this has worked for me with previous versions of talend.
_AnonymousUser
Specialist III
Specialist III

alt-shift-f3 does nothing 0683p000009MPcz.png
any other ideas?
thanks anyway!
_AnonymousUser
Specialist III
Specialist III

Finally my job is working!
I've just deleted a tUnite component, re-created and it works.
Thanks!
Anonymous
Not applicable
Author

SOLUTION
When the exception is not any component, create a new workspace and import your jobs to it. Simply so.