at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
[neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
[neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
at
org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
[neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
at
org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
[spring-data-neo4j-rest-2.1.0.RC3.jar:]
at
org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
[spring-data-neo4j-rest-2.1.0.RC3.jar:]
at
org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
[spring-data-neo4j-2.1.0.RC3.jar:]
at
org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
[spring-data-neo4j-2.1.0.RC3.jar:]
at
org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
[spring-data-neo4j-2.1.0.RC3.jar:]
at
org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
[spring-data-commons-core-1.4.0.RC1.jar:]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
[spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at
org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
[spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
[spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at $Proxy290.findByusername(Unknown Source) at
org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
[netvogue-database-api-1.0-SNAPSHOT.jar:]
at
org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
[classes:]
> SDN finder method is failing with REstResultException whenever spaces are there in parameters.
> Here is my use case,
> @NodeEntiry
> Class User{
> @Indexed(indexName="username", indexType=IndexType.FULLTEXT)
> String username;}
> Here is my finder function in repository
> User findByusername(String username);
> Here is my finder call,
> User user = userRepo.findByusername("Spring data"); This call throws below exception...
> However, everything works file, when param is just "Spring"
> Kindly let me know your suggestions to resolve this.
> Exception:
> 21:01:47,670 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/netvog ueweb].[dispatcher]] (http--127.0.0.1-8080-6) Servlet.service() for servlet dispatcher threw exception: org.neo4j.rest.graphdb.RestResultException: null at
> at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96) [spring-data-neo4j-2.1.0.RC3.jar:]
> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70) [spring-data-neo4j-2.1.0.RC3.jar:]
> at org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36) [spring-data-neo4j-2.1.0.RC3.jar:]
> at org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313) [spring-data-commons-core-1.4.0.RC1.jar:]
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at $Proxy290.findByusername(Unknown Source) at org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83) [netvogue-database-api-1.0-SNAPSHOT.jar:]
> at org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70) [classes:]
Thanks for the information Michael.
Have another issue with executing Cypher query from SDN.
It works fine, when i executed on neo4j console. Issue is with passing
parameter. Can you please correct me?
> at
> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at
> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at
> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
> [spring-data-commons-core-1.4.0.RC1.jar:]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at $Proxy290.findByusername(Unknown Source) at
> org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
> [netvogue-database-api-1.0-SNAPSHOT.jar:]
> at
> org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
> [classes:]
> Thanks for the information Michael.
> Have another issue with executing Cypher query from SDN.
> It works fine, when i executed on neo4j console. Issue is with passing parameter. Can you please correct me?
> @Query( "START n=node:search(\"name:*{brandname}*\") RETURN n")
> Exception is:
> exception: org.neo4j.rest.graphdb.RestResultException: org.apache.lucene.queryParser.ParseException: Cannot parse 'name:*{brandname}*': Encountered " "}" "} "" at line 1, column 16.
> Was expecting one of:
> "TO" ...
> <RANGEEX_QUOTED> ...
> <RANGEEX_GOOP> ...
> at
> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger <michael.hun...@neopersistence.com> wrote:
> You have to quote it. With \"
> Sent from mobile device
> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik <azeeztechni...@gmail.com>:
>> Hi,
>> SDN finder method is failing with REstResultException whenever spaces are there in parameters.
>> Here is my use case,
>> @NodeEntiry
>> Class User{
>> @Indexed(indexName="username", indexType=IndexType.FULLTEXT)
>> String username;}
>> Here is my finder function in repository
>> User findByusername(String username);
>> Here is my finder call,
>> User user = userRepo.findByusername("Spring data"); This call throws below exception...
>> However, everything works file, when param is just "Spring"
>> Kindly let me know your suggestions to resolve this.
>> Exception:
>> 21:01:47,670 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/netvog ueweb].[dispatcher]] (http--127.0.0.1-8080-6) Servlet.service() for servlet dispatcher threw exception: org.neo4j.rest.graphdb.RestResultException: null at
>> at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313) [spring-data-commons-core-1.4.0.RC1.jar:]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at $Proxy290.findByusername(Unknown Source) at org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83) [netvogue-database-api-1.0-SNAPSHOT.jar:]
>> at org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70) [classes:]
> Am 03.09.2012 um 00:24 schrieb Abdul Azeez Shaik:
> Thanks for the information Michael.
> Have another issue with executing Cypher query from SDN.
> It works fine, when i executed on neo4j console. Issue is with passing
> parameter. Can you please correct me?
> Iterable<Brand> findBynameSearch(@Param("brandname") String brandname);
> Exception is:
> exception: org.neo4j.rest.graphdb.RestResultException:
> org.apache.lucene.queryParser.ParseException: Cannot parse
> 'name:*{brandname}*': Encountered " "}" "} "" at line 1, column 16.
> Was expecting one of:
> "TO" ...
> <RANGEEX_QUOTED> ...
> <RANGEEX_GOOP> ...
> at
> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger <
> michael.hun...@neopersistence.com> wrote:
>> You have to quote it. With \"
>> Sent from mobile device
>> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik <
>> azeeztechni...@gmail.com>:
>> Hi,
>> SDN finder method is failing with REstResultException whenever spaces are
>> there in parameters.
>> Here is my use case,
>> @NodeEntiry
>> Class User{
>> at
>> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at
>> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at
>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
>> [spring-data-commons-core-1.4.0.RC1.jar:]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at $Proxy290.findByusername(Unknown Source) at
>> org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
>> [netvogue-database-api-1.0-SNAPSHOT.jar:]
>> at
>> org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
>> [classes:]
This one is not working with pattern matching.
for example,
START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
START n=node:search("name:*abdul*") RETURN n; -- WORKING
START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
Is there a way to work while spaces and pattern matching in same query
param?
> at
> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at
> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
> at
> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
> [spring-data-neo4j-2.1.0.RC3.jar:]
> at
> org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
> [spring-data-commons-core-1.4.0.RC1.jar:]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
> at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
> at $Proxy290.findByusername(Unknown Source) at
> org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
> [netvogue-database-api-1.0-SNAPSHOT.jar:]
> at
> org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
> [classes:]
> This one is not working with pattern matching.
> for example,
> START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
> START n=node:search("name:*abdul*") RETURN n; -- WORKING > START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
> START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
> Is there a way to work while spaces and pattern matching in same query param?
> Thanks,
> Abdul
> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger <michael.hun...@neopersistence.com> wrote:
> You have to quote it. With \"
> Sent from mobile device
> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik <azeeztechni...@gmail.com>:
>> Hi,
>> SDN finder method is failing with REstResultException whenever spaces are there in parameters.
>> Here is my use case,
>> @NodeEntiry
>> Class User{
>> @Indexed(indexName="username", indexType=IndexType.FULLTEXT)
>> String username;}
>> Here is my finder function in repository
>> User findByusername(String username);
>> Here is my finder call,
>> User user = userRepo.findByusername("Spring data"); This call throws below exception...
>> However, everything works file, when param is just "Spring"
>> Kindly let me know your suggestions to resolve this.
>> Exception:
>> 21:01:47,670 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/netvog ueweb].[dispatcher]] (http--127.0.0.1-8080-6) Servlet.service() for servlet dispatcher threw exception: org.neo4j.rest.graphdb.RestResultException: null at
>> at org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50) [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27) [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36) [spring-data-neo4j-2.1.0.RC3.jar:]
>> at org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313) [spring-data-commons-core-1.4.0.RC1.jar:]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155) [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202) [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at $Proxy290.findByusername(Unknown Source) at org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83) [netvogue-database-api-1.0-SNAPSHOT.jar:]
>> at org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70) [classes:]
michael.hun...@neopersistence.com> wrote:
> Try to put the stars outside the quotes
> Sent from mobile device
> Am 03.09.2012 um 06:36 schrieb Abdul Azeez Shaik <azeeztechni...@gmail.com
> >:
> Hi Michael,
> This one is not working with pattern matching.
> for example,
> START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
> START n=node:search("name:*abdul*") RETURN n; -- WORKING
> START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
> START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
> Is there a way to work while spaces and pattern matching in same query
> param?
> Thanks,
> Abdul
> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger <
> michael.hun...@neopersistence.com> wrote:
>> You have to quote it. With \"
>> Sent from mobile device
>> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik <
>> azeeztechni...@gmail.com>:
>> Hi,
>> SDN finder method is failing with REstResultException whenever spaces are
>> there in parameters.
>> Here is my use case,
>> @NodeEntiry
>> Class User{
>> at
>> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at
>> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>> at
>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
>> [spring-data-neo4j-2.1.0.RC3.jar:]
>> at
>> org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
>> [spring-data-commons-core-1.4.0.RC1.jar:]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>> at
>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at
>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>> at $Proxy290.findByusername(Unknown Source) at
>> org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
>> [netvogue-database-api-1.0-SNAPSHOT.jar:]
>> at
>> org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
>> [classes:]
<azeeztechni...@gmail.com> wrote:
> I tried that. Its not working.
> I tried directly on neo4j console itself.
> On Mon, Sep 3, 2012 at 10:38 AM, Michael Hunger
> <michael.hun...@neopersistence.com> wrote:
>> Try to put the stars outside the quotes
>> Sent from mobile device
>> Am 03.09.2012 um 06:36 schrieb Abdul Azeez Shaik
>> <azeeztechni...@gmail.com>:
>> Hi Michael,
>> This one is not working with pattern matching.
>> for example,
>> START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
>> START n=node:search("name:*abdul*") RETURN n; -- WORKING
>> START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
>> START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
>> Is there a way to work while spaces and pattern matching in same query
>> param?
>> Thanks,
>> Abdul
>> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger
>> <michael.hun...@neopersistence.com> wrote:
>>> You have to quote it. With \"
>>> Sent from mobile device
>>> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik
>>> <azeeztechni...@gmail.com>:
>>> Hi,
>>> SDN finder method is failing with REstResultException whenever spaces are
>>> there in parameters.
>>> Here is my use case,
>>> @NodeEntiry
>>> Class User{
>>> at
>>> org.neo4j.rest.graphdb.ExecutingRestAPI.query(ExecutingRestAPI.java:488)
>>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>>> at org.neo4j.rest.graphdb.RestAPIFacade.query(RestAPIFacade.java:231)
>>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>>> at
>>> org.neo4j.rest.graphdb.query.RestCypherQueryEngine.query(RestCypherQueryEng ine.java:50)
>>> [neo4j-rest-graphdb-1.8.RC1.jar:1.8.RC1]
>>> at
>>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:41)
>>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>>> at
>>> org.springframework.data.neo4j.rest.SpringRestCypherQueryEngine.query(Sprin gRestCypherQueryEngine.java:27)
>>> [spring-data-neo4j-rest-2.1.0.RC3.jar:]
>>> at
>>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.dispat chQuery(GraphRepositoryQuery.java:96)
>>> [spring-data-neo4j-2.1.0.RC3.jar:]
>>> at
>>> org.springframework.data.neo4j.repository.query.GraphRepositoryQuery.execut e(GraphRepositoryQuery.java:70)
>>> [spring-data-neo4j-2.1.0.RC3.jar:]
>>> at
>>> org.springframework.data.neo4j.repository.query.DerivedCypherRepositoryQuer y.execute(DerivedCypherRepositoryQuery.java:36)
>>> [spring-data-neo4j-2.1.0.RC3.jar:]
>>> at
>>> org.springframework.data.repository.core.support.RepositoryFactorySupport$Q ueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:313)
>>> [spring-data-commons-core-1.4.0.RC1.jar:]
>>> at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>>> at
>>> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(T ransactionInterceptor.java:110)
>>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>>> at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>>> at
>>> org.springframework.dao.support.PersistenceExceptionTranslationInterceptor. invoke(PersistenceExceptionTranslationInterceptor.java:155)
>>> [spring-tx-3.0.7.RELEASE.jar:3.0.7.RELEASE]
>>> at
>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Reflec tiveMethodInvocation.java:172)
>>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>>> at
>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopPr oxy.java:202)
>>> [spring-aop-3.1.2.RELEASE.jar:3.1.2.RELEASE]
>>> at $Proxy290.findByusername(Unknown Source) at
>>> org.netvogue.server.neo4japi.service.BoutiqueServiceImpl.GetOrCreateUser(Bo utiqueServiceImpl.java:83)
>>> [netvogue-database-api-1.0-SNAPSHOT.jar:]
>>> at
>>> org.netvogue.server.webmvc.converters.UserConverterFactory$UserConverter.co nvert(UserConverterFactory.java:70)
>>> [classes:]
I tried in below ways, it throws "Invalid escape sequence"
START n=node:search("name:\*\"abdul azeez\"\*") RETURN n; -- NOT WORKING
START n=node:search("name:\"\*abdul azeez\*\"") RETURN n; -- NOT WORKING
peter.neuba...@neotechnology.com> wrote:
> Abdul,
> there are several layers of String processing going on, including
> Lucene processing the String, try more escapes :)
> start n=node:node_auto_index("name:Neo\\\"") return n
> Wanna learn something new? Come to @graphconnect.
> On Mon, Sep 3, 2012 at 8:39 AM, Abdul Azeez Shaik
> <azeeztechni...@gmail.com> wrote:
> > I tried that. Its not working.
> > I tried directly on neo4j console itself.
> > On Mon, Sep 3, 2012 at 10:38 AM, Michael Hunger
> > <michael.hun...@neopersistence.com> wrote:
> >> Try to put the stars outside the quotes
> >> Sent from mobile device
> >> Am 03.09.2012 um 06:36 schrieb Abdul Azeez Shaik
> >> <azeeztechni...@gmail.com>:
> >> Hi Michael,
> >> This one is not working with pattern matching.
> >> for example,
> >> START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
> >> START n=node:search("name:*abdul*") RETURN n; -- WORKING
> >> START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
> >> START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
> >> Is there a way to work while spaces and pattern matching in same query
> >> param?
> >> Thanks,
> >> Abdul
> >> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger
> >> <michael.hun...@neopersistence.com> wrote:
> >>> You have to quote it. With \"
> >>> Sent from mobile device
> >>> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik
> >>> <azeeztechni...@gmail.com>:
> >>> Hi,
> >>> SDN finder method is failing with REstResultException whenever spaces
> are
> >>> there in parameters.
> >>> Here is my use case,
> >>> @NodeEntiry
> >>> Class User{
<azeeztechni...@gmail.com> wrote:
> I tried in below ways, it throws "Invalid escape sequence"
> START n=node:search("name:\*\"abdul azeez\"\*") RETURN n; -- NOT WORKING
> START n=node:search("name:\"\*abdul azeez\*\"") RETURN n; -- NOT WORKING
> On Mon, Sep 3, 2012 at 2:14 PM, Peter Neubauer
> <peter.neuba...@neotechnology.com> wrote:
>> Abdul,
>> there are several layers of String processing going on, including
>> Lucene processing the String, try more escapes :)
>> start n=node:node_auto_index("name:Neo\\\"") return n
>> Wanna learn something new? Come to @graphconnect.
>> On Mon, Sep 3, 2012 at 8:39 AM, Abdul Azeez Shaik
>> <azeeztechni...@gmail.com> wrote:
>> > I tried that. Its not working.
>> > I tried directly on neo4j console itself.
>> > On Mon, Sep 3, 2012 at 10:38 AM, Michael Hunger
>> > <michael.hun...@neopersistence.com> wrote:
>> >> Try to put the stars outside the quotes
>> >> Sent from mobile device
>> >> Am 03.09.2012 um 06:36 schrieb Abdul Azeez Shaik
>> >> <azeeztechni...@gmail.com>:
>> >> Hi Michael,
>> >> This one is not working with pattern matching.
>> >> for example,
>> >> START n=node:search("name:\"abdul azeez\"") RETURN n; -- WORKING
>> >> START n=node:search("name:*abdul*") RETURN n; -- WORKING
>> >> START n=node:search("name:\"*abdul*\"") RETURN n; -- NOT WORKING
>> >> START n=node:search("name:\"*abdul azeez*\"") RETURN n; -- NOT WORKING
>> >> Is there a way to work while spaces and pattern matching in same query
>> >> param?
>> >> Thanks,
>> >> Abdul
>> >> On Sun, Sep 2, 2012 at 12:49 AM, Michael Hunger
>> >> <michael.hun...@neopersistence.com> wrote:
>> >>> You have to quote it. With \"
>> >>> Sent from mobile device
>> >>> Am 01.09.2012 um 18:22 schrieb Abdul Azeez Shaik
>> >>> <azeeztechni...@gmail.com>:
>> >>> Hi,
>> >>> SDN finder method is failing with REstResultException whenever spaces
>> >>> are
>> >>> there in parameters.
>> >>> Here is my use case,
>> >>> @NodeEntiry
>> >>> Class User{