Bug 310070

Summary: IllegalArgumentException: Attempted to beginRule ... does not match outer scope rule (when running FindBugs)
Product: [Eclipse Project] JDT Reporter: Ulrich Hobelmann <ulrich.hobelmann>
Component: CoreAssignee: Jay Arthanareeswaran <jarthana>
Status: VERIFIED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, satyam.kandula
Version: 3.6   
Target Milestone: 3.6 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Ulrich Hobelmann CLA 2010-04-22 04:53:33 EDT
Build Identifier: I20100312-1448 (3.6 Milestone)

I cannot run FindBugs on some of my Eclipse projects. I get the following exception:

java.lang.IllegalArgumentException: Attempted to beginRule: MultiRule[P/MyProject,P/.org.eclipse.jdt.core.external.folders], does not match outer scope rule: MutexSchedulingRule, project: P/MyProject
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:136)
at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:326)
at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:85)
at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:285)
at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:117)
at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:1914)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1970)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1845)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2699)
at org.eclipse.jdt.launching.JavaRuntime.computeDefaultContainerEntries(JavaRuntime.java:1118)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:1085)
at org.eclipse.jdt.internal.launching.DefaultEntryResolver.resolveRuntimeClasspathEntry(DefaultEntryResolver.java:53)
at org.eclipse.jdt.launching.JavaRuntime.resolveRuntimeClasspathEntry(JavaRuntime.java:1090)
at org.eclipse.jdt.launching.JavaRuntime.computeDefaultRuntimeClassPath(JavaRuntime.java:1373)
at de.tobject.findbugs.builder.PDEClassPathGenerator.createJavaClasspath(PDEClassPathGenerator.java:76)
at de.tobject.findbugs.builder.PDEClassPathGenerator.createPluginClassPath(PDEClassPathGenerator.java:85)
at de.tobject.findbugs.builder.PDEClassPathGenerator.computeClassPath(PDEClassPathGenerator.java:53)
at de.tobject.findbugs.builder.FindBugsWorker.createAuxClasspath(FindBugsWorker.java:436)
at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:157)
at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:248)
at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:61)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Reproducible: Always

Steps to Reproduce:
1. Right-click on a project
2. Select FindBugs -> FindBugs (version is 1.3.9, but it never seems to actually get to the FindBugs code)

This does not hold for ALL projects, just for some. I'm not sure what's happening in the code though, so I can't tell what's different about the projects.
Comment 1 Jay Arthanareeswaran CLA 2010-04-22 09:55:15 EDT
This should be working in the recent I builds.

*** This bug has been marked as a duplicate of bug 305043 ***
Comment 2 Satyam Kandula CLA 2010-04-26 10:36:25 EDT
Verified for 3.6M7 using build I20100424-2000
Comment 3 Jay Arthanareeswaran CLA 2010-04-26 10:51:56 EDT
Verified