spring-guides/gs-accessing-neo4j-data-rest — pull request #6 by diutsu (2014-04-26 21:46:47+00:00)
Title: Update spring-data-neo4j version to M1

So I was running against this error:
```
2014-04-26 22:37:55.084 INFO 16915 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/home/diutsu/sandbox/gs-accessing-neo4j-data-rest/complete/src/main/resources, file:/home/diutsu/sandbox/gs-accessing-neo4j-data-rest/complete/build/classes/main/, file:/home/diutsu/sandbox/gs-accessing-neo4j-data-rest/complete/build/resources/main, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-web/1.0.2.RELEASE/fb26276f8400658e15d571350c5b577dfe40567a/spring-boot-starter-web-1.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-neo4j/3.1.0.BUILD-SNAPSHOT/2d1fae3cfc18308d24f22ff92ebfbfceeb3816f6/spring-data-neo4j-3.1.0.BUILD-SNAPSHOT.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.hibernate/hibernate-validator/5.0.3.Final/e0fa071d3ced426a05fc1a59d788cb72a1659c3c/hibernate-validator-5.0.3.Final.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-rest-webmvc/2.0.2.RELEASE/2c87a7f69609046a3ef6da9cc9621176fd22c30d/spring-data-rest-webmvc-2.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter/1.0.2.RELEASE/a6cbc3adc8d95a0e5405d3c1ca30ad8e6bed1cf1/spring-boot-starter-1.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-tomcat/1.0.2.RELEASE/6aed407ba99a2820a6b615ee3accb27ba5ef4529/spring-boot-starter-tomcat-1.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.3.3/63b77400b5f1cf83a81823562c48d3120ef5518e/jackson-databind-2.3.3.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-web/4.0.3.RELEASE/4d5066f31ea4b9c58957bf8c0c213b13ed44c1c5/spring-web-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-webmvc/4.0.3.RELEASE/d6fd9778619ab87a41ae3aa879a5 Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repositoryExporterHandlerAdapter' defined in class org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.springframework.data.util.ClassTypeInformation.from(Ljava/lang/Class;)Lorg/springframework/data/util/TypeInformation;
3ee60f160c08/spring-webmvc-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-tx/3.2.8.RELEASE/af44bdd6dd44557f6a03021a7d2721bbf1708ec1/spring-tx-3.2.8.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aspects/3.2.8.RELEASE/993fac33f3af27c435b728e59d71f04db87b266f/spring-aspects-3.2.8.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjrt/1.7.4/e49a5c0acee8fd66225dc1d031692d132323417f/aspectjrt-1.7.4.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-commons/1.8.0.BUILD-SNAPSHOT/adf181ce13fab75ff83fa8d90856c6ca6253f4c5/spring-data-commons-1.8.0.BUILD-SNAPSHOT.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-cypher-dsl/2.0.1/519d317979935773646356ee2f7923090f7d53e8/neo4j-cypher-dsl-2.0.1.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j/2.0.2/a442973e3e559252619bc04ef6c69d74985dfaa4/neo4j-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-cypher/2.0.2/35e833916d8046afa1095f7996a51be7b88f6e92/neo4j-cypher-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/javax.validation/validation-api/1.1.0.Final/8613ae82954779d518631e05daa73a6a954817d5/validation-api-1.1.0.Final.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.jboss.logging/jboss-logging/3.1.1.GA/7fb1a7eb7ff1d15cac1802510fee65c7ca31a869/jboss-logging-3.1.1.GA.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/com.fasterxml/classmate/1.0.0/434efef28c81162b17c540e634cffa3bd9b09b4c/classmate-1.0.0.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.data/spring-data-rest-core/2.0.2.RELEASE/5ce1944206f5d4d77791c441f597f23d8f6908a7/spring-data-rest-core-2.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot/1.0.2.RELEASE/8d1a06e468b16577075db27123091758b6f880af/spring-boot-1.0.2.RELEASE.jar, file:/home/diutsu/.gradl at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
e/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-autoconfigure/1.0.2.RELEASE/3a70e3021aec334ee8b1a454ea791d27997a7191/spring-boot-autoconfigure-1.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.boot/spring-boot-starter-logging/1.0.2.RELEASE/47a20c5bad47916ca99d768782de12c54b707a00/spring-boot-starter-logging-1.0.2.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.13/73cbb494a912866c4c831a178c3a2a9169f4eaad/snakeyaml-1.13.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-core/7.0.52/b4afc2f8e00a43c8dd6bb289473ad1c30de59909/tomcat-embed-core-7.0.52.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-el/7.0.52/d5376b041a0c56c4d7e6c21d91ce9add9cb0283c/tomcat-embed-el-7.0.52.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.apache.tomcat.embed/tomcat-embed-logging-juli/7.0.52/3c81b2aee6d0c6d2eafa18ad9c7c9144d302c675/tomcat-embed-logging-juli-7.0.52.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-aop/4.0.3.RELEASE/dcedf5329d7092d66cc9d2496687a5f29d883eb6/spring-aop-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.aspectj/aspectjweaver/1.7.4/d9d511e417710492f78bb0fb291a629d56bf4216/aspectjweaver-1.7.4.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-kernel/2.0.2/ade5d9ca8b9da6c389b3a61ddc504eb3bc0630df/neo4j-kernel-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-lucene-index/2.0.2/f9dc9c709081e0aabb35341b33c10287bdc5db12/neo4j-lucene-index-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-graph-algo/2.0.2/3c2e767e841e349424ee8c030297f0303723c9dd/neo4j-graph-algo-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-udc/2.0.2/ab08ac758e871fc519b27c413b9aa35dfc096b79/neo4j-udc-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:304)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
graph-matching/2.0.2/ee6f2db113e9ef4816dd840f9997a98d9915ac35/neo4j-graph-matching-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-jmx/2.0.2/ed06922b202eb2e08344ccea054e8f25972427dd/neo4j-jmx-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-cypher-commons/2.0.2/4e5d15a9c7f9a13f31f24a6b436cf732b25e17b7/neo4j-cypher-commons-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-cypher-compiler-1.9/2.0.2/5ce924e83934ea908944804ef1ea5121f39b3c80/neo4j-cypher-compiler-1.9-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.neo4j/neo4j-cypher-compiler-2.0/2.0.2/2f871e4ada92b6051aa7b99f4b346a0825903399/neo4j-cypher-compiler-2.0-2.0.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/com.googlecode.concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.3.1/584a998286ec5b62a3ee115e29410e4233b76346/concurrentlinkedhashmap-lru-1.3.1.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.scala-lang/scala-library/2.10.3/21d99cee3d3e478255ef9fcc90b571fb2ab074fc/scala-library-2.10.3.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.hateoas/spring-hateoas/0.9.0.RELEASE/18872c263352a7d240d3dd3f6a0560f89a2fa2c5/spring-hateoas-0.9.0.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework.plugin/spring-plugin-core/1.0.0.RELEASE/c2822de989fc30e1ebf88eed3839af0d696af091/spring-plugin-core-1.0.0.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.atteo/evo-inflector/1.0.1/a66d33e82d12f4a96542198ba1a58c87fb30059f/evo-inflector-1.0.1.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.slf4j/jul-to-slf4j/1.7.7/def21bc1a6e648ee40b41a84f1db443132913105/jul-to-slf4j-1.7.7.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.slf4j/log4j-over-slf4j/1.7.7/d521cb26a9c4407caafcec302e7804b048b07cea/log4j-over-slf4j-1.7.7.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-classic/1.1.2/b316e9737eea25e9ddd6d88e at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:300)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:703)
aeee76878045c6b2/logback-classic-1.1.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/aopalliance/aopalliance/1.0/235ba8b489512805ac13a8f9ea77a1ca5ebe3e8/aopalliance-1.0.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1/aabab3165b8ea936b9360abbf448459c0d04a5a4/geronimo-jta_1.1_spec-1.1.1.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.apache.lucene/lucene-core/3.6.2/9ec77e2507f9cc01756964c71d91efd8154a8c47/lucene-core-3.6.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.parboiled/parboiled-scala_2.10/1.1.6/bc93b215151f7dc42653f3eb0243b3130a7e1e11/parboiled-scala_2.10-1.1.6.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/net.sf.opencsv/opencsv/2.0/97a2765dc2db1083e7c5afcc210db5f7cad3b442/opencsv-2.0.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.objenesis/objenesis/1.3/dc13ae4faca6df981fc7aeb5a522d9db446d5d50/objenesis-1.3.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/ch.qos.logback/logback-core/1.1.2/2d23694879c2c12f125dac5076bdfd5d771cc4cb/logback-core-1.1.2.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.parboiled/parboiled-core/1.1.6/11bd0c34fc6ac3c3cbf440ab8180cc6422c044e9/parboiled-core-1.1.6.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-annotations/2.3.0/f5e853a20b60758922453d56f9ae1e64af5cb3da/jackson-annotations-2.3.0.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-core/2.3.3/7d8c5d79cc99995e21e6f955857312d8409f02a1/jackson-core-2.3.3.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-beans/4.0.3.RELEASE/41eabd53fd4ba5ba2b2d8af6c256a3741f65c2f3/spring-beans-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context/4.0.3.RELEASE/782a71a312dc307fa531023aa66247b9b4a109d/spring-context-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:760)
/4.0.3.RELEASE/138d28200d97f4affe9ccaa47fab54718b438319/spring-core-4.0.3.RELEASE.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/commons-logging/commons-logging/1.1.3/f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f/commons-logging-1.1.3.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.slf4j/jcl-over-slf4j/1.7.7/56003dcd0a31deea6391b9e2ef2f2dc90b205a92/jcl-over-slf4j-1.7.7.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.slf4j/slf4j-api/1.7.7/2b8019b6249bb05d81d3a3094e468753e2b21311/slf4j-api-1.7.7.jar, file:/home/diutsu/.gradle/caches/modules-2/files-2.1/org.springframework/spring-expression/4.0.3.RELEASE/40b25b3a693cb4cc382ddf2e69ff1b29c75a2e7d/spring-expression-4.0.3.RELEASE.jar]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
2014-04-26 22:37:55.085 INFO 16915 --- [ main] utoConfigurationReportLoggingInitializer :
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:120)

at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:648)
Error starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:311)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:909)

at org.spmework.boot.SpringApplication.run(SpringApplication.java:898)
at hello.Application.main(Application.java:30)
Caused by: java.lang.NoSuchMethodError: org.springframework.data.util.ClassTypeInformation.from(Ljava/lang/Class;)Lorg/springframework/data/util/TypeInformation;
at org.springframework.data.rest.webmvc.ResourceProcessorHandlerMethodReturnValueHandler.(ResourceProcessorHandlerMethodReturnValueHandler.java:52)
at org.springframework.data.rest.webmvc.ResourceProcessorInvokingHandlerAdapter.afterPropertiesSet(ResourceProcessorInvokingHandlerAdapter.java:75)
at org.springframework.data.rest.webmvc.RepositoryRestHandlerAdapter.afterPropertiesSet(RepositoryRestHandlerAdapter.java:45)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1612)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1549)
... 15 more
:bootRun FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':bootRun'.
> Process 'command '/home/diutsu/programs/jdk1.7.0_55/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
```

Changed the spring-data-neo4j version form BUILD-SNAPSHOT to M1 and voilá it worked
Oh, and then I noticed that the REST test example was using 1-based index, and my queries where returning 0-based, not sure what is the expected behaviour, but decided to send the changes the to readme too.