Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-dev] The workspace tree is already locked

I filed this bug (https://issues.sonatype.org/browse/MNGECLIPSE-1671) on 09/11, and I have been attempting to fix it.  The attached patch works for me except when I have the ClearCase plugin enabled.
 
If I have ClearCase enabled and try to import more than one project at a time, I get the following error (Importing only one project at a time does not give this error):
org.eclipse.core.runtime.AssertionFailedException: assertion failed: The workspace tree is already locked
        at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
        at org.eclipse.core.internal.resources.Workspace.setTreeLocked(Workspace.java:1872)
        at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:278)
        at org.eclipse.core.internal.events.NotificationManager.handleEvent(NotificationManager.java:267)
        at org.eclipse.core.internal.resources.Workspace.broadcastEvent(Workspace.java:307)
        at org.eclipse.core.internal.resources.Resource.refreshLocal(Resource.java:1519)
        at org.eclipse.core.internal.resources.Project.open(Project.java:925)
        at org.eclipse.core.internal.resources.Project.open(Project.java:945)
        at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.create(ProjectConfigurationManager.java:588)
        at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.importProjects(ProjectConfigurationManager.java:150)
        at org.maven.ide.eclipse.wizards.MavenImportWizard$1.runInWorkspace(MavenImportWizard.java:94)
        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 
Could anyone shed some light on why this would be happening?  Is there some better way to fix this?
 
Thanks,
Paul
 
 
 

-----Message Disclaimer-----

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to Connect@xxxxxxxxxxxxx and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.

While this communication may be used to promote or market a transaction
or an idea that is discussed in the publication, it is intended to provide
general information about the subject matter covered and is provided with
the understanding that The Principal is not rendering legal, accounting,
or tax advice. It is not a marketed opinion and may not be used to avoid
penalties under the Internal Revenue Code. You should consult with
appropriate counsel or other advisors on all matters pertaining to legal,
tax, or accounting obligations and requirements.

Attachment: fix_read_only.diff
Description: fix_read_only.diff


Back to the top