Intermittent "Path must include project and resource name" error
I'm working on a project with multiple developers of TIS 4.0.2 installed on Windows 7 and Windows XP. The Talend server is a Unix box.
All the developers are intermittently getting the exception detailed below, especially when trying to save work. This error has also resulted in some developers having to re-install Talend because they cannot save work at all and end up with a locking issue. Can anybody explain where this error is coming from? It seems the TIS applications on the developers' machines are getting out of sync with the Subversion repository, but we don't know why. Is it Talend? Is it Eclipse? Is it Subversion?
Any help greatly appreciated!
org.talend.commons.exception.PersistenceException: java.lang.IllegalArgumentException: Path must include project and resource name: /talend.project
at org.talend.repository.svnprovider.SvnBaseRepositoryFactory.doInitialize(Unknown Source)
at org.talend.repository.svnprovider.SvnBaseRepositoryFactory.initialize(Unknown Source)
at org.talend.repository.svnprovider.SvnRepositoryFactory.initialize(Unknown Source)
at org.talend.repository.svnprovider.SvnRepositoryFactory.executeRepositoryWorkUnit(Unknown Source)
at org.talend.repository.remoteprovider.RemoteRepositoryFactory.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.toolbar.ProjectSettingsAction.run(Unknown Source)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /talend.project
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1634)
at org.eclipse.core.internal.resources.Container.getFile(Container.java:123)
at org.talend.repository.model.URIHelper.getFile(Unknown Source)
at org.talend.repository.svnprovider.SvnBaseRepositoryFactory.unloadAndRemoveResources(Unknown Source)
... 38 more
org.talend.commons.exception.PersistenceException: java.lang.IllegalArgumentException: Path must include project and resource name: /talend.project
As the message said that the file talend.project must exist on the root folder of project, so try to do the following inspection:
- Open the svn server and see if the file talend.project exist on the root folder of project.(see pic1)
- Go to the workspace/ProjectName/ and see if the file talend.project exist.
- Close TIS studio, remove the whole workspace, restart TIS studio.
Best regards
Shong
Thank you for your suggestion Shong. We've checked that all the talend.properties files are in place and have the correct cross-referencing within them, yet we are still having problems.
Is there any way of finding out more information about this error? Is there a log somewhere that has more information in it than just a stack trace?
Thank you Shong.
I've reviewed the log from my workstation (see attached) and these errors seem to be being produced from the org.talend.repository.svnprovider module or its descendants. I've looked on "trac" (Talend Open Studio) for the code to this module, but it doesn't appear to be there. Where can I find the source code?
Hello
Please report a support ticket with the svn dump. We will import your project into our svn server and investigate the problem future.
Best regards
Shong