Announcement Announcement Module
Collapse
No announcement yet.
spring-data graph HelloWorlds compilation problems Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-data graph HelloWorlds compilation problems

    Hi all,
    i had just downloaded the last version of STS (2.6.1) and the zip package of examples.
    Importing hello-worlds project (or another) STS IDE doens't compile the domain object:

    Code:
        @RelatedTo(type = "REACHABLE_BY_ROCKET", elementClass = World.class, direction = Direction.BOTH)
    The error is:

    Type mismatch: cannot convert from Class<World> to Class<? extends NodeBacked>

    Aspect is enabled but seams that it doesn't recognize the @NodeEntity annotation.

    Can someone help me?

  • #2
    Could you please try to update the AJDT plugin to the dev-Version. The AspectJ team fixed that error (which is only a editor visualization problem) recently.

    http://download.eclipse.org/tools/ajdt/36/dev/update

    Please report back if it helped.
    Thanks so much.

    Michael

    Comment


    • #3
      done, but it still doesn't work.
      This is the version of ajdt:
      AJDT Plugin Development Tools 2.1.3.e36x-20110510-1300 org.eclipse.ajdt.pde.build.feature.group

      Thanks so much for the reply.

      Comment


      • #4
        Did you rebuild the project? Andy Clement said this is necessary to clean some caches.

        Michael

        Comment


        • #5
          i did... nothing...

          Comment


          • #6
            Anyone can help me?

            Comment


            • #7
              I just downloaded the latest version of STS and imported the project (import existing maven projects!), then the errors you describe came up.

              After that I updated the AJDT using "install software" from this URL: http://download.eclipse.org/tools/ajdt/36/dev/update

              AspectJ Development Tools 2.1.3.e36x-20110510-1300 org.eclipse.ajdt.feature.group
              Maven Integration for AJDT (Optional) 0.10.0.20100209-0800 org.maven.ide.eclipse.ajdt.feature.feature.group

              After restarting the project still showed the errors until I rebuild it. Just clicked on on of the AJ arrows and it said that there were no references available until I rebuilt the project. So I clicked on that popup menu item and voila all the errors were gone.

              Please try that


              Cheers

              Michael

              Comment


              • #8
                I'm sorry Michael but i can't find the AJ arrows that you clicked and show you the magic popup mený...
                Can you explain me where i had to find it? Directly in the code of the World class? if yes and you mean one of the red arrows (in the breackpoint place...), that doesn't show me anyone popup.

                Comment


                • #9
                  Yes, the red little arrows.

                  You can send me a PM and then we can figure out a way to walk through this. Perhaps using teamviewer or http://join.me.

                  Cheers

                  Michael

                  Comment


                  • #10
                    Originally posted by MichaelHunger View Post
                    I updated the AJDT using "install software" from this URL: http://download.eclipse.org/tools/ajdt/36/dev/update

                    AspectJ Development Tools 2.1.3.e36x-20110510-1300 org.eclipse.ajdt.feature.group
                    Thanks Michael, that fixed the AspectJ problems that STS was displaying in my Spring Data Neo4J project (which compiled and ran OK from the command line).

                    Comment

                    Working...
                    X