Announcement Announcement Module
Collapse
No announcement yet.
spring-data-neo4j: hello-worlds example broken Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-data-neo4j: hello-worlds example broken

    This is what I get when running the hello-worlds example from a fresh repository clone:

    Code:
    cd spring-data-neo4j-examples/hello-worlds
    mvn clean package exec:java
    At home on: World{name='Mercury, moons=0}
    found home world: World{name='Mercury, moons=0}
    found worlds beyond: World{name='Mercury, moons=0}

    I don't think that's expected, or is it?

    Regards,
    Harald

  • #2
    Right now, that is what's expected, but you're right it could be a much better example.

    Can you raise a JIRA issue on http://spring.neo4j.org/issues

    Thanks

    Comment


    • #3
      Ok, got it. Only Mars and Earth are connected and Mercury is isolated.
      I was somehow expecting to see a list of all worlds returned from the demo.

      Not exactly the best of marketing when the Hello World(s) demo isn't foolproof ;-)

      Best regards,
      Harald

      Comment


      • #4
        Yep, you're right. It should rather be:

        1) find earth by name
        2) find worlds connected to earth
        3) find all worlds

        Something like that

        Comment


        • #5
          Done: https://jira.springsource.org/browse/DATAGRAPH-175

          Comment


          • #6
            I am not an expert in git, I've tried to download the master branch as a zip file (web).
            The helloworlds example is not working for me (App class is missing).

            Is this my local problem and I should take GA instead, or something was deleted by mistake during last update 4 months ago?

            Thanks,
            Andriy

            Comment


            • #7
              Where did you pull it from?

              Michael

              Comment


              • #8
                Originally posted by MichaelHunger View Post
                Where did you pull it from?

                Michael
                Hi Michael,

                Here is my steps:
                1. Open in browser this URL: https://github.com/SpringSource/spring-data-neo4j
                2. The branch "master" selected in dropdown by default;
                3. Click on "ZIP" button (next to "Clone in Windows");
                4. Extract downloaded archive, navigate to spring-data-neo4j-examples\hello-worlds\src\main\java\org\springframework\data\neo4 j\examples\hellograph\ ;
                5. The App.java is missing in this folder, so the mvn clean package exec:java command explained in spring-data-neo4j-examples\hello-worlds\README.md will produce an error;

                Thanks,
                Andriy

                Comment


                • #9
                  Andriy,

                  You are right, exec:java doesn't work as we no longer have a driver class.

                  We do however have some tests that better illustrate a Hello-World example: https://github.com/SpringSource/spri...rviceTest.java

                  I'll get the documentation fixed.

                  Thanks,

                  Lasse

                  Comment


                  • #10
                    This still seems broken...

                    "mvn clean test" as in the documentation gives me:

                    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

                    When I try to run the unit tests from within STS, I get an IllegalStateException: Failed to load ApplicationContext

                    What's the deal?

                    Thanks!

                    - Daniel


                    Originally posted by lassewesth View Post
                    Andriy,

                    You are right, exec:java doesn't work as we no longer have a driver class.

                    We do however have some tests that better illustrate a Hello-World example: https://github.com/SpringSource/spri...rviceTest.java

                    I'll get the documentation fixed.

                    Thanks,

                    Lasse

                    Comment


                    • #11
                      It seems the problem was that it was missing this dependency:

                      <dependency>
                      <groupId>org.hibernate</groupId>
                      <artifactId>hibernate-validator</artifactId>
                      <version>4.2.0.Final</version>
                      </dependency>

                      After adding it to the pom.xml file, it started working.

                      - Daniel

                      Comment

                      Working...
                      X