Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-21 Thread Radheshyam Verma
Is it possible that Neo4j is not installed properly.
Because I probably Uninstalled neo4j and still server starts properly.
But server shows TransactionFailureException when saving object.


* I already have graph.db file, And I have some entries in it.
* When I run neo4jTemplate.count() it returns count of the objects.
* but when I save an object it shows TransactionFailureException and count
still remains same.
* code structure is as above

Can you check what problem this might be?
How do i check if Neo4j is installed properly?

OS Version:- Linux ip-172-30-1-76 4.1.10-17.31.amzn1.x86_64 #1 SMP Sat Oct
24 01:31:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma 
wrote:

> PS: Thanks For the Quick response. I wasn't ready for this.
>
> On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma 
> wrote:
>
>> The basic structure of the code is as above though.
>>
>> Here is the code that is not working
>>
>> @Service
>> @Transactional
>> public class Neo4jService
>> {
>>@Autowired
>>private Neo4jTemplate template;
>>
>>public User addUser(User user)
>>{
>>   template.save(user); //No Error Till here
>>   return user; //After This step Error
>> occurs
>>}
>> }
>>
>>
>> Can it be because improper neo4j version and Spring data version
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-21 Thread Radheshyam Verma
PS: Thanks For the Quick response. I wasn't ready for this.

On Mon, Mar 21, 2016 at 5:16 PM, Radheshyam Verma 
wrote:

> The basic structure of the code is as above though.
>
> Here is the code that is not working
>
> @Service
> @Transactional
> public class Neo4jService
> {
>@Autowired
>private Neo4jTemplate template;
>
>public User addUser(User user)
>{
>   template.save(user); //No Error Till here
>   return user; //After This step Error
> occurs
>}
> }
>
>
> Can it be because improper neo4j version and Spring data version
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-21 Thread Radheshyam Verma
The basic structure of the code is as above though.

Here is the code that is not working

@Service
@Transactional
public class Neo4jService
{
   @Autowired
   private Neo4jTemplate template;

   public User addUser(User user)
   {
  template.save(user); //No Error Till here
  return user; //After This step Error
occurs
   }
}


Can it be because improper neo4j version and Spring data version

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-21 Thread Michael Hunger
Best if you can share a minimal example project that reproduces the issue.

I presume that your spring config is not correct.

Cheers, Michael

> Am 21.03.2016 um 12:27 schrieb Radheshyam Verma :
> 
> Hi,
> Thanks for your help.
> I Resolved The Issue. It was not Neo4j Error, it was Some other component 
> producing error which was causing neo4j to crash.
> 
> Now Server is starting normally.
> 
> Now I am getting Error while writing data to the database.
> Code structure is as follow:
> 
> @Transactional   //Imported From SpringFrameWork
> @Service
> public class NeoService
> {
> public User saveObj(User user)
> {
> //Some code to read database
> //which works fine
> 
> user=neo4jTemplate.save(node);   Works Fine till here
> return user;//produces Error 
> 'org.neo4j.graphdb.TransactionFailureException: commit threw exception'
> }
> }
> 
> Can You help me find the Error
> 
> On Mon, Mar 14, 2016 at 9:10 PM, Radheshyam Verma  > wrote:
> Thanks for the response,
> 
> For me "SDN 3.3.2.RELEASE" pulls "neo4j 2.1.7" and some other dependencies.
> 
> By "neo 2.2" do you mean that I should install "Neo4j 2.2" version.
> 
> PS: I removed all the jars from my machine and rebuilt project then also it 
> worked on my local machine, however not on the unix server.
> Should I do a clean reInstall of neo4j2.2?
> 
> Thanks again.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to neo4j+unsubscr...@googlegroups.com 
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-21 Thread Radheshyam Verma
Hi,
Thanks for your help.
I Resolved The Issue. It was not Neo4j Error, it was Some other component
producing error which was causing neo4j to crash.

Now Server is starting normally.

Now I am getting Error while writing data to the database.
Code structure is as follow:

@Transactional   //Imported From SpringFrameWork
@Service
public class NeoService
{
public User saveObj(User user)
{
//Some code to read database
//which works fine

user=neo4jTemplate.save(node);   Works Fine till here
return user;//produces Error
'org.neo4j.graphdb.TransactionFailureException:
commit threw exception'
}
}

Can You help me find the Error

On Mon, Mar 14, 2016 at 9:10 PM, Radheshyam Verma 
wrote:

> Thanks for the response,
>
> For me "*SDN 3.3.2.RELEASE"* pulls "*neo4j 2.1.7*" and some other
> dependencies.
>
> By "*neo 2.2*" do you mean that I should install "*Neo4j 2.2*" version.
>
> PS: I removed all the jars from my machine and rebuilt project then also
> it worked on my local machine, however not on the unix server.
> Should I do a clean reInstall of *neo4j2.2*?
>
> Thanks again.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Radheshyam Verma
Thanks for the response,

For me "*SDN 3.3.2.RELEASE"* pulls "*neo4j 2.1.7*" and some other
dependencies.

By "*neo 2.2*" do you mean that I should install "*Neo4j 2.2*" version.

PS: I removed all the jars from my machine and rebuilt project then also it
worked on my local machine, however not on the unix server.
Should I do a clean reInstall of *neo4j2.2*?

Thanks again.

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Michael Hunger
If you run mvn dependency:tree

You'll see that sdn pulls in neo 2.2 you should use the same version throughout 

Von meinem iPhone gesendet

> Am 14.03.2016 um 11:41 schrieb Radheshyam Verma :
> 
> I am using Neo4j 2.1.8 
> 
>> On Mon, Mar 14, 2016 at 4:11 PM, Radheshyam Verma  
>> wrote:
>> 
>>  4.2.1.RELEASE
>>  4.3.6.Final
>>  5.1.31
>>  2.8.2
>>  4.0.3.RELEASE
>>  
>> 
>>  
>> 
>>  
>>  org.json
>>  json
>>  20150729
>>  
>>  
>>  com.googlecode.json-simple
>>  json-simple
>>  1.1
>>  
>> 
>>  
>>  
>>  org.springframework
>>  spring-core
>>  ${springframework.version}
>>  
>>  
>>  org.springframework
>>  spring-context
>>  ${springframework.version}
>>  
>>  
>>  org.springframework
>>  spring-tx
>>  ${springframework.version}
>>  
>>  
>>  org.springframework
>>  spring-orm
>>  ${springframework.version}
>>  
>>  
>>  org.springframework
>>  spring-webmvc
>>  ${springframework.version}
>>  
>>  
>>  org.springframework
>>  spring-test
>>  ${springframework.version}
>>  
>> 
>>  
>>  
>>  org.springframework.security
>>  spring-security-core
>>  4.0.3.RELEASE
>>  
>> 
>>  
>>  org.springframework.security
>>  spring-security-config
>>  4.0.3.RELEASE
>>  
>>  
>>  org.springframework.security
>>  spring-security-web
>>  4.0.3.RELEASE
>>  
>> 
>> 
>> 
>>  
>>  
>>  org.hibernate
>>  hibernate-core
>>  ${hibernate.version}
>>  
>> 
>>  
>>  
>>  mysql
>>  mysql-connector-java
>>  ${mysql.connector.version}
>>  
>> 
>>  
>>  
>>  joda-time
>>  joda-time
>>  2.9.2
>>  
>> 
>>  
>>  
>>  javax.mail
>>  mail
>>  1.4.7
>>  
>> 
>>  
>>  
>>  org.jadira.usertype
>>  usertype.core
>>  3.0.0.CR1
>>  
>> 
>>  
>>  javax.servlet
>>  servlet-api
>>  2.5
>>  
>> 
>>  
>>  junit
>>  junit
>>  4.12
>>  test
>>  
>> 
>>  
>>  org.hibernate.common
>>  hibernate-commons-annotations
>>  4.0.4.Final
>>  
>> 
>>  
>>  com.google.code.gson
>>  gson
>>  2.3.1
>>  
>> 
>>  
>>  jstl
>>  jstl
>>  1.2
>>  
>> 
>>  
>>  commons-dbcp
>>  commons-dbcp
>>  1.2.2
>>  
>> 
>>  
>>  org.hibernate
>>  hibernate-validator
>>  5.2.1.Final
>>  
>> 
>>  
>>  javax.validation
>>  validation-api
>>  1.1.0.Final
>>  
>>  
>>  geocalc
>>  geocalc
>>  0.5.1
>>  
>> 
>>  
>>  com.googlecode.genericdao
>>  dao-hibernate
>>  1.2.0
>>  
>> 
>>  
>>  org.springframework.data
>>  spring-data-neo4j
>>  3.3.2.RELEASE
>>  
>> 
>>  
>>  org.neo4j
>>  neo4j-kernel
>>  2.1.2
>>  
>> 
>>  
>>   javax.transaction 
>>   jta 
>> 

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Radheshyam Verma

4.2.1.RELEASE
4.3.6.Final
5.1.31
2.8.2
4.0.3.RELEASE





org.json
json
20150729


com.googlecode.json-simple
json-simple
1.1




org.springframework
spring-core
${springframework.version}


org.springframework
spring-context
${springframework.version}


org.springframework
spring-tx
${springframework.version}


org.springframework
spring-orm
${springframework.version}


org.springframework
spring-webmvc
${springframework.version}


org.springframework
spring-test
${springframework.version}




org.springframework.security
spring-security-core
4.0.3.RELEASE



org.springframework.security
spring-security-config
4.0.3.RELEASE


org.springframework.security
spring-security-web
4.0.3.RELEASE






org.hibernate
hibernate-core
${hibernate.version}




mysql
mysql-connector-java
${mysql.connector.version}




joda-time
joda-time
2.9.2




javax.mail
mail
1.4.7




org.jadira.usertype
usertype.core
3.0.0.CR1



javax.servlet
servlet-api
2.5



junit
junit
4.12
test



org.hibernate.common
hibernate-commons-annotations
4.0.4.Final



com.google.code.gson
gson
2.3.1



jstl
jstl
1.2



commons-dbcp
commons-dbcp
1.2.2



org.hibernate
hibernate-validator
5.2.1.Final



javax.validation
validation-api
1.1.0.Final


geocalc
geocalc
0.5.1



com.googlecode.genericdao
dao-hibernate
1.2.0



org.springframework.data
spring-data-neo4j
3.3.2.RELEASE



org.neo4j
neo4j-kernel
2.1.2



 javax.transaction 
 jta 
 1.1 



log4j
log4j
1.2.17



commons-codec
commons-codec
1.9



org.json
json
20140107




org.apache.httpcomponents
httpclient
4.5.1




com.fasterxml.jackson.core
jackson-core
2.7.1




org.apache.commons
commons-io
1.3.2









in-project
in-project
file://${project.basedir}/lib




On Mon, Mar 14, 2016 at 4:04 PM, Michael Hunger <
michael.hun...@neotechnology.com> wrote:

> What does your pom.xml look like?
>
> On Mon, Mar 14, 2016 at 10:39 AM, Radheshyam Verma 
> wrote:
>
>> Thanks for response,
>>
>> It is amazon EC2-unix instance. I run tomcat-8 in the machine with
>> Java-spring.
>>
>> Server was running fine for so many days then it suddenly started showing
>> above error.
>> I did not change anything like classpath etc. Even that same war file is
>> running without errors in my windows system, but not in remote system.
>>
>> Can It be caused by mismatch in "NEO4J SDN" version in spring and "NEO4J"
>> installer version.
>>
>> * I am attaching .classpath file here with email.
>>
>> * Packaging is ".war".
>>
>> * I put war in "/webapps" folder of tomcat and run tomcat.
>>
>> If you need any more information Please let me know.
>>
>> Thanks again.
>>
>>
>> On Mon, Mar 14, 2016 at 2:18 PM, Mattias Persson <
>> matt...@neotechnology.com> wrote:
>>
>>> That looks like a classpath issue. How are you running neo4j, using a
>>> downloaded server and the provided scripts or embedded and packaging the
>>> dependencies manually? Can you list the classpath in use here?
>>>
>>> On Mon, Mar 14, 2016 at 8:32 AM, Radheshyam Verma 
>>> wrote:
>>>
 Hi Mattias Persson,
 I need help regarding an error I get when I start server. Can you help
 me find the cause? Here is the stacktrace:-

  ERROR [org.neo4j]: Exception when stopping
 org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
 org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
 java.lang.NoSuchMethodError:
 org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
 at
 org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
 at
 org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
 at
 org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
 at
 org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
 at
 org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
 at
 org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
 at
 org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
 at
 org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
 at
 org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
 at
 org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
 at
 org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
 at
 org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
 at
 org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:809)
 at
 org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:283)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorIm

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Radheshyam Verma
I am using Neo4j 2.1.8

On Mon, Mar 14, 2016 at 4:11 PM, Radheshyam Verma 
wrote:

> 
> 4.2.1.RELEASE
> 4.3.6.Final
> 5.1.31
> 2.8.2
> 4.0.3.RELEASE
> 
>
> 
>
> 
> org.json
> json
> 20150729
> 
> 
> com.googlecode.json-simple
> json-simple
> 1.1
> 
>
> 
> 
> org.springframework
> spring-core
> ${springframework.version}
> 
> 
> org.springframework
> spring-context
> ${springframework.version}
> 
> 
> org.springframework
> spring-tx
> ${springframework.version}
> 
> 
> org.springframework
> spring-orm
> ${springframework.version}
> 
> 
> org.springframework
> spring-webmvc
> ${springframework.version}
> 
> 
> org.springframework
> spring-test
> ${springframework.version}
> 
>
> 
> 
> org.springframework.security
> spring-security-core
> 4.0.3.RELEASE
> 
>
> 
> org.springframework.security
> spring-security-config
> 4.0.3.RELEASE
> 
> 
> org.springframework.security
> spring-security-web
> 4.0.3.RELEASE
> 
>
>
>
> 
> 
> org.hibernate
> hibernate-core
> ${hibernate.version}
> 
>
> 
> 
> mysql
> mysql-connector-java
> ${mysql.connector.version}
> 
>
> 
> 
> joda-time
> joda-time
> 2.9.2
> 
>
> 
> 
> javax.mail
> mail
> 1.4.7
> 
>
> 
> 
> org.jadira.usertype
> usertype.core
> 3.0.0.CR1
> 
>
> 
> javax.servlet
> servlet-api
> 2.5
> 
>
> 
> junit
> junit
> 4.12
> test
> 
>
> 
> org.hibernate.common
> hibernate-commons-annotations
> 4.0.4.Final
> 
>
> 
> com.google.code.gson
> gson
> 2.3.1
> 
>
> 
> jstl
> jstl
> 1.2
> 
>
> 
> commons-dbcp
> commons-dbcp
> 1.2.2
> 
>
> 
> org.hibernate
> hibernate-validator
> 5.2.1.Final
> 
>
> 
> javax.validation
> validation-api
> 1.1.0.Final
> 
> 
> geocalc
> geocalc
> 0.5.1
> 
>
> 
> com.googlecode.genericdao
> dao-hibernate
> 1.2.0
> 
>
> 
> org.springframework.data
> spring-data-neo4j
> 3.3.2.RELEASE
> 
>
> 
> org.neo4j
> neo4j-kernel
> 2.1.2
> 
>
> 
>  javax.transaction 
>  jta 
>  1.1 
> 
>
> 
> log4j
> log4j
> 1.2.17
> 
>
> 
> commons-codec
> commons-codec
> 1.9
> 
>
> 
> org.json
> json
> 20140107
> 
>
> 
> 
> org.apache.httpcomponents
> httpclient
> 4.5.1
> 
>
> 
> 
> com.fasterxml.jackson.core
> jackson-core
> 2.7.1
> 
>
> 
> 
> org.apache.commons
> commons-io
> 1.3.2
> 
>
>
>
>
>
> 
> 
> 
> in-project
> in-project
> file://${project.basedir}/lib
>
> 
> 
>
> On Mon, Mar 14, 2016 at 4:04 PM, Michael Hunger <
> michael.hun...@neotechnology.com> wrote:
>
>> What does your pom.xml look like?
>>
>> On Mon, Mar 14, 2016 at 10:39 AM, Radheshyam Verma 
>> wrote:
>>
>>> Thanks for response,
>>>
>>> It is amazon EC2-unix instance. I run tomcat-8 in the machine with
>>> Java-spring.
>>>
>>> Server was running fine for so many days then it suddenly started
>>> showing above error.
>>> I did not change anything like classpath etc. Even that same war file is
>>> running without errors in my windows system, but not in remote system.
>>>
>>> Can It be caused by mismatch in "NEO4J SDN" version in spring and
>>> "NEO4J" installer version.
>>>
>>> * I am attaching .classpath file here with email.
>>>
>>> * Packaging is ".war".
>>>
>>> * I put war in "/webapps" folder of tomcat and run tomcat.
>>>
>>> If you need any more information Please let me know.
>>>
>>> Thanks again.
>>>
>>>
>>> On Mon, Mar 14, 2016 at 2:18 PM, Mattias Persson <
>>> matt...@neotechnology.com> wrote:
>>>
 That looks like a classpath issue. How are you running neo4j, using a
 downloaded server and the provided scripts or embedded and packaging the
 dependencies manually? Can you list the classpath in use here?

 On Mon, Mar 14, 2016 at 8:32 AM, Radheshyam Verma 
 wrote:

> Hi Mattias Persson,
> I need help regarding an error I get when I start server. Can you help
> me find the cause? Here is the stacktrace:-
>
>  ERROR [org.neo4j]: Exception when stopping
> org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
> java.lang.NoSuchMethodError:
> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
> at
> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
> at
> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
> at
> org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
> at
> org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$L

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Michael Hunger
What does your pom.xml look like?

On Mon, Mar 14, 2016 at 10:39 AM, Radheshyam Verma 
wrote:

> Thanks for response,
>
> It is amazon EC2-unix instance. I run tomcat-8 in the machine with
> Java-spring.
>
> Server was running fine for so many days then it suddenly started showing
> above error.
> I did not change anything like classpath etc. Even that same war file is
> running without errors in my windows system, but not in remote system.
>
> Can It be caused by mismatch in "NEO4J SDN" version in spring and "NEO4J"
> installer version.
>
> * I am attaching .classpath file here with email.
>
> * Packaging is ".war".
>
> * I put war in "/webapps" folder of tomcat and run tomcat.
>
> If you need any more information Please let me know.
>
> Thanks again.
>
>
> On Mon, Mar 14, 2016 at 2:18 PM, Mattias Persson <
> matt...@neotechnology.com> wrote:
>
>> That looks like a classpath issue. How are you running neo4j, using a
>> downloaded server and the provided scripts or embedded and packaging the
>> dependencies manually? Can you list the classpath in use here?
>>
>> On Mon, Mar 14, 2016 at 8:32 AM, Radheshyam Verma 
>> wrote:
>>
>>> Hi Mattias Persson,
>>> I need help regarding an error I get when I start server. Can you help
>>> me find the cause? Here is the stacktrace:-
>>>
>>>  ERROR [org.neo4j]: Exception when stopping
>>> org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
>>> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
>>> java.lang.NoSuchMethodError:
>>> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
>>> at
>>> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
>>> at
>>> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
>>> at
>>> org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
>>> at
>>> org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
>>> at
>>> org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
>>> at
>>> org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:809)
>>> at
>>> org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:283)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:606)
>>> at
>>> org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:353)
>>> at
>>> org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:276)
>>> at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
>>> at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
>>> at
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:925)
>>> at
>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
>>> at
>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:932)
>>> at
>>> org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:997)
>>> at
>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:547)
>>> at
>>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
>>> at
>>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
>>> at
>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
>>> at
>>> org.apache.catalina.core.StandardContext

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Radheshyam Verma
Thanks for response,

It is amazon EC2-unix instance. I run tomcat-8 in the machine with
Java-spring.

Server was running fine for so many days then it suddenly started showing
above error.
I did not change anything like classpath etc. Even that same war file is
running without errors in my windows system, but not in remote system.

Can It be caused by mismatch in "NEO4J SDN" version in spring and "NEO4J"
installer version.

* I am attaching .classpath file here with email.

* Packaging is ".war".

* I put war in "/webapps" folder of tomcat and run tomcat.

If you need any more information Please let me know.

Thanks again.


On Mon, Mar 14, 2016 at 2:18 PM, Mattias Persson 
wrote:

> That looks like a classpath issue. How are you running neo4j, using a
> downloaded server and the provided scripts or embedded and packaging the
> dependencies manually? Can you list the classpath in use here?
>
> On Mon, Mar 14, 2016 at 8:32 AM, Radheshyam Verma 
> wrote:
>
>> Hi Mattias Persson,
>> I need help regarding an error I get when I start server. Can you help me
>> find the cause? Here is the stacktrace:-
>>
>>  ERROR [org.neo4j]: Exception when stopping
>> org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
>> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
>> java.lang.NoSuchMethodError:
>> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
>> at
>> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
>> at
>> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
>> at
>> org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
>> at
>> org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
>> at
>> org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
>> at
>> org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:809)
>> at
>> org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:283)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at
>> org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:353)
>> at
>> org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:276)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:925)
>> at
>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
>> at
>> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:932)
>> at
>> org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:997)
>> at
>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:547)
>> at
>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
>> at
>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
>> at
>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
>> at
>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
>> at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> at
>

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Mattias Persson
That looks like a classpath issue. How are you running neo4j, using a
downloaded server and the provided scripts or embedded and packaging the
dependencies manually? Can you list the classpath in use here?

On Mon, Mar 14, 2016 at 8:32 AM, Radheshyam Verma 
wrote:

> Hi Mattias Persson,
> I need help regarding an error I get when I start server. Can you help me
> find the cause? Here is the stacktrace:-
>
>  ERROR [org.neo4j]: Exception when stopping
> org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
> java.lang.NoSuchMethodError:
> org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
> at
> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
> at
> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
> at
> org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
> at
> org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
> at
> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
> at
> org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
> at
> org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:809)
> at
> org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:283)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
> org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:353)
> at
> org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:276)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:925)
> at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
> at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:932)
> at
> org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:997)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:547)
> at
> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
> at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
> at
> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
> at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
> at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
> at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
> at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
> at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
> at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
> at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>  

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-03-14 Thread Radheshyam Verma
Hi Mattias Persson,
I need help regarding an error I get when I start server. Can you help me
find the cause? Here is the stacktrace:-

 ERROR [org.neo4j]: Exception when stopping
org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69
org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
java.lang.NoSuchMethodError:
org.neo4j.index.impl.lucene.LuceneDataSource.unbindLogicalLog()V
at
org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:343)
at
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547)
at
org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339)
at
org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272)
at
org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92)
at
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
at
org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:125)
at
org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527)
at org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155)
at
org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185)
at
org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:809)
at
org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:283)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:353)
at
org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:276)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:925)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:932)
at
org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:997)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:547)
at
org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
2016-03-14 07:10:41.034+ ERROR [org.neo4j]: Exception when stopping
org.neo4j.index.lucene.LuceneKernelExtension@7addfa02 Component
'org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69' failed to stop.
Please see attached cause exception.
org.neo4j.kernel.lifecycle.LifecycleException: Component
'org.neo4j.index.impl.lucene.LuceneDataSource@2aad7c69' failed to stop.
Please see attached cause

Re: [Neo4j] Re: Neo4j Traversal Framework

2016-01-27 Thread Mattias Persson
You're correct in principle, but it's not a new "query" as such that is
sent every time. The traversal state is kept between calls to hasNext/next,
but that's just a detail.

On Wed, Jan 27, 2016 at 1:20 PM, Radheshyam Verma 
wrote:

> Thanks for the reply,
> So you mean that for each iteration of following 'FOR' loop, a query is
> sent to get next node from database if it exists.
> and that not all the nodes are returned in one go before 'FOR' loop even
> starts.
>
> for(Node currentNode : database.traversalDescription()
> .depthFirst()
> .uniqueness(Uniqueness.NODE_GLOBAL)
> .order(BranchOrderingPolicies.PREORDER_BREADTH_FIRST)
> .relationships(, Direction.BOTH)
> .evaluator(Evaluators.excludeStartPosition())
> .traverse(node)
> .nodes())
> {
>
> }
>
> Thanks for the response again.
>
>
> On Wed, Jan 27, 2016 at 2:24 PM, Mattias Persson <
> matt...@neotechnology.com> wrote:
>
>> With the traversal framework, the actual work of traversing happens
>> lazily on every call on hasNext/next on the returned Traverser (in the end
>> Iterator). You can simply stop pulling more paths after a certain
>> number of paths have been extracted.
>>
>>
>> On Monday, January 25, 2016 at 8:31:37 AM UTC+1, Radheshyam Verma wrote:
>>>
>>> Hi,
>>> I am using traversal framework to traverse graph which returns nodes.
>>> Can we somehow specify a limit on number of nodes which the traversal
>>> returns like we do in Query using "LIMIT" and "SKIP".
>>> Thanks.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Neo4j" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/neo4j/2A1QiEOwofU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> neo4j+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Neo4j" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/neo4j/2A1QiEOwofU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Mattias Persson
Neo4j Hacker at Neo Technology

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Neo4j] Re: Neo4j Traversal Framework

2016-01-27 Thread Radheshyam Verma
Thanks for the reply,
So you mean that for each iteration of following 'FOR' loop, a query is
sent to get next node from database if it exists.
and that not all the nodes are returned in one go before 'FOR' loop even
starts.

for(Node currentNode : database.traversalDescription()
.depthFirst()
.uniqueness(Uniqueness.NODE_GLOBAL)
.order(BranchOrderingPolicies.PREORDER_BREADTH_FIRST)
.relationships(, Direction.BOTH)
.evaluator(Evaluators.excludeStartPosition())
.traverse(node)
.nodes())
{

}

Thanks for the response again.


On Wed, Jan 27, 2016 at 2:24 PM, Mattias Persson 
wrote:

> With the traversal framework, the actual work of traversing happens lazily
> on every call on hasNext/next on the returned Traverser (in the end
> Iterator). You can simply stop pulling more paths after a certain
> number of paths have been extracted.
>
>
> On Monday, January 25, 2016 at 8:31:37 AM UTC+1, Radheshyam Verma wrote:
>>
>> Hi,
>> I am using traversal framework to traverse graph which returns nodes.
>> Can we somehow specify a limit on number of nodes which the traversal
>> returns like we do in Query using "LIMIT" and "SKIP".
>> Thanks.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Neo4j" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/neo4j/2A1QiEOwofU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> neo4j+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Neo4j] Re: Neo4j Traversal Framework

2016-01-27 Thread Mattias Persson
With the traversal framework, the actual work of traversing happens lazily 
on every call on hasNext/next on the returned Traverser (in the end 
Iterator). You can simply stop pulling more paths after a certain 
number of paths have been extracted.

On Monday, January 25, 2016 at 8:31:37 AM UTC+1, Radheshyam Verma wrote:
>
> Hi,
> I am using traversal framework to traverse graph which returns nodes.
> Can we somehow specify a limit on number of nodes which the traversal 
> returns like we do in Query using "LIMIT" and "SKIP".
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to neo4j+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.