Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15504

cdi spits out hundreds of exceptions if you have deleted a project in eclipse

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.1.0.Alpha1
    • Fix Version/s: 4.2.0.Alpha1
    • Component/s: cdi
    • Labels:
      None

      Description

      Had imported a bunch of kitchensinks samples, delete a project and now on save/validation I get a bunch of these errors:

      Java Model Exception: Java Model Status [jboss-as-kitchensink-angularjs-topcoat does not exist]
      at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:508)
      at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
      at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:521)
      at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:258)
      at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:244)
      at org.eclipse.jdt.internal.core.JavaProject.getJavaProjectElementInfo(JavaProject.java:1641)
      at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2328)
      at org.eclipse.jdt.internal.core.JavaProject.newNameLookup(JavaProject.java:2338)
      at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1356)
      at org.eclipse.jdt.internal.core.JavaProject.findType(JavaProject.java:1263)
      at org.jboss.tools.common.util.EclipseJavaUtil.findType(EclipseJavaUtil.java:115)
      at org.jboss.tools.common.java.ParametedTypeFactory.getParametedType(ParametedTypeFactory.java:128)
      at org.jboss.tools.common.java.ParametedTypeFactory.getParametedType(ParametedTypeFactory.java:80)
      at org.jboss.tools.cdi.internal.core.impl.definition.ParameterDefinition.init(ParameterDefinition.java:43)
      at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
      at org.jboss.tools.cdi.internal.core.impl.definition.ParameterDefinition.setLocalVariable(ParameterDefinition.java:37)
      at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.loadParamDefinitions(MethodDefinition.java:87)
      at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.init(MethodDefinition.java:63)
      at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
      at org.jboss.tools.cdi.internal.core.impl.definition.MethodDefinition.setMethod(MethodDefinition.java:48)
      at org.jboss.tools.cdi.internal.core.impl.definition.TypeDefinition.init(TypeDefinition.java:70)
      at org.jboss.tools.cdi.internal.core.impl.definition.AbstractMemberDefinition.setAnnotatable(AbstractMemberDefinition.java:64)
      at org.jboss.tools.cdi.internal.core.impl.definition.AbstractTypeDefinition.setType(AbstractTypeDefinition.java:69)
      at org.jboss.tools.cdi.internal.core.impl.CDIProject.rebuildBeans(CDIProject.java:1259)
      at org.jboss.tools.cdi.internal.core.impl.CDIProject.update(CDIProject.java:1123)
      at org.jboss.tools.cdi.core.CDICoreNature.clean(CDICoreNature.java:427)
      at org.jboss.tools.cdi.core.CDICoreBuilder.clean(CDICoreBuilder.java:349)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:299)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:302)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:358)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:381)
      at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:514)
      at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:423)
      at org.eclipse.ui.internal.ide.dialogs.CleanDialog.doClean(CleanDialog.java:313)
      at org.eclipse.ui.internal.ide.dialogs.CleanDialog$1.runInWorkspace(CleanDialog.java:151)
      at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)

      And this is even when the projects had on connection before.

      Expected: No errors when a project is deleted

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                scabanovich Viacheslav Kabanovich
                Reporter:
                maxandersen Max Rydahl Andersen
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: