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

JAX-RS facet in JBoss Tools chokes on package-info.java

    XMLWordPrintable

    Details

      Description

      The JBoss Tools org.jboss.tools.ws.jaxrs.core component seems to choke on package-info.java files in my Maven (m2Eclipse) project, spitting errors in the IDE log when I do a compile run in Eclipse:

      "Java Model Exception: Java Model Status [[Working copy] package-info.java [in au.com.postnewspapers.nymm.database [in src/main/java [in nymm]]] does not exist]"

      JBoss Tools versions are current from Marketplace:

        JBoss JAX-RS Tools	1.2.2.v20120514-1752-H106-Beta3	org.jboss.tools.ws.jaxrs.feature.feature.group	JBoss by Red Hat
        JBoss JAX-RS Tools	1.2.2.v20120514-1752-H106-Beta3	org.jboss.tools.ws.jaxrs.feature.feature.group	JBoss by Red Hat
        JBoss Maven CDI Configurator	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.cdi.feature.feature.group	JBoss by Red Hat
        JBoss Maven Hibernate Configurator	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.hibernate.feature.feature.group	JBoss by Red Hat
        JBoss Maven Integration	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.feature.feature.group	JBoss by Red Hat
        JBoss Maven JAX-RS Configurator	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.jaxrs.feature.feature.group	JBoss by Red Hat
        JBoss Maven JPA Configurator	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.jpa.feature.feature.group	JBoss by Red Hat
        JBoss Maven JSF Configurator	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.jsf.feature.feature.group	JBoss by Red Hat
        JBoss Maven Project Examples	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.project.examples.feature.feature.group	JBoss by Red Hat
        JBoss Packaging Maven Configurators	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.jbosspackaging.feature.feature.group	JBoss by Red Hat
        JBoss Runtime AS Detector	1.3.0.v20120504-1621-H89-Beta3	org.jboss.tools.runtime.as.detector.feature.feature.group	JBoss by Red Hat
        JBoss Runtime Detection Core	1.3.0.v20120504-1621-H89-Beta3	org.jboss.tools.runtime.core.feature.feature.group	JBoss by Red Hat
        JBoss Tools Community Project Examples	1.2.1.v20120504-1659-H91-Beta3	org.jboss.tools.community.project.examples.feature.feature.group	JBoss by Red Hat
        JBoss Tools EGit Integration (Experimental)	2.3.0.v20120510-2034-H93-Beta3	org.jboss.tools.openshift.egit.integration.feature.feature.group	JBoss by Red Hat
        JBoss Tools Java Standard Tools	3.3.0.v20120504-2056-H66-Beta3	org.jboss.tools.jst.feature.feature.group	null
        JBoss Tools JDT Extensions	3.3.0.v20120510-2001-H58-Beta3	org.jboss.tools.common.jdt.feature.feature.group	JBoss by Red Hat
        JBoss Tools JSF	3.3.0.v20120504-0520-H88-Beta3	org.jboss.tools.jsf.feature.feature.group	JBoss by Red Hat
        JBoss Tools RichFaces	3.3.0.v20120504-0520-H88-Beta3	org.jboss.tools.richfaces.feature.feature.group	JBoss by Red Hat
        JBoss Tools Source Lookup	1.3.0.v20120514-1625-H96-Beta3	org.jboss.tools.maven.sourcelookup.feature.feature.group	JBoss by Red Hat
        JBoss Tools Usage Reporting	1.1.0.v20120504-2022-H52-Beta3	org.jboss.tools.usage.feature.feature.group	JBoss by Red Hat
        JBoss Tools Visual Page Editor	3.3.0.v20120504-2124-H75-Beta3	org.jboss.tools.vpe.feature.feature.group	null
        JBoss WebServices Tools	1.2.2.v20120514-1752-H106-Beta3	org.jboss.tools.ws.feature.feature.group	JBoss by Red Hat
      

      – Error Details –
      Date: Tue Jun 05 13:42:04 WST 2012
      Message: Failed while processing Java changes
      Severity: Error
      Product: Eclipse 1.4.2.20120131-1457 (org.eclipse.epp.package.jee.product)
      Plugin: org.jboss.tools.ws.jaxrs.core
      Session Data:
      eclipse.buildId=M20120208-0800
      java.version=1.7.0_b147-icedtea
      java.vendor=Oracle Corporation
      BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
      Framework arguments: -product org.eclipse.epp.package.jee.product
      Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

      Exception Stack Trace:

      Java Model Exception: Java Model Status [[Working copy] package-info.java [in au.com.postnewspapers.nymm.database [in src/main/java [in nymm]]] does not exist]
      	at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:505)
      	at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:246)
      	at org.eclipse.jdt.internal.core.SourceRefElement.generateInfos(SourceRefElement.java:107)
      	at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:518)
      	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255)
      	at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
      	at org.eclipse.jdt.internal.core.SourceRefElement.getSourceRange(SourceRefElement.java:218)
      	at org.jboss.tools.ws.jaxrs.core.jdt.JavaAnnotationsVisitor.<init>(JavaAnnotationsVisitor.java:75)
      	at org.jboss.tools.ws.jaxrs.core.jdt.JdtUtils.resolveAnnotation(JdtUtils.java:311)
      	at org.jboss.tools.ws.jaxrs.core.jdt.JdtUtils.resolveAnnotation(JdtUtils.java:371)
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.domain.JaxrsElementFactory.createApplication(JaxrsElementFactory.java:305)
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.builder.JavaElementChangedProcessor.processAddition(JavaElementChangedProcessor.java:259)
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.builder.JavaElementChangedProcessor.processAffectedElement(JavaElementChangedProcessor.java:126)
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.builder.JavaElementChangedProcessor.processAffectedJavaElements(JavaElementChangedProcessor.java:75)
      	at org.jboss.tools.ws.jaxrs.core.internal.metamodel.builder.JaxrsMetamodelBuildJob.run(JaxrsMetamodelBuildJob.java:56)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

        Attachments

          Activity

            People

            Assignee:
            xcoulon@redhat.com Xavier Coulon
            Reporter:
            ringerc_jira Craig Ringer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: