Hi,
I'm having a problem with a findBy method, in one of my repositories.
@NodeEntity
public class Owner {
@RelatedTo( direction = Direction.OUTGOING ) // this changes nothing
private Principal principal;
...
}
@NodeEntity
public class Principal {
...
}

public interface IOwnerNeo4JDAO extends GraphRepository< Owner >{
Owner findByPrincipal( final Principal principal );
}

So, pretty straightforward, only the method results in the following exception:

java.lang.IllegalArgumentException: Index 0 not valid
at org.springframework.data.neo4j.repository.query.Cy pherQueryBuilder.getPartInfo(CypherQueryBuilder.ja va:105)
at org.springframework.data.neo4j.repository.query.De rivedCypherRepositoryQuery.resolveParameter(Derive dCypherRepositoryQuery.java:59)
at org.springframework.data.neo4j.repository.query.Gr aphQueryMethod.resolveParams(GraphQueryMethod.java :80)
at org.springframework.data.neo4j.repository.query.Gr aphRepositoryQuery.resolveParams(GraphRepositoryQu ery.java:74)
at org.springframework.data.neo4j.repository.query.Gr aphRepositoryQuery.execute(GraphRepositoryQuery.ja va:68)
at org.springframework.data.neo4j.repository.query.De rivedCypherRepositoryQuery.execute(DerivedCypherRe positoryQuery.java:34)
at org.springframework.data.repository.core.support.R epositoryFactorySupport$QueryExecutorMethodInterce ptor.invoke(RepositoryFactorySupport.java:301)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:110)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
at org.springframework.dao.support.PersistenceExcepti onTranslationInterceptor.invoke(PersistenceExcepti onTranslationInterceptor.java:155)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :172)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy41.findByPrincipal(Unknown Source)
at com.geocoding.persistence.common.service.owner.Own erService.getCurrentOwner(OwnerService.java:44)


Any help is appreciated.
Thank you.
Eugen.