Results 1 to 10 of 10

Thread: spring-data graph HelloWorlds compilation problems

  1. #1
    Join Date
    May 2011
    Posts
    6

    Default 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. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    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

  3. #3
    Join Date
    May 2011
    Posts
    6

    Default

    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.

  4. #4
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

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

    Michael

  5. #5
    Join Date
    May 2011
    Posts
    6

    Default

    i did... nothing...

  6. #6
    Join Date
    May 2011
    Posts
    6

    Default

    Anyone can help me?

  7. #7
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    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

  8. #8
    Join Date
    May 2011
    Posts
    6

    Default

    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.

  9. #9
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

    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

  10. #10
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    667

    Thumbs up

    Quote 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).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •