Error upon importing an existing project

One Star

Error upon importing an existing project

I had to build myself a new VM the other day, and when I went to re-install Talend DI (5.1.1), I went to import the projects from my old machine. I started Talend, selected "Import" from the initial screen, selected the main directory of the old installation, gave the project a name and hit Finish. It ran fine until the very end, when it threw an error that it couldn't access the newly-created .project file ("access denied"). Here's the full stack trace:
java.io.FileNotFoundException: C:\Talend\TOS_DI-r84309-V5.1.1\workspace\INNOVATIONU\.project (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at org.talend.commons.utils.io.FilesUtils.replaceInFile(FilesUtils.java:320)
at org.talend.repository.ui.actions.importproject.ImportProjectsUtilities.afterImportAs(ImportProjectsUtilities.java:115)
at org.talend.repository.ui.actions.importproject.ImportProjectsUtilities.importProjectAs(ImportProjectsUtilities.java:95)
at org.talend.repository.ui.wizards.newproject.ImportProjectAsWizard$1.run(ImportProjectAsWizard.java:136)
at org.talend.commons.ui.swt.dialogs.ProgressDialog$1$1.run(ProgressDialog.java:77)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.talend.commons.ui.swt.dialogs.ProgressDialog$1.run(ProgressDialog.java:73)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
at org.talend.commons.ui.swt.dialogs.ProgressDialog$2.run(ProgressDialog.java:115)
at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
at org.eclipse.swt.widgets.Display.syncExec(Display.java:4584)
at org.talend.commons.ui.swt.dialogs.ProgressDialog.executeProcess(ProgressDialog.java:97)
at org.talend.repository.ui.wizards.newproject.ImportProjectAsWizard.performFinish(ImportProjectAsWizard.java:156)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:811)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:430)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.talend.repository.ui.actions.importproject.ImportProjectAsAction.run(ImportProjectAsAction.java:71)
at org.talend.repository.ui.login.TOSLoginComposite$4.widgetSelected(TOSLoginComposite.java:566)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.talend.repository.RepositoryService.openLoginDialog(RepositoryService.java:262)
at org.talend.rcp.intro.Application.logUserOnProject(Application.java:273)
at org.talend.rcp.intro.Application.start(Application.java:82)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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:369)
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:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Any suggestions on how to fix?
thanks,
bruce
One Star

Re: Error upon importing an existing project

Addendum: clicking Ok and then Cancel, and quitting Talend, seems to get around it. When I started up again, the two imported projects were visible and opened just fine.
So, not critical, but slightly scary. ;-)
thanks,
bruce
One Star

Re: Error upon importing an existing project

I'm seeing this too. Version TOS_DI-20160510_1709-V6.2.0. 
If using the workaround above, it is necessary for the new project name to exactly match the project name that you're importing from.
HTH