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

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

java.lang.NullPointerException when building job

Talend V6.0
I have the following error when I build my job:

java.lang.NullPointerException
    at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizardPage.finish(JobScriptsExportWizardPage.java:1442)
    at org.talend.repository.ui.wizards.exportjob.JavaJobScriptsExportWSWizardPage.finish(JavaJobScriptsExportWSWizardPage.java:1225)
    at org.talend.repository.ui.wizards.exportjob.JobScriptsExportWizard.performFinish(JobScriptsExportWizard.java:126)
    at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:832)
    at org.eclipse.jface.window.Window.open(Window.java:808)
    at org.talend.repository.ui.actions.ExportJobScriptAction.doRun(ExportJobScriptAction.java:117)
    at org.talend.repository.ui.actions.AContextualAction$2.run(AContextualAction.java:632)
    at org.talend.repository.RepositoryWorkUnit.executeRun(RepositoryWorkUnit.java:93)
    at org.talend.core.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(AbstractRepositoryFactory.java:256)
    at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(LocalRepositoryFactory.java:3210)
    at org.talend.core.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(ProxyRepositoryFactory.java:1977)
    at org.talend.repository.ui.actions.AContextualAction.run(AContextualAction.java:641)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:519)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at org.talend.rcp.intro.Application.start(Application.java:164)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
Any idea?
Didier
Labels (3)
55 Replies
Anonymous
Not applicable
Author

Thanks Elisa. That sorted it. I didn't experience any other problems with running the jobs inside the Studio. This only affected me when i tried to build a Standalone job. I only tried that to see if this problem affected me.
_AnonymousUser
Specialist III
Specialist III

I used the prefered path C:\Program Files\Java\jdk1.8.0_51\jre but no change appeared.
Impossible to build a standalone job.
_AnonymousUser
Specialist III
Specialist III

FYI : system used : ms windows server 2008 standard sp1
I've noticed that when TOS has been launching a message wrote :
"A JDK is required to build jobs.
You can define which JDK to use in Window prefereces>...>installed JREs."
while setting classpath container : Loading org.talend.repository.items.importexport.ui.
Anonymous
Not applicable
Author

@foquintess: have you restarted your Studio before trying again to build your standalone job?
@rhall: you confirm this workaround fixed the "building standalone job" issue, right? (with JDK v7 for you).
Elisa
Anonymous
Not applicable
Author

Yes Elisa, I am now able to produce Standalone jobs using JDK 1.7.
follivier
Contributor III
Contributor III

A lot of times...
Anonymous
Not applicable
Author

ok. Let me escalate your issue to the R&D team.
Elisa
Anonymous
Not applicable
Author

Hello,
the problem is logged here: https://jira.talendforge.org/browse/ TDI-33318
Happens when use the checkbox "unzip" after build a job.
Means you can simply avoid to use this option unzip, then everything will be ok.
Nicolas
follivier
Contributor III
Contributor III

Release: 6.0.0
Product Build: 6.0.0.20150702_1326
Java version: 1.8
JRE home : C:\Program Files\Java\jdk1.8.0_51\jre
JRE name : jdk1.8.0_51
Platform: x86-64
Operating System: Windows Server 2008 R2 Standard SP1
2 problems :
- Launching : message asking for right jre as Talend OS is launching
- Building standalone job :
   => java.lang.NullPointerException ERROR after building a standalone job with zip extration option : no job has been built
   => no message after building a standalone job without zip extration option : no job has been built
Anonymous
Not applicable
Author

No way to build the job with or without the unzip option!!!!!!!
Java SDK 1.8.0.51