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

JAX-RS Builder: Errors running builder 'JAX-RS Builder' on project 'openshift-helloworld'.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.3.0.M4
    • Component/s: webservices
    • Labels:
      None
    • Environment:
      Windows 7 64-bit, 32-bit Java 1.6

      Description

      Using OpenShift Express Tools to create a new project - and removing comments from the JBoss EE 6 dependency <artifactId>jboss-javaee-6.0</artifactId>

      Stack Trace:
      java.lang.NullPointerException
      at org.jboss.tools.ws.jaxrs.core.internal.builder.JaxrsMetamodelBuilder.visit(JaxrsMetamodelBuilder.java:148)
      at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:69)
      at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
      at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
      at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:80)
      at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:49)
      at org.jboss.tools.ws.jaxrs.core.internal.builder.JaxrsMetamodelBuilder.incrementalBuild(JaxrsMetamodelBuilder.java:141)
      at org.jboss.tools.ws.jaxrs.core.internal.builder.JaxrsMetamodelBuilder.build(JaxrsMetamodelBuilder.java:95)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

        Gliffy Diagrams

          Activity

          Hide
          maxandersen Max Rydahl Andersen added a comment -

          Xavier - Burr is running on windows could there be anything there causing such error ?

          Show
          maxandersen Max Rydahl Andersen added a comment - Xavier - Burr is running on windows could there be anything there causing such error ?
          Hide
          xcoulon Xavier Coulon added a comment -

          Burr, Max,

          I created a basic 'helloworld' app using the command line rhc tools, then imported the .../repo maven project in a new fresh workspace, then configured the JAX-RS support and finally uncommented the dependencies section in the pom.xml file.

          Although I could not reproduce the error during this process, I think I spotted the cause in the code : the 'resource.getFullPath().getFileExtension()' method returns null if the file has no extension.

          My guess is that a file without any extension was modified during the process and that the JAX-RS plugin caught the change and failed to process it :-/

          Burr, please let me know if the next nightly build fixes this bug on your machine, and... sorry about all that.

          /Xavier

          Show
          xcoulon Xavier Coulon added a comment - Burr, Max, I created a basic 'helloworld' app using the command line rhc tools, then imported the .../repo maven project in a new fresh workspace, then configured the JAX-RS support and finally uncommented the dependencies section in the pom.xml file. Although I could not reproduce the error during this process, I think I spotted the cause in the code : the 'resource.getFullPath().getFileExtension()' method returns null if the file has no extension. My guess is that a file without any extension was modified during the process and that the JAX-RS plugin caught the change and failed to process it :-/ Burr, please let me know if the next nightly build fixes this bug on your machine, and... sorry about all that. /Xavier
          Hide
          jjankovi Jaroslav Jankovič added a comment -

          I cannot reproduce on JBoss Tools 3.3.0 M4, no NPE has been thrown. Burr, please could you verify this?

          Show
          jjankovi Jaroslav Jankovič added a comment - I cannot reproduce on JBoss Tools 3.3.0 M4, no NPE has been thrown. Burr, please could you verify this?
          Hide
          jjankovi Jaroslav Jankovič added a comment -

          Burr and me are unable to reproduce the issue against JBDS 5.0.0 M4b. Problem seems to be resolved. Closing JIRA.

          Show
          jjankovi Jaroslav Jankovič added a comment - Burr and me are unable to reproduce the issue against JBDS 5.0.0 M4b. Problem seems to be resolved. Closing JIRA.

            People

            • Assignee:
              xcoulon Xavier Coulon
              Reporter:
              burrsutter Burr Sutter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development