Error creating Repository-Bean with spring-data-neo4j

479 views
Skip to first unread message

Martin Prinz

unread,
May 9, 2012, 7:05:35 AM5/9/12
to Neo4j
Hi experts,

I'm trying to build my first small application and getting errors. Its
my first programming-project since 3 years and now I have to learn
neo4j, spring and maven :-)

I'm using Neo4J Server and want to access via REST. This works fine -
i tested it with the jersey-api-client. I think that there is a
problem with my pom.xml.

I would be so thankful for help. I'm spending now 2 days on that
problem. Thank you in advance!

You find my error-message and the end of the discussion.

This is my Class with main-function:

public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );

final FileSystemXmlApplicationContext ctx = new
FileSystemXmlApplicationContext("src/config/applicationContext.xml");

}
}

This is the applicationContext.xml:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:neo4j="http://www.springframework.org/schema/data/neo4j"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/data/neo4j
http://www.springframework.org/schema/data/neo4j/spring-neo4j-2.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">


<context:annotation-config/>
<context:component-scan base-package="com.project.app">
<context:exclude-filter type="annotation"
expression="org.springframework.stereotype.Controller"/>
</context:component-scan>

<!-- REST Connection to Neo4j server -->
<bean id="graphDatabaseService"
class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase">
<constructor-arg value="http://192.168.178.42:7474/db/data"/>
</bean>

<!-- Neo4j configuration (creates Neo4jTemplate) -->
<neo4j:config storeDirectory="graphDatabaseService"/>

<!-- Package w/ automagic repositories -->
<neo4j:repositories base-package="repo"/>

<bean id="BENU" class="controller.UserController"></bean>

</beans>


My Controller:
public class UserController {

@Autowired
private UserRepository benu;

public void speicherBenutzer(){
User b = new User("123","Peter");
benu.save(b);
}
}

My Repository:
public interface UserRepository extends GraphRepository<User> {

}

My User:
@NodeEntity
public class User {

@GraphId Long id;

@Indexed private String login;

private String fullName;

private Date lastLogin;

@RelatedTo(type = "knows", direction = Direction.OUTGOING)
Set<User> friends;

public User() {}

public User(String login, String fullName) {
this.login = login;
this.fullName = fullName;
this.lastLogin = new Date();
this.friends = new HashSet<User>();
}

public void knows(User user) {
friends.add(user);
}

public String getLogin() {
return login;
}

public void setLogin(String login) {
this.login = login;
}

public String getFullName() {
return fullName;
}

public void setFullName(String fullName) {
this.fullName = fullName;
}

public Date getLastLogin() {
return lastLogin;
}

public void setLastLogin(Date lastLogin) {
this.lastLogin = lastLogin;
}

public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}

public Set<User> getFriends() {
return friends;
}

public void setFriends(Set<User> friends) {
this.friends = friends;
}

public void setId(Long id) {
this.id = id;
}
}

Here are my dependencies from pom.xml:
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-kernel</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-cypher</artifactId>
<version>1.7</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-neo4j-rest</artifactId>
<version>2.1.0.BUILD-SNAPSHOT</version>
<exclusions>
<exclusion>
<artifactId>neo4j-rest-graphdb</artifactId>
<groupId>org.neo4j</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjrt</artifactId>
<version>1.6.12</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.1.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>opensymphony</groupId>
<artifactId>sitemesh</artifactId>
<version>2.4.2</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-validator</artifactId>
<version>4.0.2.GA</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>2.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>2.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.6.1</version>
</dependency>
</dependencies>

This is my error-message:

Hello World!
43 [main] INFO
org.springframework.context.support.FileSystemXmlApplicationContext -
Refreshing
org.springframework.context.support.FileSystemXmlApplicationContext@485fcf29:
startup date [Wed May 09 12:37:55 CEST 2012]; root of context
hierarchy
87 [main] INFO
org.springframework.beans.factory.xml.XmlBeanDefinitionReader -
Loading XML bean definitions from file [K:\project\workspace\app1\src
\config\applicationContext.xml]
271 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'graphDatabaseService': replacing
[Generic bean: class
[org.springframework.data.neo4j.rest.SpringRestGraphDatabase]; scope=;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null; destroyMethodName=null;
defined in file [K:\project\workspace\app1\src\config
\applicationContext.xml]] with [Root bean: class
[org.neo4j.kernel.EmbeddedGraphDatabase]; scope=singleton;
abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
autowireCandidate=true; primary=false; factoryBeanName=null;
factoryMethodName=null; initMethodName=null;
destroyMethodName=shutdown]
420 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'neo4jTemplate': replacing [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jTemplate; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jTemplate; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
420 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'neo4jMappingContext': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jMappingContext; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jMappingContext; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
421 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'mappingInfrastructure': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=mappingInfrastructure; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=mappingInfrastructure; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
422 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean
'relationshipTypeRepresentationStrategy': replacing [Root bean: class
[null]; scope=; abstract=false; lazyInit=false; autowireMode=3;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipTypeRepresentationStrategy;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipTypeRepresentationStrategy;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
422 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'nodeTypeRepresentationStrategy':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeTypeRepresentationStrategy; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeTypeRepresentationStrategy; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
423 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean
'typeRepresentationStrategyFactory': replacing [Root bean: class
[null]; scope=; abstract=false; lazyInit=false; autowireMode=3;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=typeRepresentationStrategyFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=typeRepresentationStrategyFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
424 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'entityStateHandler': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityStateHandler; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityStateHandler; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
424 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'nodeTypeMapper': replacing [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeTypeMapper; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeTypeMapper; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
425 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'relationshipTypeMapper':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipTypeMapper; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipTypeMapper; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
426 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'entityFetchHandler': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityFetchHandler; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityFetchHandler; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
426 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'nodeStateTransmitter': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeStateTransmitter; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeStateTransmitter; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
427 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'neo4jConversionService':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jConversionService; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jConversionService; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
428 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'graphRelationshipInstantiator':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphRelationshipInstantiator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphRelationshipInstantiator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
428 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'graphEntityInstantiator':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphEntityInstantiator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphEntityInstantiator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
429 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'entityAlias': replacing [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityAlias; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=entityAlias; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
430 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'relationshipEntityStateFactory':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipEntityStateFactory; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipEntityStateFactory; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
430 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'nodeEntityStateFactory':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeEntityStateFactory; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeEntityStateFactory; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
431 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean
'nodeDelegatingFieldAccessorFactory': replacing [Root bean: class
[null]; scope=; abstract=false; lazyInit=false; autowireMode=3;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeDelegatingFieldAccessorFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=nodeDelegatingFieldAccessorFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
432 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean
'relationshipDelegatingFieldAccessorFactory': replacing [Root bean:
class [null]; scope=; abstract=false; lazyInit=false; autowireMode=3;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipDelegatingFieldAccessorFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=relationshipDelegatingFieldAccessorFactory;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
432 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'neo4jTransactionManager':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jTransactionManager; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=neo4jTransactionManager; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
433 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean
'indexCreationMappingEventListener': replacing [Root bean: class
[null]; scope=; abstract=false; lazyInit=false; autowireMode=3;
dependencyCheck=0; autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=indexCreationMappingEventListener;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=indexCreationMappingEventListener;
initMethodName=null; destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
434 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'graphDatabase': replacing [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphDatabase; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=graphDatabase; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
435 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'configurationCheck': replacing
[Root bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=configurationCheck; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=configurationCheck; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
435 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'persistenceExceptionTranslator':
replacing [Root bean: class [null]; scope=; abstract=false;
lazyInit=false; autowireMode=3; dependencyCheck=0;
autowireCandidate=true; primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=persistenceExceptionTranslator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=persistenceExceptionTranslator; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
436 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Overriding bean definition for bean 'indexProvider': replacing [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=indexProvider; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration] with [Root
bean: class [null]; scope=; abstract=false; lazyInit=false;
autowireMode=3; dependencyCheck=0; autowireCandidate=true;
primary=false;
factoryBeanName=org.springframework.data.neo4j.config.Neo4jConfiguration#0;
factoryMethodName=indexProvider; initMethodName=null;
destroyMethodName=(inferred); defined in class
org.springframework.data.neo4j.config.Neo4jConfiguration]
593 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1395dd5b:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,graphDatabaseService,org.springframework.context.annotation.ConfigurationClassPostProcessor#0,org.springframework.data.neo4j.config.Neo4jConfiguration#0,userRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,BENU,org.springframework.context.annotation.ConfigurationClassPostProcessor
$ImportAwareBeanPostProcessor#0,neo4jTemplate,neo4jMappingContext,mappingInfrastructure,relationshipTypeRepresentationStrategy,nodeTypeRepresentationStrategy,typeRepresentationStrategyFactory,entityStateHandler,nodeTypeMapper,relationshipTypeMapper,entityFetchHandler,nodeStateTransmitter,neo4jConversionService,graphRelationshipInstantiator,graphEntityInstantiator,entityAlias,relationshipEntityStateFactory,nodeEntityStateFactory,nodeDelegatingFieldAccessorFactory,relationshipDelegatingFieldAccessorFactory,neo4jTransactionManager,indexCreationMappingEventListener,graphDatabase,configurationCheck,persistenceExceptionTranslator,indexProvider,org.springframework.context.annotation.ConfigurationClassPostProcessor
$ImportAwareBeanPostProcessor#1]; root of factory hierarchy
09.05.2012 12:37:56
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
doInternalRecovery
INFO: Non clean shutdown detected on log [K:\project\workspace
\app1\graphDatabaseService\nioneo_logical.log.1]. Recovery started ...
09.05.2012 12:37:56
org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog
doInternalRecovery
INFO: Non clean shutdown detected on log [K:\project\workspace
\app1\graphDatabaseService\index\lucene.log.1]. Recovery started ...
1905 [main] INFO
org.springframework.transaction.jta.JtaTransactionManager - Using JTA
UserTransaction:
org.neo4j.kernel.impl.transaction.UserTransactionImpl@6818c458
1905 [main] INFO
org.springframework.transaction.jta.JtaTransactionManager - Using JTA
TransactionManager:
org.neo4j.kernel.impl.transaction.SpringTransactionManager@3202a2cc
2186 [main] INFO
org.springframework.beans.factory.support.DefaultListableBeanFactory -
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1395dd5b:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,graphDatabaseService,org.springframework.context.annotation.ConfigurationClassPostProcessor#0,org.springframework.data.neo4j.config.Neo4jConfiguration#0,userRepository,org.springframework.data.repository.core.support.RepositoryInterfaceAwareBeanPostProcessor#0,BENU,org.springframework.context.annotation.ConfigurationClassPostProcessor
$ImportAwareBeanPostProcessor#0,neo4jTemplate,neo4jMappingContext,mappingInfrastructure,relationshipTypeRepresentationStrategy,nodeTypeRepresentationStrategy,typeRepresentationStrategyFactory,entityStateHandler,nodeTypeMapper,relationshipTypeMapper,entityFetchHandler,nodeStateTransmitter,neo4jConversionService,graphRelationshipInstantiator,graphEntityInstantiator,entityAlias,relationshipEntityStateFactory,nodeEntityStateFactory,nodeDelegatingFieldAccessorFactory,relationshipDelegatingFieldAccessorFactory,neo4jTransactionManager,indexCreationMappingEventListener,graphDatabase,configurationCheck,persistenceExceptionTranslator,indexProvider,org.springframework.context.annotation.ConfigurationClassPostProcessor
$ImportAwareBeanPostProcessor#1]; root of factory hierarchy
Exception in thread "main"
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'BENU': Injection of autowired dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not
autowire field: private repo.UserRepository
controller.UserController.benu; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userRepository': FactoryBean threw exception
on object creation; nested exception is java.lang.NoSuchMethodError:
org.springframework.data.repository.core.RepositoryMetadata.getDomainType()Ljava/
lang/Class;
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:
287)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:
1106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
517)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:294)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
225)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
291)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
193)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
585)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
913)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
464)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:
140)
at
org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:
84)
at com.project.app.app1.App.main(App.java:27)
Caused by: org.springframework.beans.factory.BeanCreationException:
Could not autowire field: private repo.UserRepository
controller.UserController.benu; nested exception is
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'userRepository': FactoryBean threw exception
on object creation; nested exception is java.lang.NoSuchMethodError:
org.springframework.data.repository.core.RepositoryMetadata.getDomainType()Ljava/
lang/Class;
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:
506)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:
87)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:
284)
... 13 more
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'userRepository': FactoryBean threw
exception on object creation; nested exception is
java.lang.NoSuchMethodError:
org.springframework.data.repository.core.RepositoryMetadata.getDomainType()Ljava/
lang/Class;
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:
149)
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:
102)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:
1442)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
248)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
193)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:
848)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:
790)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:
707)
at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:
478)
... 15 more
Caused by: java.lang.NoSuchMethodError:
org.springframework.data.repository.core.RepositoryMetadata.getDomainType()Ljava/
lang/Class;
at
org.springframework.data.neo4j.repository.GraphRepositoryFactory.getRepositoryBaseClass(GraphRepositoryFactory.java:
86)
at
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepositoryInformation(RepositoryFactorySupport.java:
166)
at
org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:
127)
at
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:
114)
at
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.getObject(RepositoryFactoryBeanSupport.java:
38)
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:
142)
... 23 more

Peter Neubauer

unread,
May 11, 2012, 8:32:06 AM5/11/12
to ne...@googlegroups.com
Martin,
have you tried during the last days? Michael has been updating quite a
lot of small things in there, so SDN should work better with Neo4j 1.7
now?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

If you can write, you can code - @coderdojomalmo
If you can sketch, you can use a graph database - @neo4j
Reply all
Reply to author
Forward
0 new messages