Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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

Hi shaunenslin,
Have you already checked the jira issue: https://jira.talendforge.org/browse/TDI-33318?
Best regards
Sabrina
Anonymous
Not applicable
Author

I just try TOS 6.1 M1 and still the same issue.
Anonymous
Not applicable
Author

Hi, 
I am having the same problem running Talend  6.0.0.20150702_1326 on Win64. 
1 - When I updated the JDK path to add jre, TOS now complains that "A JDK is required to build jobs". Without the /jre on the end, that dialog was not seen. 
2 - When I build the job. 

If I have "Extract the zip file" checked, Null Pointer exception occurs. 
If I uncheck "Extract the zip file", no error occurs, but no files are created. 

Sorry - now upgraded to 6.1.0.20150812_1515_M1 
1 - TOS continues to complain that "A JDK is required to build jobs. But it won't let me add the \jre onto the end of the directory path anymore. 
2 - When I build the job, no exception occurs, but no file is created. checking the "Extract the zip file" no longer makes a difference. 
Anonymous
Not applicable
Author

Hi,
Would you mind adding your comments on this jira issue: https://jira.talendforge.org/browse/TDI-33318?
Best regards
Sabrina
follivier
Contributor III
Contributor III

May you tell me if these messages read into .log exported file can help you for your diagnostic ?
!ENTRY org.talend.platform.logging 1 0 2015-08-26 16:27:11.126
!MESSAGE 2015-08-26 16:27:11,126 INFO  org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory  - Using NULL lifecycle mapping for MavenProject: org.talend.master.interfacesdev:code.Master:6.0.0 @ D:\TALEND\workspace600\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2015-08-26 16:27:12.156
!MESSAGE 2015-08-26 16:27:12,156 INFO  org.eclipse.m2e.internal.launch.MavenLaunchDelegate  - D:\TALEND\workspace600\.Java
!ENTRY org.talend.platform.logging 1 0 2015-08-26 16:27:12.156
!MESSAGE 2015-08-26 16:27:12,156 INFO  org.eclipse.m2e.internal.launch.MavenLaunchDelegate  -  mvn  -B -o -s D:/APPLIS/TALEND/TOS_DI-Win32-20150702_1326-V6.0.0/configuration/maven_user_settings.xml clean package -P default-settings,include-java-sources,!include-maven-resources,include-items,include-libs,include-binaries,!include-log4j,include-contexts,!include-test-sources,!include-test-reports -DskipTests
!ENTRY org.talend.platform.logging 1 0 2015-08-26 16:27:13.294
!MESSAGE 2015-08-26 16:27:13,294 INFO  org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory  - Using NULL lifecycle mapping for MavenProject: org.talend.master.interfacesdev:code.Master:6.0.0 @ D:\TALEND\workspace600\.Java\pom.xml.
!ENTRY org.talend.platform.logging 1 0 2015-08-26 16:27:13.560
!MESSAGE 2015-08-26 16:27:13,560 INFO  org.eclipse.m2e.core.internal.lifecyclemapping.LifecycleMappingFactory  - Using NULL lifecycle mapping for MavenProject: org.talend.master.interfacesdev:code.Master:6.0.0 @ D:\TALEND\workspace600\.Java\pom.xml.
follivier
Contributor III
Contributor III

*** System properties
java.vendor=Oracle Corporation
osgi.bundles.defaultStartLevel=4
org.osgi.supports.framework.extension=true
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
os.name=Windows Server 2008 R2
sun.boot.class.path=C:\Program Files\Java\jre1.8.0_51\lib\resources.jar;C:\Program Files\Java\jre1.8.0_51\lib\rt.jar;C:\Program Files\Java\jre1.8.0_51\lib\sunrsasign.jar;C:\Program Files\Java\jre1.8.0_51\lib\jsse.jar;C:\Program Files\Java\jre1.8.0_51\lib\jce.jar;C:\Program Files\Java\jre1.8.0_51\lib\charsets.jar;C:\Program Files\Java\jre1.8.0_51\lib\jfr.jar;C:\Program Files\Java\jre1.8.0_51\classes
osgi.ws=win32
sun.desktop=windows
java.vm.specification.vendor=Oracle Corporation
java.runtime.version=1.8.0_51-b16
osgi.instance.area=file:/D:/TALEND/workspace600/
org.osgi.framework.uuid=309f90fa-f94b-0015-1ba0-eaf5f76ec7b2
osgi.nl.user=fr
user.name=admindata osgi.framework.

To see the whole post, download it here
OriginalPost.pdf
Anonymous
Not applicable
Author

Hi follivier,
Does this issue still repro on Talend 6.1.0M?
Best regards
Sabrina
follivier
Contributor III
Contributor III

I installed this version yesterday.
A simple job displaying "Hello Word" with a great and famous "System.out.println" works fine. I can get a .zip including the .jar.
Building a more complex job using many subjobs stays impossible ! Version 5.6 was OK...
Best regards.
follivier
Contributor III
Contributor III

Could we chat together to check all the points you need to ?
I'm in urge to build some jobs and Schedule them...
_AnonymousUser
Specialist III
Specialist III

TOS DI 6.0.0/6.1.0M1 can't build any standalone jobs on win 2008 server sp2/win 7 pro sp1 64bits, using same jdk 1.8.0_51.
Other build types seem to be OK.
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_51
PATH=C:\Program Files\Java\jdk1.8.0_51\bin;C:\ProgramData\Oracle\Java\javapath
In préférences : Installed JREs :
JRE Home = C:\Program Files\Java\jdk1.8.0_51
JRE name = jdk1.8.0_51
Can you help me today ?