Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-2347

Find Bugs internal error when run on projects

XMLWordPrintable

    • Hide

      1. Start JBDS
      2. Install Find Bugs from central (1.3) or http://findbugs.cs.umd.edu/eclipse (2.0.1)
      3. Create a simple project (e.g. dynamic project)
      4. Right-click your project in Project Explorer -> Find Bugs -> Find Bugs
      5. Search is in progress and at the end there is this error

      Show
      1. Start JBDS 2. Install Find Bugs from central (1.3) or http://findbugs.cs.umd.edu/eclipse (2.0.1) 3. Create a simple project (e.g. dynamic project) 4. Right-click your project in Project Explorer -> Find Bugs -> Find Bugs 5. Search is in progress and at the end there is this error

      When you run find bugs on a project (e.g. dynamic web project or java ee web project from central), it will search for bugs and then you will get an error:

      An internal error occurred during: "Finding bugs in dynproj...".
      Attempted to beginRule: P/dynproj, does not match outer scope rule: MutexSchedulingRule, resource: P/dynproj
      

      The workspace log:

      !ENTRY org.eclipse.core.jobs 4 2 2012-10-05 14:07:48.920
      !MESSAGE An internal error occurred during: "Finding bugs in dynproj...".
      !STACK 0
      java.lang.IllegalArgumentException: Attempted to beginRule: P/dynproj, does not match outer scope rule: MutexSchedulingRule, resource: P/dynproj
      	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      	at org.eclipse.core.internal.jobs.ThreadJob.illegalPush(ThreadJob.java:134)
      	at org.eclipse.core.internal.jobs.ThreadJob.push(ThreadJob.java:333)
      	at org.eclipse.core.internal.jobs.ImplicitJobs.begin(ImplicitJobs.java:85)
      	at org.eclipse.core.internal.jobs.JobManager.beginRule(JobManager.java:286)
      	at org.eclipse.core.internal.resources.WorkManager.checkIn(WorkManager.java:118)
      	at org.eclipse.core.internal.resources.Workspace.prepareOperation(Workspace.java:2282)
      	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2339)
      	at de.tobject.findbugs.reporter.MarkerUtil.createMarkers(MarkerUtil.java:125)
      	at de.tobject.findbugs.builder.FindBugsWorker.updateBugCollection(FindBugsWorker.java:383)
      	at de.tobject.findbugs.builder.FindBugsWorker.work(FindBugsWorker.java:227)
      	at de.tobject.findbugs.actions.FindBugsAction$StartedFromViewJob.runWithProgress(FindBugsAction.java:265)
      	at de.tobject.findbugs.FindBugsJob.run(FindBugsJob.java:102)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      

      I tried the same in JBDS 5.0.1 with Find Bugs 2.0.1 and there was no error. So it looks like something has changed between JBDS 5 and 6. (Maybe just Indigo -> Juno?)

              nickboldt Nick Boldt
              exd-mmalina Martin Malina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: