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

Job source code blanked!

Hi, I am using Talend Open Studio for Big Data 7.1 on Windows 7 at the moment, i erroneously emptied the "target" folders: ProjectDir\poms\jobs\process\JobId\target now the souce files in ProjectDir\poms\jobs\process\JobId\src\main\java had been blanked.

* The build of the job obviously fail
* Adding deleting components does not regenerate the java sources
* The "Code" tab on the job shows, obviously, nothing
* Cleaning the windows Temp directory does not help
* Restarting Talend doees not help
* The Java file of the object is existant but empty
* Reinstalling Talend does not help

Any clue on this?

Thanks in Advance

EDR

Labels (4)
1 Solution

Accepted Solutions
David_Beaty
Specialist
Specialist

Disable half of the job from the bottom all the way up to about half way, and check the code tab. if it generates, then the problem is with the lower half, otherwise the upper half, repeat disabling/re-enabling sections until you home in on the component giving you the issue.

 

Watch out for disable/enable to tHashInput/Output as they may not reconnect to the right companion.

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hello,

What's error message are you getting?

Best regards

Sabrina

Anonymous
Not applicable
Author

Quick  reaction! Awesome, Thanks 0683p000009MACJ.png

NullPointerException from the UI and the following log from .metadata\.log file

 

!ENTRY org.talend.platform.logging 1 0 2019-01-24 09:19:56.617
!MESSAGE 2019-01-24 09:19:56,615 INFO  org.eclipse.m2e.internal.launch.MavenLaunchDelegate  -  mvn  -B -o -s C:\Enel\TalendOS\configuration\maven_user_settings.xml install -llr -Dmaven.main.skip=true -Dci.builder.skip=true


!ENTRY org.talend.platform.logging 2 0 2019-01-24 09:20:06.848
!MESSAGE 2019-01-24 09:20:06,845 WARN  org.talend.commons.exception.CommonExceptionHandler  - java.lang.NullPointerException

!STACK 0
org.talend.commons.exception.PersistenceException: java.lang.NullPointerException
	at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:298)
	at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:210)
.....

Caused by: java.lang.NullPointerException
	at org.talend.designer.codegen.model.CodeGeneratorInternalTemplatesFactory.getTemplatesFromType(CodeGeneratorInternalTemplatesFactory.java:131)
	at org.talend.designer.codegen.CodeGenerator.generateContextCode(CodeGenerator.java:387)
	at org.talend.designer.core.runprocess.Processor.updateContextCode(Processor.java:665)
	at org.talend.designer.runprocess.java.JavaProcessor.generateContextCode(JavaProcessor.java:1678)
	at org.talend.designer.runprocess.ProcessorUtilities.generateContextInfo(ProcessorUtilities.java:861)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1124)
	at org.talend.designer.runprocess.ProcessorUtilities.generateNodeInfo(ProcessorUtilities.java:1457)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1088)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:915)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1696)
	at org.talend.repository.ui.wizards.exportjob.handler.BuildJobHandler.generateJobFiles(BuildJobHandler.java:167)
	at org.talend.repository.ui.wizards.exportjob.handler.AbstractBuildJobHandler.prepare(AbstractBuildJobHandler.java:404)
	at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager$1.run(BuildJobManager.java:259)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
	at org.talend.repository.ui.wizards.exportjob.scriptsmanager.BuildJobManager.buildJob(BuildJobManager.java:292)	
Anonymous
Not applicable
Author

Setting the flag "Generate code when opening the job" generate the following error in logs opening the job

!ENTRY org.eclipse.core.jobs 4 2 2019-01-24 09:42:20.700
!MESSAGE An internal error occurred during: "Generating code".
!STACK 0
java.lang.NullPointerException
	at org.talend.designer.codegen.model.CodeGeneratorInternalTemplatesFactory.getTemplatesFromType(CodeGeneratorInternalTemplatesFactory.java:131)
	at org.talend.designer.codegen.CodeGenerator.generateContextCode(CodeGenerator.java:387)
	at org.talend.designer.core.runprocess.Processor.updateContextCode(Processor.java:665)
	at org.talend.designer.runprocess.java.JavaProcessor.generateContextCode(JavaProcessor.java:1678)
	at org.talend.designer.runprocess.ProcessorUtilities.generateContextInfo(ProcessorUtilities.java:861)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1124)
	at org.talend.designer.runprocess.ProcessorUtilities.generateNodeInfo(ProcessorUtilities.java:1457)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1088)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:915)
	at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities.java:1891)
	at org.talend.designer.core.ui.AbstractMultiPageTalendEditor$7.doRun(AbstractMultiPageTalendEditor.java:1080)
	at org.talend.core.model.utils.AccessingEmfJob.run(AccessingEmfJob.java:55)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
David_Beaty
Specialist
Specialist

Disable half of the job from the bottom all the way up to about half way, and check the code tab. if it generates, then the problem is with the lower half, otherwise the upper half, repeat disabling/re-enabling sections until you home in on the component giving you the issue.

 

Watch out for disable/enable to tHashInput/Output as they may not reconnect to the right companion.

Anonymous
Not applicable
Author

Thank you!! This solved my issue!