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

Help on NullPointerException When open existing project

I have finish design all jobs for my project and also finished testing.
While today when open existing project, following error occurs:
java.lang.NullPointerException
at org.talend.repository.localprovider.model.LocalRepositoryFactory.doesLoggedUserExist(Unknown Source)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.logOnProject(Unknown Source)
at org.talend.repository.model.ProxyRepositoryFactory.logOnProject(Unknown Source)
at org.talend.repository.ui.login.LoginDialog$1.run(Unknown Source)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
System version is as follows:
OS: Windows 2007 Enterprise
Java: 1.5.0_17
Talend: TOS-Win32-r53616-V4.1.2.exe
Could anyone here please help me out on this? It is really urgent and important.
Labels (3)
5 Replies
Anonymous
Not applicable
Author

I installed talend in another computer and created a new Project. and copy following configurations from original workspace to new project as follows:
---------------------------------
1. context
2. metadata/connections
3. process
---------------------------------
And refreshed the Design View.
It is Ok for 2. metadata/connections & 3. process.
While error occurs when open context. And the error is as follows, could anyone help on this?
----------------------------------
!SESSION 2011-08-15 12:27:30.859 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.talend.libraries 1 0 2011-08-15 12:33:23.729
!MESSAGE 2011-08-15 12:33:23,723 INFO org.talend.repository.model.ProxyRepositoryFactory - yamints@126.com logged on Omantel

!ENTRY org.eclipse.osgi 2 1 2011-08-15 12:34:39.470
!MESSAGE NLS unused message: disassembler_comma in: org.eclipse.jdt.internal.ui.JavaUIMessages
!ENTRY org.talend.libraries 4 0 2011-08-15 12:59:14.843
!MESSAGE 2011-08-15 12:59:14,837 ERROR org.talend.commons.exception.ExceptionHandler -
!STACK 0
java.lang.NullPointerException
at org.talend.designer.core.ui.editor.process.Process.setAuthor(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.updateProperties(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.init(Unknown Source)
at org.talend.designer.core.ui.editor.process.Process.<init>(Unknown Source)
at org.talend.designer.core.ui.editor.ProcessEditorInput.createProcess(Unknown Source)
at org.talend.designer.core.ui.editor.ProcessEditorInput.createProcess(Unknown Source)
at org.talend.repository.editor.JobEditorInput.<init>(Unknown Source)
at org.talend.designer.core.ui.editor.ProcessEditorInput.<init>(Unknown Source)
at org.talend.designer.core.ui.editor.ProcessEditorInput.<init>(Unknown Source)
at org.talend.designer.core.ui.action.EditProcess.doRun(Unknown Source)
at org.talend.repository.ui.actions.AContextualAction$2.run(Unknown Source)
at org.talend.repository.RepositoryWorkUnit.executeRun(Unknown Source)
at org.talend.repository.model.AbstractRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)
at org.talend.repository.localprovider.model.LocalRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)
at org.talend.repository.model.ProxyRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)
at org.talend.repository.ui.actions.AContextualAction.run(Unknown Source)
at org.talend.repository.ui.actions.RepositoryDoubleClickAction.run(Unknown Source)
at org.talend.repository.ui.views.RepositoryView$11.doubleClick(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:821)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:819)
at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1419)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1195)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:238)
at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:235)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:296)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.talend.rcp.intro.Application.start(Unknown Source)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Anonymous
Not applicable
Author

Hi
Try to import the items into the new project from old workspace, right click on the Job Design and select 'import items' option.
Let me know if you have any questions!
Best regards
Shong
Anonymous
Not applicable
Author

Hi Shong,
Thanks,
Actually I exported Items by click "Job Design" -> "Export Items" in original project several days ago.
There are altogether about 20 jobs with context and db connection metadata.
While in the newly created project. Right lick "Job Design" -> "Import Items", it appears "no valid items found in source"
While if I unzip the exported items. there are corresponding .item & .properties files under process, metadata/connections, context.
I am not sure what's wrong with it?
Anonymous
Not applicable
Author

As for work-around for this issue
I have copied individual files (.item & .properties) under process, metadata/connections, context and refresh design view.
All are ok except for contexts.
So I think the route cause of the error is something wrong with context files.
Do you have any suggesion on this?
Is there anyway that I can recreate all these context data automatically since they are used in job design.
Anonymous
Not applicable
Author

Hi
As you said, you have backup the project, it should contain the context files, try to import them into new project from the backup.
Is there anyway that I can recreate all these context data automatically since they are used in job design.

No, you have to import them or recreate them.
Best regards
Shong