Re: [Neo4j] transaction; nested exception is org.neo4j.ogm.exception.ResultErrorsException:

2017-07-04 Thread apprentice321
i deleted the database, which did the trick. On Tuesday, July 4, 2017 at 7:48:38 PM UTC+1, Michael Hunger wrote: > > There seems to be an issue with the underlying database. Can you make sure > it's working correctly and passes a consistency check? Thx > > Von meinem iPhone > > Am 04.07.2017 um

[Neo4j] Creating Swap Memory necessary?

2017-07-04 Thread apprentice321
Do i need to 'configure swap' on my digitalocean droplet as mentioned here? http://nicholaspaulsmith.com/neo4j-with-basic-authentication-on-digital-ocean/ I'm not sure if this article is still valid as it is dated 2015? -- You received this message because you are subscribed to the Google Group

[Neo4j] transaction; nested exception is org.neo4j.ogm.exception.ResultErrorsException:

2017-07-04 Thread apprentice321
Seems to work just fine on my local machine (Mac) but I get the following error when i move the app over to the ubuntu server and attempt to save object. https://pastebin.com/g4wdFmu0 -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe fr

Re: [Neo4j] Auth Problem when connecting to Neo4j Server (Ubuntu)

2017-06-21 Thread apprentice321
I think nginx is causing connection refused on localhost:7474 Do you have the settings for nginx? On Wednesday, June 21, 2017 at 9:22:21 AM UTC+1, Michael Hunger wrote: > > > On Wed, Jun 21, 2017 at 10:18 AM, > > wrote: > >> http://localhost:7474/ > > > this endpoint is unauthenticated: http://l

Re: [Neo4j] Auth Problem when connecting to Neo4j Server (Ubuntu)

2017-06-21 Thread apprentice321
curl for auth: curl -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -X GET -u neo4j:newpass1 http://localhost:7474/db/data/transaction curl: (7) Failed to connect to localhost port 7474: Connection refused On Wednesday, June 21, 2017 at 9:22:21 AM UTC+1, Michael

Re: [Neo4j] Auth Problem when connecting to Neo4j Server (Ubuntu)

2017-06-21 Thread apprentice321
curl -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -X GET -u neo4j:newpass1 http://localhost:7474/db/data/transaction { "errors" : [ { "code" : "Neo.ClientError.Security.Unauthorized", "message" : "Invalid username or password." } ] } On Wednesday,

Re: [Neo4j] Auth Problem when connecting to Neo4j Server (Ubuntu)

2017-06-21 Thread apprentice321
But I still get "Invalid username or password."" on curl -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -X POST -u neo4j:newpass1 http://localhost:7474/db/data/cypher -d '{ > "query" : "CREATE (n:Person { name : {name} }) RETURN n", > "params" : { > "nam

[Neo4j] Auth Problem when connecting to Neo4j Server (Ubuntu)

2017-06-20 Thread apprentice321
I'm trying to setup neo4j on ubuntu virtual server but having issues connecting. curl -H "Accept: application/json; charset=UTF-8" -H "Content-Type: application/json" -X POST http://localhost:7474/db/data/cypher -d '{ > "query" : "CREATE (n:Person { name : {name} }) RETURN n", > "params" : {

[Neo4j] Neo4JConfig Error

2016-10-06 Thread apprentice321 via Neo4j
Hi Michael, I'm getting the following error on Neo4JConfig Class when I run Web App. Any Suggestions? Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the ori

[Neo4j] Caused by: java.lang.IllegalStateException: No thread-bound request found

2016-10-06 Thread apprentice321 via Neo4j
I'm getting the following error on Neo4JConfig Class when running the Web App. Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?

[Neo4j] Scope 'session' is not active for the current thread; IllegalStateException: No thread-bound request found

2016-10-06 Thread apprentice321 via Neo4j
I'm getting the following error on Neo4JConfig Class when running the Web App. Caused by: java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread?

[Neo4j] A possible Spring Data Bug on Cypher Query?

2016-10-03 Thread apprentice321 via Neo4j
The following query should return the account sorted by the number "followers" in desc order, with a limit. It takes 2 variables as params (maxCount and limit). MaxiCount refers to a numbers of followers. so if maxCount is 100, then return all accounts that have followers less than 100.

[Neo4j] A possible Spring Data Bug on Cypher Query?

2016-10-03 Thread apprentice321 via Neo4j
The following query should return the account sorted by the number "followers" in desc order, with a limit. It takes 2 variables as params (maxCount and limit). MaxiCount refers to a numbers of followers. so if maxCount is 100, then return all accounts that have followers less than 100.

[Neo4j] Neo4J Embedded Driver Configuration Error

2016-09-30 Thread apprentice321 via Neo4j
Im trying to Setup Neo4J Embedded Driver but I'm getting the following Error. Spring Neo4jVersion: 4.1.3.RELEASE g.AbstractMethodError: org.springframework.data.repository.core.support.RepositoryFactorySupport.getTargetRepository(Lorg/springframework/data/repository/core/RepositoryInforma

[Neo4j] Cypher Query misbehaving

2016-09-29 Thread apprentice321 via Neo4j
I need to retrieve a list of Objects sorted by the number of followers an Account has. If param maxCount is 3 then it should retrieve all accounts that have less than 3 followers. I'm not sure why the following query is misbehaving. For example if Account1 has 3 followers and Account2 h

[Neo4j] How to retrieve a sorted list of objects based on number of incoming relationship

2016-09-29 Thread apprentice321 via Neo4j
I have an Account object that has a "Incoming" relation with other Account Objects. I need a couple of cypher queries that retrieve a complete list of accounts sorted by the number of followers each Account. Query 1: If, Account One has to 200 followers and Account Two has 100, then Acc

[Neo4j] How to retrieve a sorted list of objected based on incoming relationship count

2016-09-29 Thread apprentice321 via Neo4j
I have an Account object that has a "Incoming" relation with other Account Objects. I need a couple of cypher queries that retrieve a complete list of accounts sorted by the number of followers each Account. Query 1: If, Account One has to 200 followers and Account Two has 100, then Acco

[Neo4j] How retrieve a sorted list based on relationship count.

2016-09-29 Thread apprentice321 via Neo4j
I have an Account object that has a "Incoming" relation with other Account Objects. I need a couple of cypher queries that retrieve a complete list of accounts sorted by the number of followers each Account. Query 1: If, Account One has to 200 followers and Account Two has 100, then Ac

[Neo4j] Retrieve a List of Object sorted by numbers of Followers.

2016-09-29 Thread apprentice321 via Neo4j
I have an Account object that has a "Incoming" relation with other Account Objects. I need a cypher query that retrieves a complete list of accounts sorted by the number of followers each Account. So if, account 1 has to 200 followers and account 2 has 100, then account 1 will at the top

[Neo4j] Re: SDK Node.deleteAll() fails (nodes still exist in database)

2015-05-07 Thread apprentice321
I should add, I am using a neo4j server as opposed to the embedded database. On Thursday, May 7, 2015 at 5:27:21 PM UTC+1, appren...@googlemail.com wrote: > > Hi, > > Querying database immediately after calling "GraphRepository.deleteAll" > seems to return positive. Any suggestions why this co

[Neo4j] Re: SDK Node.deleteAll() fails (nodes still exist in database)

2015-05-07 Thread apprentice321
I don't see a solution in that discussion. On Thursday, May 7, 2015 at 7:32:11 PM UTC+1, Sumit Gupta wrote: > > I find some old discussion around deleteAll(). (Thanks to Michael) > > https://groups.google.com/forum/#!topic/neo4j/wH0CGTjBC-A > > > Please see if it helps. > > Thanks, > Sumit > > On

[Neo4j] SDK Node.deleteAll() fails (nodes still exist in database)

2015-05-07 Thread apprentice321
Hi, Querying database immediately after calling "GraphRepository.deleteAll" seems to return positive. Any suggestions why this could be failing? Perhaps this is a bug? Spring Data Neo4j Version = 3.3.0.RELEASE Neo4j Community Version = 2.0.2 Test Case @Test public void testDeleteAll() {

[Neo4j] SDK Node.deleteAll() fails (nodes still exist in database)

2015-05-07 Thread apprentice321
Hi, Querying database immediately after calling "GraphRepository.deleteAll" seems to return positive. I tried to override the deleteAll() with "Query("MATCH (j:Junction) WHERE ID(j)={0} DELETE j")" but this does not work either. Any suggestions why this could be failing? Perhaps this is a bu

Re: [Neo4j] Problem running Solr alongside Neo4j (Spring Data)

2015-04-29 Thread apprentice321
Any news on Lucene 4.0 update? On Monday, September 16, 2013 at 12:15:36 AM UTC+1, Michael Hunger wrote: > > Not much you can do. > > Neo4j will hopefully be upgraded to Lucene 4.0 at some point, but I don't > know when. > You might be able to just drop it in and exclude the 3.6 dependency, but

Re: [Neo4j] Re: Correct Cypher Query to return all Objects that match the ids.

2014-09-01 Thread apprentice321
I assumed it was a typo so I replaced it with quotes. I placed it back. On Monday, September 1, 2014 1:12:09 PM UTC+1, Michael Hunger wrote: > > These were not single quotes but backticks!! > > Am 01.09.2014 um 14:07 schrieb appren...@googlemail.com : > > Works after removing the single quotes.

[Neo4j] Re: Correct Cypher Query to return all Objects that match the ids.

2014-09-01 Thread apprentice321
Works after removing the single quotes. On Monday, September 1, 2014 12:42:02 PM UTC+1, Mark Findlater wrote: > > It looks like accountId is not the Node ID, is that correct? In which case > I think that you should be using something like: > > Query("MATCH (account:`Account`) WHERE account.acc

[Neo4j] Correct Cypher Query to return all Objects that match the ids.

2014-09-01 Thread apprentice321
Whats the correct cypher query to return all accounts matching the property "accountId" contained in a list. Here is my attempt. @Query("start account=node:(*) ID(account) in account.accountIds{accountIds} return account;") public List findAllByAccountId(Set ids); -- You received this me

[Neo4j] Correct @Query Syntax?

2014-07-07 Thread apprentice321
Trying retrieve all acocuntId's that have 'follows' relationship with game, I may have missed something in Query (line 16) as it is returning empty. 1. Class Account{ 2. 3. private Long accountId; 4. 5. @Fetch 6. @RelatedTo(type="follows", 7. direction=

Re: [Neo4j] Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-07-03 Thread apprentice321
solved. On Tuesday, April 15, 2014 2:42:31 PM UTC+1, Michael Hunger wrote: > > Do you have a small test project that reproduces the error in a controlled > setup? > > Thanks a lot Michael > > Am 15.04.2014 um 13:54 schrieb appren...@googlemail.com : > > Recently upgraded to Spring Data Neo4 versi

Re: [Neo4j] Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-07-03 Thread apprentice321
I tried passing the package using setBasePackage via the constructor but I get the same Exception. On Tuesday, April 15, 2014 2:42:31 PM UTC+1, Michael Hunger wrote: > > Do you have a small test project that reproduces the error in a controlled > setup? > > Thanks a lot Michael > > Am 15.04.2014

Re: [Neo4j] Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-07-03 Thread apprentice321
I tried adding passing the package using setBasePackage via the constructor but I get the same Exception. On Tuesday, April 15, 2014 2:42:31 PM UTC+1, Michael Hunger wrote: > > Do you have a small test project that reproduces the error in a controlled > setup? > > Thanks a lot Michael > > Am 15.

Re: [Neo4j] Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-16 Thread apprentice321
Can you help me out? I really need this feature. On Saturday, June 14, 2014 6:34:16 PM UTC+1, Michael Hunger wrote: > > Sorry, was out the whole week for a conference with little time for > anything else. > > Cross Store is tricky anyway. > > Michael > > Am 14.06.2014 um 14:11 schrieb appren...@

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-14 Thread apprentice321
Michael, any ideas? On Tuesday, June 10, 2014 4:08:22 PM UTC+1, appren...@googlemail.com wrote: > > I uploaded small Project simulating the problem. Unzip and run > AccountTester.class. It should throw the Exception. > > > -- You received this message because you are subscribed to the Google

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-12 Thread apprentice321
Anybody has any feedback? On Tuesday, June 10, 2014 4:08:22 PM UTC+1, appren...@googlemail.com wrote: > > I uploaded small Project simulating the problem. Unzip and run > AccountTester.class. It should throw the Exception. > > > -- You received this message because you are subscribed to the Go

[Neo4j] Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity (Update)

2014-06-05 Thread apprentice321
Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity (Update) I made some changes since my last post, I have replaced 'Neo4jConfiguration' with 'CrossStoreNeo4jConfiguration' (see code below), however the Exception is the same "hibernate MappingException: Could not dete

[Neo4j] Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity (Update)

2014-06-05 Thread apprentice321
I made some changes since my last post, I have replaced 'Neo4jConfiguration' with 'CrossStoreNeo4jConfiguration' (see code below), however the Exception is the same "hibernate MappingException: Could not determine type for: java.util.Set" ( still remains (see original post below). Any feedback

Re: [Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
Here is my entire Jpa/Neo4J Setup. Maybe I overlooked something? In the meantime I will remove @Transient from the collections, resort back to the stage where I got the Exception (see initial post). //Jpa Setup @Configuration @EnableTransactionManagement(mode=AdviceMode.ASPECTJ) @EnableJpaRepo

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
Update: By adding "@Transient" above the Collection name (followers) makes the Exception go away. Not sure i should be using @Transient becuase don't see any references to the annotation in the Manual or Spring Neo4 Example (@GraphProperty should be enough). Now the Neo4J Property (followers)

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
Update: By adding "@Transient" above the collection name (followers) makes the Exception go away but I don't see any references of using @Transien in the Docs or the Manual. Now the Neo4J Property (followers) is not being saved while JPA Properties do. On Tuesday, June 3, 2014 4:23:34 PM UTC+

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
Update: By adding "@Transient" above the collection named "followers" makes then Exception go away, however Object is not persistence is not permanent, e.g. Object returned after initial save is positive however subsequent queries for the same object returns null. On Tuesday, June 3, 2014 4:

[Neo4j] Re: Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
By adding "@Transient" above the collection causes the Exception to go away but it is not saved permanently, Object returned upon initial svae seems to be positive but subsequent queries for the same object returns null. Any ideas? On Tuesday, June 3, 2014 4:23:34 PM UTC+1, appren...@googlemail

[Neo4j] Could not determine type for: java.util.Set for Jpa/Neo4J Cross Store Entity

2014-06-03 Thread apprentice321
I have a Jpa entity which also acts as a Neo4j cross store. Most of the fields in the entity are saved to Mysql database except the Collection 'followers', which is stored in Neo4j. The problem is with the Collection 'followers'. it throws the exception "hibernate MappingException: Could not

[Neo4j] Retrieving Count(*) for Outgoing/Incoming Relationship Indivudally

2014-05-26 Thread apprentice321
I have a Object with following/follow relationship (see extract below). I'd like to retrieve the Count(*) for each of these relationship(incoming/outgoing) using Cypher Query. I tried the following but getting error near the word (DIRECTION). START user=node({0}) MATCH user-[:FOLLOWS]-() WHER

Re: [Neo4j] Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-04-16 Thread apprentice321
I take a look. I think I'll stick with the 3.0.0 in the meantime. On Tuesday, April 15, 2014 2:42:31 PM UTC+1, Michael Hunger wrote: > > Do you have a small test project that reproduces the error in a controlled > setup? > > Thanks a lot Michael > > Am 15.04.2014 um 13:54 schrieb appren...@googl

[Neo4j] Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-04-15 Thread apprentice321
Recently upgraded to Spring Data Neo4 version -3.0.1-Release (from 2.x Release). I modified @Configuration file to reflect the settings explained here http://blog.neo4j.org/2014/03/spring-data-neo4j-progress-update-sdn-3.html. The upgrade seems to be the cause of the following exceptions. Do

[Neo4j] "Unknown persistent entity Error" after upgrade to 3.0.1.Release

2014-04-14 Thread apprentice321
I recently upgraded to Spring Data Neo4 version -3.0.1-Release. The upgrade seems to be the cause of the errors (everything was fine before upgrade). I modified @Configuration file to reflect the settings explained here http://blog.neo4j.org/2014/03/spring-data-neo4j-progress-update-sdn-3.html.

Re: [Neo4j] NullPointer Exception on Derived Cypher Repository Query

2013-12-22 Thread apprentice321
Thanks On Sunday, December 22, 2013 11:18:27 PM UTC, Michael Hunger wrote: > > The derived query is mapped to a cypher statement which due to a > shortcoming in the lucene query parser cannot deal with indexed numeric > values. > > Either index your data with @Indexed(..., numeric=false) or use

[Neo4j] NullPointer Exception on Derived Cypher Repository Query

2013-12-22 Thread apprentice321
I have a field called stuckId (annotated with @indexed) in the @NodeEntity Class, for which I have a method called "findByStuckId(int id)" in the GraphRepository Class. When I try to retrieve the object by calling the findByStuckId(int id) I get a NullPointer Exception, however if I use "findB

Re: [Neo4j] Cause of following RestResultException?

2013-12-22 Thread apprentice321
Well spotted. Thanks On Sunday, December 22, 2013 9:04:04 PM UTC, Michael Hunger wrote: > > You delete all and after that you look for the node? > > > userGraphService.deleteAll(); > > > Sent from mobile device > > Am 22.12.2013 um 21:31 schrieb appren...@googlemail.com : > > Can somebody give

Re: [Neo4j] Cause of following RestResultException?

2013-12-22 Thread apprentice321
I'm creating a new Node and then retrieving the object within the same method (Testing). Take a closer look at method "testFindById()" (see initial post) Thanks On Sunday, December 22, 2013 8:36:18 PM UTC, Peter Neubauer wrote: > > Seems you are looking for a non existing mode. Can you check i

[Neo4j] Cause of following RestResultException?

2013-12-22 Thread apprentice321
Can somebody give me some feedback in relation to the "RestResultException" (see full trace below). Note: I deleted the following folder in my initial attempt to clear the database. Could this be the reason for the cause of above Exception? I did recreate the folder but I noticed it not rep