Java error java.lang.NullPointerException at org.talend.designer.runprocess.java.JavaProcessorUtilities when generating a Job

Overview

You have a generation problem in Talend Administration Center even if your Job runs successfully in the studio.

The following error is displayed:

java.lang.NullPointerException
 at org.talend.designer.runprocess.java.JavaProcessorUtilities.sortClasspath(JavaProcessorUtilities

Environment

This article applies to all versions of Talend Studio.

Symptoms

Your Job runs well in the studio, but you cannot generate it in Talend Administration Center.
You get the following Java error:
java.lang.NullPointerException
 at org.talend.designer.runprocess.java.JavaProcessorUtilities.sortClasspath(JavaProcessorUtilities)
 at org.talend.designer.runprocess.java.JavaProcessorUtilities.computeLibrariesPath(JavaProcessorUtilities...)
 at org.talend.designer.runprocess.DefaultRunProcessService.updateLibraries(DefaultRunProcessService...)
 at org.talend.designer.runprocess.RunProcessService.updateLibraries(RunProcessService...)
 at org.talend.designer.runprocess.ProcessorUtilities.generateBuildInfo(ProcessorUtilities...)
 at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities...)
 at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities...)
 at org.talend.designer.runprocess.ProcessorUtilities.generateCode(ProcessorUtilities..)
 at org.talend.repository.ui.wizards.exportjob.scriptsmanager.JobScriptsManager.generateJobFiles(JobScriptsManager...)
 at org.talend.repository.ui.wizards.exportjob.scriptsmanager.JobScriptsManager.generateJobFiles(JobScriptsManager...)
 at org.talend.repository.ui.wizards.exportjob.scriptsmanager.JobJavaScriptsManager.getExportResources(JobJavaScriptsManager...)
 at org.talend.commandline.util.JobHandler.export(JobHandler...)
 at org.talend.commandline.command.CommandProcessor.doExportJob(CommandProcessor...)
 at org.talend.commandline.command.CommandProcessor.exportJob(CommandProcessor...)
 at org.talend.commandline.command.CommandProcessorSwitch.caseExportJobCommand(CommandProcessorSwitch.java:94)
 at org.talend.commandline.client.util.CommandAbstractSwitch.doSwitch(CommandAbstractSwitch.java:66)
 at org.talend.commandline.command.CommandConsumer.executeCommand(CommandConsumer.java:57)
 at org.talend.commandline.command.CommandConsumer.execute(CommandConsumer.java:35)
 at org.talend.commandline.mode.ServerCommandLine$CommmandConsumerRunnable.run(ServerCommandLine...)
 at java.lang.Thread.run(Unknown Source)

Resolution

  • Try to export the Job as jobscript from the studio to make sure the export is working.

If the Job has custom components:

  1. Check if those custom components are specified in Talend Administration Center under CommandLine, in the Configuration page.
  2. Check that all libraries needed are in the /lib/java directory. If they are not, add the missing ones.
  3. Regenerate the task.
Version History
Revision #:
1 of 1
Last update:
‎05-11-2017 09:07 PM
Updated by:
 
Labels (1)
Contributors