Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.3.0.M3
    • Fix Version/s: 3.3.0.M4
    • Component/s: webservices
    • Labels:
      None
    • Environment:
      Windows 7 64 bit
      Eclipse Indigo 3.7 SR1 64 bit
      Java 1.6.0_26 64 bit

      Description

      When restarting eclipse, it rebuilds the whole workspace and I encounter the following error:

      Errors occurred during the build.
      Errors running builder 'JAX-RS Builder' on project 'some-project-name'.
      org.eclipse.jdt.internal.core.TypeParameter cannot be cast to org.eclipse.jdt.core.IType

      Looking at the logs, I found the following:
      !ENTRY org.eclipse.core.resources 4 75 2011-09-29 18:28:26.111
      !MESSAGE Errors occurred during the build.
      !SUBENTRY 1 org.jboss.tools.ws.jaxrs.core 4 75 2011-09-29 18:28:26.111
      !MESSAGE Errors running builder 'JAX-RS Builder' on project 'some-project-name'.
      !STACK 0
      java.lang.ClassCastException: org.eclipse.jdt.internal.core.TypeParameter cannot be cast to org.eclipse.jdt.core.IType
      at org.jboss.tools.ws.jaxrs.core.metamodel.ResourceMethod.merge(ResourceMethod.java:103)
      at org.jboss.tools.ws.jaxrs.core.metamodel.ResourceMethod.<init>(ResourceMethod.java:58)
      at org.jboss.tools.ws.jaxrs.core.metamodel.Resource.mergeMethods(Resource.java:210)
      at org.jboss.tools.ws.jaxrs.core.metamodel.Resource.merge(Resource.java:160)
      at org.jboss.tools.ws.jaxrs.core.metamodel.Resource$ResourceBuilder.build(Resource.java:101)
      at org.jboss.tools.ws.jaxrs.core.metamodel.Resources.addFrom(Resources.java:53)
      at org.jboss.tools.ws.jaxrs.core.metamodel.Metamodel.addElements(Metamodel.java:221)
      at org.jboss.tools.ws.jaxrs.core.internal.builder.JaxrsMetamodelBuilder.fullBuild(JaxrsMetamodelBuilder.java:184)
      at org.jboss.tools.ws.jaxrs.core.internal.builder.JaxrsMetamodelBuilder.build(JaxrsMetamodelBuilder.java:92)
      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)

      Not sure what other information may be important here, so please let me know.

        Gliffy Diagrams

          Activity

          Hide
          jjankovi Jaroslav Jankovič added a comment -

          Sorry, M4 is probably accesible only for QA. Could you therefore provide steps, or is it too much workspace specific?

          Show
          jjankovi Jaroslav Jankovič added a comment - Sorry, M4 is probably accesible only for QA. Could you therefore provide steps, or is it too much workspace specific?
          Hide
          webron Ron Ratovsky added a comment -

          I was given a link to test out M4 for now (before it's publicly released), and I imagine I could test it over the weekend.

          From what I gathered from Xavier, the issue was that some of the REST methods returned typed objects which the plugin didn't handle very well. for example:
          @Get
          public List<MyFunkyLittleClass> doSomething()

          {...}

          Unfortunately, I don't have an actual test-case to give out as currently I only have the problem in our product's configuration and that's not something I can release for testing.

          Show
          webron Ron Ratovsky added a comment - I was given a link to test out M4 for now (before it's publicly released), and I imagine I could test it over the weekend. From what I gathered from Xavier, the issue was that some of the REST methods returned typed objects which the plugin didn't handle very well. for example: @Get public List<MyFunkyLittleClass> doSomething() {...} Unfortunately, I don't have an actual test-case to give out as currently I only have the problem in our product's configuration and that's not something I can release for testing.
          Hide
          jjankovi Jaroslav Jankovič added a comment -

          I cannot reproduce on 3.3.0 M3 on 64-bit Windows. Ron could you try M4 and if it's ok, then close this JIRA? Thanks.

          Show
          jjankovi Jaroslav Jankovič added a comment - I cannot reproduce on 3.3.0 M3 on 64-bit Windows. Ron could you try M4 and if it's ok, then close this JIRA? Thanks.
          Hide
          webron Ron Ratovsky added a comment -

          Okay, tested it with the latest M4 build, and the problem seems to have been resolved. Thanks.

          Show
          webron Ron Ratovsky added a comment - Okay, tested it with the latest M4 build, and the problem seems to have been resolved. Thanks.
          Hide
          xcoulon Xavier Coulon added a comment -

          As seen with Ron who tested with the M4b build, the issue can be closed.

          Show
          xcoulon Xavier Coulon added a comment - As seen with Ron who tested with the M4b build, the issue can be closed.

            People

            • Assignee:
              maxandersen Max Rydahl Andersen
              Reporter:
              webron Ron Ratovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development