Job source code blanked!

Four Stars

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


Accepted Solutions
Nine Stars

Re: Job source code blanked!

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.

Regards David
Dont forget to give Kudos when an answer is helpful or mark the answer as the solution.

All Replies
Moderator

Re: Job source code blanked!

Hello,

What's error message are you getting?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Four Stars

Re: Job source code blanked!

Quick  reaction! Awesome, Thanks Smiley Very Happy

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)	
Four Stars

Re: Job source code blanked!

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)
Nine Stars

Re: Job source code blanked!

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.

Regards David
Dont forget to give Kudos when an answer is helpful or mark the answer as the solution.
Four Stars

Re: Job source code blanked!

Thank you!! This solved my issue!

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now