'This project has some unlocked modified items' error when trying to open a remote project in Studio

Problem Description

After making a new project in TAC, then trying to open that remote project in Studio, it fails with the following error:

This project has some unlocked modified items.

error001.jpg

 

Clicking OK produces an error similar to the following:

error2.png

 

Root Cause

Reviewing the Studio log (shown below) indicates that the actual cause is not the unlocked items, but that SVN is looking for missing files. This issue does not occur when you open the new project for the first time, but it might be triggered every time after that if you don’t create a Job in the project before opening it for the first time. You'll understand it better after going through the Solution.

 

Studio log sample:

org.talend.commons.exception.PersistenceException: org.tigris.subversion.javahl.ClientException: svn: E200009: Commit failed (details follow):
svn: E200009: 'C:\Users\User_Name\Desktop\workspace\PATHWATCH1\.settings' is not known to exist in the repository and is not part of the commit, yet its child 'C:\Users\User_Name\Desktop\workspace\PATHWATCH1\.settings\org.talend.log4j.prefs' is part of the commit
at org.talend.repository.svnprovider.SvnEclipseHandler.commit(SvnEclipseHandler.java:414)
at org.talend.repository.svnprovider.SvnCommitAbstractStrategy.commit(SvnCommitAbstractStrategy.java:84)
at org.talend.repository.svnprovider.SvnBaseRepositoryFactory$1.run(SvnBaseRepositoryFactory.java:547)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:390)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:527)
at org.talend.repository.ui.login.LoginHelper.logIn(LoginHelper.java:530)
at org.talend.repository.ui.login.LoginProjectPage.finishPressed(LoginProjectPage.java:1033)
at org.talend.repository.ui.login.LoginProjectPage$18.widgetSelected(LoginProjectPage.java:999)
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.RepositoryService.openLoginDialog(RepositoryService.java:329)
at org.talend.rcp.intro.Application.logUserOnProject(Application.java:489)
at org.talend.rcp.intro.Application.start(Application.java:189)
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(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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)

 

Warnings

If you have any local projects, try creating a new workspace rather than deleting the old one, or make a backup and then clear the workspace. Otherwise, you might lose all your Jobs and progress made in the local projects.

 

Solution

  1. Clear the studio_workspace.

  2. Open an existing (one you are working on) remote project in Studio and export a few Jobs.

  3. Identify the Job name and export the Job. To export a Job, perform the following steps:

    1. Right-click the Job, and select Export Job.
    2. Select the Select archive file check box.
    3. Select the Job Name.
    4. Select the Export Dependencies check box.
    5. Click Finish.
  4. Open the new project, where you are facing the un-lock item issue, and import the Jobs you exported in the previous step.

  5. Create a few Jobs in the new project.

  6. Restart Studio.

Version history
Revision #:
4 of 4
Last update:
‎04-13-2019 12:40 PM
Updated by: