[Neo4j] How to get @Context from Security Authorization rule class
___ NOTICE: THIS MAILING LIST IS BEING SWITCHED TO GOOGLE GROUPS, please register and consider posting at https://groups.google.com/forum/#!forum/neo4j Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Log message for unmanaged extension
Hi, I tried to debug my unmanaged extension with private static final Logger log = Logger.getLogger(Register.class); and generate a message like: log.warn(passed check point 1); But I couldn't find any these messages from any log files, neo4j.0.0.log, console.log, message.log...etc How should I setup the log message? Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Server log file for HA
Hi, I could not find any log message for unmanaged extension when a 500 error respond generated in HA configuration.Does neo4j rest server generate any message for unmanaged extension? I was trying to use JAXB for JSON respond of an object but get the 500 error respond. But I can successfully get a XML respond.Any idea? Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Server log file for HA
Hi, I found log the file and the error message is: Oct 29, 2011 4:22:03 PM com.sun.jersey.spi.container.ContainerResponse writeSEVERE: A message body writer for Java class hk.itags.server.unmanaged.Todo, and Java type class hk.itags.server.unmanaged.Todo, and MIME media type application/json was not foundOct 29, 2011 4:22:03 PM com.sun.jersey.spi.container.ContainerResponse writeSEVERE: The registered message body writers compatible with the MIME media type are:*/* - com.sun.jersey.core.impl.provider.entity.FormProvider com.sun.jersey.core.impl.provider.entity.StringProvider com.sun.jersey.core.impl.provider.entity.ByteArrayProvider com.sun.jersey.core.impl.provider.entity.FileProvider com.sun.jersey.core.impl.provider.entity.InputStreamProvider com.sun.jersey.core.impl.provider.entity.DataSourceProvider com.sun.jersey.core.impl.provider.entity.XMLJAXBElementProvider$General com.sun.jersey.core.impl.provider.entity.ReaderProvider com.sun.jersey.core.impl.provider.entity.DocumentProvider com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider com.sun.jersey.core.impl.provider.entity.SourceProvider$SourceWriter com.sun.jersey.server.impl.template.ViewableMessageBodyWriter com.sun.jersey.core.impl.provider.entity.XMLRootElementProvider$General com.sun.jersey.core.impl.provider.entity.XMLListElementProvider$General Oct 29, 2011 4:22:03 PM com.sun.jersey.spi.container.ContainerResponse traceExceptionSEVERE: Mapped exception to response: 500 (Internal Server Error)javax.ws.rs.WebApplicationException at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:273) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1140) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:926) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) From: ccp...@hotmail.com To: user@lists.neo4j.org Date: Sat, 29 Oct 2011 06:49:51 + Subject: [Neo4j] Server log file for HA Hi, I could not find any log message for unmanaged extension when a 500 error respond generated in HA configuration.Does neo4j rest server generate any message for unmanaged extension? I was trying to use JAXB for JSON respond of an object but get the 500 error respond. But I can successfully get a XML respond.Any idea? Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Iterable handling in unmanaged server extension
Hi, is the Neo4j specific annotations for managed server plugin still available for unmanaged extension?Or do I have to use all Jersey annotations instead? Regards, Brendan From: peter.neuba...@neotechnology.com Date: Sun, 23 Oct 2011 04:46:02 + To: user@lists.neo4j.org Subject: Re: [Neo4j] Iterable handling in unmanaged server extension Brendan, the docs for the API are at http://docs.neo4j.org/chunked/snapshot/rest-api.html, let us know if this is good info for you. Regarding the filtering, Jim, do you have any thoughts on this? It seems that this looks a lot like the security rules that are in the server, see http://docs.neo4j.org/chunked/snapshot/security-server.html#_server_authorization_rules . In there, you can intercept access to the REST API faine-grained. If you got access to the database instance, you could even look up nodes and act according to the content, as you mentioned. Would having access to a database instance from within a security rule be a solution to your usecase? Otherwise, yes, writing your own REST API is of course possible with the unmanaged extensions. Let me know if I can help you with that. Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/- Öresund - Innovation happens HERE. On Sun, Oct 23, 2011 at 2:19 AM, Brendan cheng ccp...@hotmail.com wrote: I'm trying to write my own restful api so that for each request a check of password with usernode is needed and response will depends who the user is and which method the user request. Because your restful api only return node relationship and path and their iterable, certain info inside the property will not be able to be hidden for user, it seems there is only the unmanaged way can achieve it. right? so I will have managed something similar to your api. Your restful api is quite complicated to me to follow. any doc of it? brendan -Original Message- From: Peter Neubauer Sent: 23 Oct 2011 01:09:45 GMT To: Neo4j user discussions Subject: Re: [Neo4j] Iterable handling in unmanaged server extension Brendan, are these iterables of Nodes, Relationships or Properties? If so, you should not need to do unmanaged extension but just write your server plugin, http://docs.neo4j.org/chunked/snapshot/server-plugins.html Otherwise, what kind of return are you looking for (maybe pseudo code)? Cheers, /peter neubauer GTalk:� � � neubauer.peter Skype� � �� peter.neubauer Phone� � �� +46 704 106975 LinkedIn�� http://www.linkedin.com/in/neubauer Twitter� � � http://twitter.com/peterneubauer http://www.neo4j.org� � � � � � ��- NOSQL for the Enterprise. http://startupbootcamp.org/ � �- �resund - Innovation happens HERE. On Sat, Oct 22, 2011 at 11:19 AM, Brendan cheng ccp...@hotmail.com wrote: Hi, I'm trying to produce Iterable results from unmanaged server extension and not sure how to achieve it.In your code, this should already be done so. �Could you show me where the code is which I tried to find but failed? Thanks in advance, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Iterable handling in unmanaged server extension
Hi, I'm trying to produce Iterable results from unmanaged server extension and not sure how to achieve it.In your code, this should already be done so. Could you show me where the code is which I tried to find but failed? Thanks in advance, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Iterable handling in unmanaged server extension
I'm trying to write my own restful api so that for each request a check of password with usernode is needed and response will depends who the user is and which method the user request. Because your restful api only return node relationship and path and their iterable, certain info inside the property will not be able to be hidden for user, it seems there is only the unmanaged way can achieve it. right? so I will have managed something similar to your api. Your restful api is quite complicated to me to follow. any doc of it? brendan -Original Message- From: Peter Neubauer Sent: 23 Oct 2011 01:09:45 GMT To: Neo4j user discussions Subject: Re: [Neo4j] Iterable handling in unmanaged server extension Brendan, are these iterables of Nodes, Relationships or Properties? If so, you should not need to do unmanaged extension but just write your server plugin, http://docs.neo4j.org/chunked/snapshot/server-plugins.html Otherwise, what kind of return are you looking for (maybe pseudo code)? Cheers, /peter neubauer GTalk:� � � neubauer.peter Skype� � �� peter.neubauer Phone� � �� +46 704 106975 LinkedIn�� http://www.linkedin.com/in/neubauer Twitter� � � http://twitter.com/peterneubauer http://www.neo4j.org� � � � � � ��- NOSQL for the Enterprise. http://startupbootcamp.org/ � �- �resund - Innovation happens HERE. On Sat, Oct 22, 2011 at 11:19 AM, Brendan cheng ccp...@hotmail.com wrote: Hi, I'm trying to produce Iterable results from unmanaged server extension and not sure how to achieve it.In your code, this should already be done so. �Could you show me where the code is which I tried to find but failed? Thanks in advance, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to build neo4j projects from GitHub
I'm building the community project which I can successfully done through command line, mvn clean install. The problem is only when importing to eclipse. something class files are missing. they are all in Cypher project like org.neo4j.cypher.SyntaxException, org.neo4j.cypher.commands.Query. in the Cypher project, there are only org.neo4j.cypher.javacompat package. does the pom link to a wrong cypher project? Brendan Date: Tue, 18 Oct 2011 01:20:20 +0200 From: and...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Hi! AFAIK, this is an Eclipse Indigo annoyance. Does sound a bit strange, as we already told Eclipse/m2e how to handle that execution by the configuration over here: https://github.com/neo4j/parent-central/blob/master/pom.xml#L357 Maybe you just need to do (project) - Maven - Update Project Configuration? Sometimes that is needed after an import in order to get Eclipse properly configured. /anders 2011-10-15 13:09, Brendan cheng skrev: I was using the import from eclipse GUI so...no log message but a screen shot which I attached. Date: Sat, 15 Oct 2011 12:41:28 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub That sounds ok. Would like to see the full log... /peter Sent from my phone. On Oct 15, 2011 12:36 PM, Brendan chengccp...@hotmail.com wrote: Peter,It is from Maven 3.0.2. What version shall we use? Brendan Date: Sat, 15 Oct 2011 12:32:07 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Brendan, What maven version, could you submit the whole maven log? Sounds like some mvn3 stuff ... /peter On Saturday, October 15, 2011, Brendan chengccp...@hotmail.com wrote: After adding neo4j maven repository, no more artifacts missing but have this: No marketplace entries found to handle Execution check-licenses, in server-enterprise/pom.xml in Eclipse. Please see Help for more information. Any tips for that? From: ccp...@hotmail.com To: user@lists.neo4j.org Subject: How to build neo4j projects from GitHub Date: Fri, 14 Oct 2011 06:29:45 + Hi, I was trying to clone Neo4j enterprise from Github to a local directory and import it to Eclipse.There were so many artifacts missing, parent path not found...etc. is there any way to solve the problems? Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user [Neo4j] How to build neo4j projects from GitHub http://skydrive.live.com/redir.aspx?cid=b63b5ad3a690c14fpage=browseresid=B63B5AD3A690C14F!474type=5Bpub=SDX.PhotosBsrc=Photomailauthkey=66Hwj2qLGtw%24 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to build neo4j projects from GitHub
After adding neo4j maven repository, no more artifacts missing but have this: No marketplace entries found to handle Execution check-licenses, in server-enterprise/pom.xml in Eclipse. Please see Help for more information. Any tips for that? From: ccp...@hotmail.com To: user@lists.neo4j.org Subject: How to build neo4j projects from GitHub Date: Fri, 14 Oct 2011 06:29:45 + Hi, I was trying to clone Neo4j enterprise from Github to a local directory and import it to Eclipse.There were so many artifacts missing, parent path not found...etc. is there any way to solve the problems? Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to build neo4j projects from GitHub
Peter,It is from Maven 3.0.2. What version shall we use? Brendan Date: Sat, 15 Oct 2011 12:32:07 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Brendan, What maven version, could you submit the whole maven log? Sounds like some mvn3 stuff ... /peter On Saturday, October 15, 2011, Brendan cheng ccp...@hotmail.com wrote: After adding neo4j maven repository, no more artifacts missing but have this: No marketplace entries found to handle Execution check-licenses, in server-enterprise/pom.xml in Eclipse. Please see Help for more information. Any tips for that? From: ccp...@hotmail.com To: user@lists.neo4j.org Subject: How to build neo4j projects from GitHub Date: Fri, 14 Oct 2011 06:29:45 + Hi, I was trying to clone Neo4j enterprise from Github to a local directory and import it to Eclipse.There were so many artifacts missing, parent path not found...etc. is there any way to solve the problems? Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] How to build neo4j projects from GitHub
I was using the import from eclipse GUI so...no log message but a screen shot which I attached. Date: Sat, 15 Oct 2011 12:41:28 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub That sounds ok. Would like to see the full log... /peter Sent from my phone. On Oct 15, 2011 12:36 PM, Brendan cheng ccp...@hotmail.com wrote: Peter,It is from Maven 3.0.2. What version shall we use? Brendan Date: Sat, 15 Oct 2011 12:32:07 +0200 From: peter.neuba...@neotechnology.com To: user@lists.neo4j.org Subject: Re: [Neo4j] How to build neo4j projects from GitHub Brendan, What maven version, could you submit the whole maven log? Sounds like some mvn3 stuff ... /peter On Saturday, October 15, 2011, Brendan cheng ccp...@hotmail.com wrote: After adding neo4j maven repository, no more artifacts missing but have this: No marketplace entries found to handle Execution check-licenses, in server-enterprise/pom.xml in Eclipse. Please see Help for more information. Any tips for that? From: ccp...@hotmail.com To: user@lists.neo4j.org Subject: How to build neo4j projects from GitHub Date: Fri, 14 Oct 2011 06:29:45 + Hi, I was trying to clone Neo4j enterprise from Github to a local directory and import it to Eclipse.There were so many artifacts missing, parent path not found...etc. is there any way to solve the problems? Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user [Neo4j] How to build neo4j projects from GitHub http://skydrive.live.com/redir.aspx?cid=b63b5ad3a690c14fpage=browseresid=B63B5AD3A690C14F!474type=5Bpub=SDX.PhotosBsrc=Photomailauthkey=66Hwj2qLGtw%24 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Best practice for User Authentication and Authorization
Hi, What design pattern do you recommend for user authentication and authorization in neo4j graph?I'm searching a simple and flexible way to restrict the access to certain part of graph which is dynamically depends on the user and role...etc.How to avoid excessive traversing? Any idea is appreciated! Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Any experience sharing on running Neo4j in Cloudbees
Hi, Do you have any experience in running Neo4j server or Neo4j HA on CLoudBees?I'm evaluating this solution and would like to hear your valuable experience or tips. Thanks, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Possibility of extending Zookeeper features to App Server
Hi, I'm very interested your HA architecture and wonder if possible to extend the zookeeper features in order to cover the jobs for an app server. So that, we can have much simply architecture. The jobs for app server includes user authentication, encryption service for communication..etc. from your experience, is this going to work or what is a preferred architecture? Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Trouble with Exclude and Continue in Traversal
Hi, I wrote a Traversal Description which runs quite well but not after adding a timestamp check to filter the older nodes. It crashed. I used a Exclude and Continue in the evaluator as follow: Traversal.description().order(Traversal.postorderBreadthFirst()).evaluator( new Evaluator() { @Override public Evaluation evaluate(Path path) { if (path.length() 0) { Relationship rel = path.lastRelationship(); Node node = path.endNode(); //for incoming relationship if (!rel.getEndNode().equals(node)) { return Evaluation.EXCLUDE_AND_PRUNE; } --- if (!rel.hasProperty(UPDATED_DATE) ---|| ((Long) rel.getProperty(UPDATED_DATE) = timestamp)) { ---return Evaluation.EXCLUDE_AND_CONTINUE; --- } //checking the stopping class type Class C; try { C = Class.forName(node.getProperty(NodeImpl.CLASS).toString()); if (C == PersonImpl.class || C == CompanyImpl.class || C == CompanyUserImpl.class || C == GuestUserImpl.class) { return Evaluation.INCLUDE_AND_PRUNE; } } catch (ClassNotFoundException ex) { log.trace(ex); } } if (path.length() 0 endNodeOccursPreviouslyInPath(path)) { return Evaluation.INCLUDE_AND_PRUNE; } return Evaluation.INCLUDE_AND_CONTINUE; } private boolean endNodeOccursPreviouslyInPath(Path path) { Node endNode = path.endNode(); int counter = 0; for (Node node : path.nodes()) { if (counter++ path.length() node.equals(endNode)) { return true; } } return false; } }); and the error message is: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:131) at com.sun.jersey.api.client.Client.handle(Client.java:616) at com.sun.jersey.api.client.WebResource.handle(WebResource.java:559) at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:72) at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:454) at com.itags.implement.GuestUserImpl.UpdateRelatedRelationships(GuestUserImpl.java:315) at com.itags.implement.GuestUserImpl.Update(GuestUserImpl.java:232) at itagsdemo.async.UserDataReload.run(UserDataReload.java:28) at com.sun.javafx.async.TaskImpl.run(TaskImpl.java:66) at com.sun.javafx.async.desktop.DesktopTaskManager$IOCallable.call(DesktopTaskManager.java:65) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:760) at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at
[Neo4j] How to trim first couple nodes from path in traversal framework?
Hi, I would like to fetch a ending portion of a path where the timestamp of the relationship match. for example: (Node 1)---2pm(Node 3)---3PM---(Node 4)4PM---(Node 64) from the above , I only want the subpath starting from Node 4 onward for the timestamp greater than 3:30PM How could I code evaluator to do it? Thanks in advance, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] How to filter the duplicated nodes or relationship in traverser?
Hi, I setup a traversal description with Uniqueness.NODE_PATH and the side effect is duplicated nodes output. How to filter the duplicated output in nodes and relationship under your Transversal Framework? Also, this link isn't working http://components.neo4j.org/neo4j-kernel/apidocs/org/neo4j/kernel/Traversal.html#returnAllButStartNode() Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] ServerPlugin doesn't support Node as PluginTarget
Hi I can't successfully load and server plugin module with Node as plugin target but no problem with GraphDatabaseService even with your example like DepthTwo. cheers, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Any difference in using nested Transaction in ServerPlugin Module?
Hi I received message : Unable to commit transaction, exception : org.neo4j.graphdb.TransactionFailureException: Unable to commit transaction, stacktrace : [ org.neo4j.kernel.TopLevelTransaction.finish(TopLevelTransaction.java:98), After I used Nested Transaction in my serverplugin module which internally calls couple other functions within a class. Any thing I should be aware of? Cheers Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] ServerPlugin example GetAll failed to load
Hi, I tried to load the GetAll example into ServerPlugin directory of 1.3.M03 but found: 22:58:28 | 850 [WrapperSimpleAppMain] WARN org.neo4j.server.plugins.PluginManager - Failed to load plugin: ServerPlugin[GetAll] INFO | jvm 1| 2011/02/27 22:58:28 | java.lang.IllegalArgumentException: Name contains illegal characters INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.ServerPlugin.verifyName(ServerPlugin.java:120) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.PluginPoint.init(PluginPoint.java:36) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.PluginMethod.init(PluginMethod.java:40) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.PluginPointFactoryImpl.createFrom(PluginPointFactoryImpl.java:98) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.ServerPlugin.getDefaultExtensionPoints(ServerPlugin.java:175) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.ServerPlugin.loadServerExtender(ServerPlugin.java:152) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.PluginManager.init(PluginManager.java:57) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.plugins.PluginManager.init(PluginManager.java:45) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.modules.RESTApiModule.loadPlugins(RESTApiModule.java:75) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.modules.RESTApiModule.start(RESTApiModule.java:50) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.NeoServerWithEmbeddedWebServer.startModules(NeoServerWithEmbeddedWebServer.java:114) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.NeoServerWithEmbeddedWebServer.start(NeoServerWithEmbeddedWebServer.java:83) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.BootStrapper.start(BootStrapper.java:62) INFO | jvm 1| 2011/02/27 22:58:28 | at org.neo4j.server.BootStrapper.main(BootStrapper.java:115) INFO | jvm 1| 2011/02/27 22:58:28 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) INFO | jvm 1| 2011/02/27 22:58:28 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) INFO | jvm 1| 2011/02/27 22:58:28 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) INFO | jvm 1| 2011/02/27 22:58:28 | at java.lang.reflect.Method.invoke(Method.java:597) INFO | jvm 1| 2011/02/27 22:58:28 | at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:272) INFO | jvm 1| 2011/02/27 22:58:28 | at java.lang.Thread.run(Thread.java:662) I have changed a character from your example. Any idea? where can I locate your ServerPlugin.java file? Cheers, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Maven clean install error The source must not be a directory
Hi, I tried to build from the source code with Maven but failed with The source must not be a directory. I did some search on internet found this is a unresolved bug. I wonder how do you overcome it? Cheers, Brendan --- maven-dependency-plugin:2.1:unpack-dependencies (get-sources) @ neo4j --- Unpacking C:\neo4j\com\target\classes to C:\neo4j\neo4j\target\sources with includes null and excludes:null org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory. at org.codehaus.plexus.archiver.AbstractUnArchiver.validate(AbstractUnArchiver.java:174) at org.codehaus.plexus.archiver.AbstractUnArchiver.extract(AbstractUnArchiver.java:107) at org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(AbstractDependencyMojo.java:260) at org.apache.maven.plugin.dependency.UnpackDependenciesMojo.execute(UnpackDependenciesMojo.java:90) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Reactor Summary: Neo4j - Graph Database Kernel . SUCCESS [7.535s] Neo4j - Graph Database Monitoring and Management tools SUCCESS [1.794s] Neo4j - Communication Package . SUCCESS [6.068s] Neo4j - Usage Data Collection . SUCCESS [1.092s] Neo4j - Lucene Index .. SUCCESS [2.418s] Neo4j - Graph Algorithms .. SUCCESS [1.872s] Neo4j - High Availability . SUCCESS [2.465s] Neo4j . FAILURE [0.608s] Neo4j Embedded Build .. SKIPPED BUILD FAILURE Total time: 24.632s Finished at: Thu Feb 24 11:05:41 CST 2011 Final Memory: 40M/247M [ERROR]Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.1:unpack-dependencies (get-sources) on project neo4j: Error unpacking file: C:\neo4j\com\target\classes to: C:\neo4j\neo4j\target\sources [ERROR]org.codehaus.plexus.archiver.ArchiverException: The source must not be a directory. [ERROR]- [Help 1] [ERROR] [ERROR]To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR]Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR]For more information about the errors and possible solutions, please read the following articles: [ERROR][Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException [ERROR] [ERROR]After correcting the problems, you can resume the build with the command [ERROR] mvn goals -rf :neo4j ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Online backup works in full but not incremental
Hi Mattias, Does the latest online backup work on backup to a running read only db? Brendan On 21 February 2011 23:09, user-requ...@lists.neo4j.org wrote: Date: Mon, 21 Feb 2011 15:27:30 +0100 From: Mattias Persson matt...@neotechnology.com Subject: Re: [Neo4j] Online backup works in full but not incremental To: Neo4j user discussions user@lists.neo4j.org Message-ID: AANLkTikS26vv=aqk45jjqjijz+kdxnuzdtbp1o_sq...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 I just can't reproduce your problems. How are you doing backup? It looks like (from your wrapper.log) that it's the server which somehow requests to do the incremental backup. Aren't you doing backup of the server database? 2011/2/21 Brendan Cheng ccp...@gmail.com Tobias, Here s the stack trace and part of the wrapper.log: run: Mon Feb 21 10:28:59 CST 2011: Client connected to 192.168.1.101:6362 Mon Feb 21 10:29:00 CST 2011: Opened a new channel to /192.168.1.101:6362 21-Feb-2011 10:29:20 itags.Sync.SyncData main SEVERE: null org.neo4j.com.ComException: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.incrementalBackup(BackupClient.java:48) at org.neo4j.com.backup.OnlineBackup.incremental(OnlineBackup.java:115) at org.neo4j.com.backup.OnlineBackup.incremental(OnlineBackup.java:105) at itags.Sync.SyncData.RunningOnlineBackup(SyncData.java:57) at itags.Sync.SyncData.main(SyncData.java:247) Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61) at org.neo4j.com.Client$2.readNext(Client.java:155) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 5 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57) ... 10 more Do I miss any configuration? cheers, Brendan Date: Mon, 21 Feb 2011 01:11:19 +0800 From: Brendan ccp...@gmail.com Subject: [Neo4j] Online backup works in full but not incremental To: user@lists.neo4j.org user@lists.neo4j.org Message-ID: e837cb14-01f5-444b-ab96-6df17c41e...@gmail.com Content-Type: text/plain; charset=us-ascii Hi, After I install the neo4j on ubuntu server I'm able to backup the full database, even repeatedly but it crashed on incremental. I also fixed the problem with webadmin page loading but I found 2 issues: 1 the timeline graph can not be loaded on ie 8. 2 I experienced stack overflow on the webadmin page during the full online backup running. Also unresponsive in Save changes command issued from webadmin. I then tried webadmin from chrome and I saw the timeline graph but the add relationship panel loaded but not functional, can't enter the node I'd URL. Which browser is most compatible with webadmin? Your comment is highly appreciated! Brendan Sent from my iPad Date: Sun, 20 Feb 2011 19:07:02 +0100 From: Tobias Ivarsson tobias.ivars...@neotechnology.com Subject: Re: [Neo4j] Online backup works in full but not incremental To: Neo4j user discussions user@lists.neo4j.org Message-ID: AANLkTi=8uothpl9ptabewos_naqiz78pvusmnwvdo...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 20, 2011 at 6:11 PM, Brendan ccp...@gmail.com wrote: Hi, After I install the neo4j on ubuntu server I'm able to backup the full database, even repeatedly but it crashed on incremental. Could you please provide a stacktrace, and other kinds of error output from this crash. Thank you, -- Tobias Ivarsson tobias.ivars...@neotechnology.com Hacker, Neo Technology www.neotechnology.com Cellphone: +46 706 534857 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user -- Mattias Persson, [matt...@neotechnology.com] Hacker, Neo Technology www.neotechnology.com ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Online backup works in full but not incremental
Tobias, Here s the stack trace and part of the wrapper.log: run: Mon Feb 21 10:28:59 CST 2011: Client connected to 192.168.1.101:6362 Mon Feb 21 10:29:00 CST 2011: Opened a new channel to /192.168.1.101:6362 21-Feb-2011 10:29:20 itags.Sync.SyncData main SEVERE: null org.neo4j.com.ComException: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.incrementalBackup(BackupClient.java:48) at org.neo4j.com.backup.OnlineBackup.incremental(OnlineBackup.java:115) at org.neo4j.com.backup.OnlineBackup.incremental(OnlineBackup.java:105) at itags.Sync.SyncData.RunningOnlineBackup(SyncData.java:57) at itags.Sync.SyncData.main(SyncData.java:247) Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61) at org.neo4j.com.Client$2.readNext(Client.java:155) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 5 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57) ... 10 more Do I miss any configuration? cheers, Brendan Date: Mon, 21 Feb 2011 01:11:19 +0800 From: Brendan ccp...@gmail.com Subject: [Neo4j] Online backup works in full but not incremental To: user@lists.neo4j.org user@lists.neo4j.org Message-ID: e837cb14-01f5-444b-ab96-6df17c41e...@gmail.com Content-Type: text/plain; charset=us-ascii Hi, After I install the neo4j on ubuntu server I'm able to backup the full database, even repeatedly but it crashed on incremental. I also fixed the problem with webadmin page loading but I found 2 issues: 1 the timeline graph can not be loaded on ie 8. 2 I experienced stack overflow on the webadmin page during the full online backup running. Also unresponsive in Save changes command issued from webadmin. I then tried webadmin from chrome and I saw the timeline graph but the add relationship panel loaded but not functional, can't enter the node I'd URL. Which browser is most compatible with webadmin? Your comment is highly appreciated! Brendan Sent from my iPad Date: Sun, 20 Feb 2011 19:07:02 +0100 From: Tobias Ivarsson tobias.ivars...@neotechnology.com Subject: Re: [Neo4j] Online backup works in full but not incremental To: Neo4j user discussions user@lists.neo4j.org Message-ID: AANLkTi=8uothpl9ptabewos_naqiz78pvusmnwvdo...@mail.gmail.com Content-Type: text/plain; charset=ISO-8859-1 On Sun, Feb 20, 2011 at 6:11 PM, Brendan ccp...@gmail.com wrote: Hi, After I install the neo4j on ubuntu server I'm able to backup the full database, even repeatedly but it crashed on incremental. Could you please provide a stacktrace, and other kinds of error output from this crash. Thank you, -- Tobias Ivarsson tobias.ivars...@neotechnology.com Hacker, Neo Technology www.neotechnology.com Cellphone: +46 706 534857 ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] webadmin failed to show full page in ubuntu Java
Hi, I tried to run the Webadmin from newly installed Linux ubuntu 10.0.4 with Openjdk 6 and icetea 6 but found only half of page loaded. Also the Linux is in Oracle VM box 4.0.4. is this a known lissue? Any idea? Thanks in advance, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Onlineback up Error on 1.3M02
Peter Thanks for the information! I will wait for your solution. I just want to know if there is a timeframe for fixing the online backup issue on wondows. Because I'm trying to produce a demo which is due on the end of this month. I wonder if I should move it to Linux or Mac first. Cheers, Brendan On 17 February 2011 00:09, Peter Neubauer peter.neuba...@neotechnology.com wrote: Rick, Brendan, I am allotted the task to catch up on Windows problems. We have a dedicated build server for Windows, http://win-buildbox.neo4j.org/ which you can follow. Doesn't look good at the moment, but we are on it! A lot of tests are failing, and fixing them will probably fix most of your problem. Stay tuned for greener builds! Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - Your high performance graph database. http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party. On Tue, Feb 15, 2011 at 12:05 PM, rick.bullo...@burningskysoftware.com rick.bullo...@burningskysoftware.com wrote: Lots of things can be very different on Windows! I definitely encourage the neo team to run its tests on both Linux and Windows, to help uncover any platform specific issues. - Reply message - From: Brendan Cheng ccp...@gmail.com Date: Tue, Feb 15, 2011 4:57 am Subject: [Neo4j] Onlineback up Error on 1.3M02 To: User@lists.neo4j.org Hi Mattias, I followed excatly like yours but still get the error. I just wonder if you have try the 1.3M02 on Windows but I guess there shouldn't be any difference. I noticed one thing that in your 1.3M02 built doesn't include library neo4j-index-XXX.jar. Any reason? Best Brendan Message: 5 Date: Tue, 15 Feb 2011 08:52:28 +0100 From: Mattias Persson matt...@neotechnology.com Subject: Re: [Neo4j] Onlineback up Error on 1.3M02 To: Neo4j user discussions user@lists.neo4j.org Message-ID: AANLkTinYUo9LNaa=djrxxtd+ayea_uu462scakjtv...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 2011/2/14 Brendan Cheng ccp...@gmail.com Thanks for the advice but I still get an exception I added enable_online_backup = true to neo4j-server.properties but still getting run: Tue Feb 15 01:30:58 CST 2011: Client connected to localhost:6362 Tue Feb 15 01:30:58 CST 2011: Opened a new channel to localhost/ 127.0.0.1:6362 2011/2/15 01:31:18 itags.Sync.SyncData main : null org.neo4j.com.ComException: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42) at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67) at itags.Sync.SyncData.fullThenIncremental(SyncData.java:46) at itags.Sync.SyncData.main(SyncData.java:233) Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61) at org.neo4j.com.Client$2.readNext(Client.java:155) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 4 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57) ... 9 more any idea? ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Onlineback up Error on 1.3M02
Hi Mattias, I followed excatly like yours but still get the error. I just wonder if you have try the 1.3M02 on Windows but I guess there shouldn't be any difference. I noticed one thing that in your 1.3M02 built doesn't include library neo4j-index-XXX.jar. Any reason? Best Brendan Message: 5 Date: Tue, 15 Feb 2011 08:52:28 +0100 From: Mattias Persson matt...@neotechnology.com Subject: Re: [Neo4j] Onlineback up Error on 1.3M02 To: Neo4j user discussions user@lists.neo4j.org Message-ID: AANLkTinYUo9LNaa=djrxxtd+ayea_uu462scakjtv...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 2011/2/14 Brendan Cheng ccp...@gmail.com Thanks for the advice but I still get an exception I added enable_online_backup = true to neo4j-server.properties but still getting run: Tue Feb 15 01:30:58 CST 2011: Client connected to localhost:6362 Tue Feb 15 01:30:58 CST 2011: Opened a new channel to localhost/ 127.0.0.1:6362 2011/2/15 01:31:18 itags.Sync.SyncData main : null org.neo4j.com.ComException: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42) at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67) at itags.Sync.SyncData.fullThenIncremental(SyncData.java:46) at itags.Sync.SyncData.main(SyncData.java:233) Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61) at org.neo4j.com.Client$2.readNext(Client.java:155) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 4 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57) ... 9 more any idea? Hmm, not really... I just downloaded 1.3.M02 package, edited conf/neo4j.properties file and added: enable_online_backup = true Then called: ./bin/neo4j start I then wrote a class using the classpath from the unpacked 1.3.M02 package containing: public class Backup { public static void main( String[] args ) { OnlineBackup.from( localhost ).full( myBackup ).close(); } } And it worked. Have you done exactly like me? Best, Mattias thanks in advance Brendan Date: Mon, 14 Feb 2011 10:13:16 +0100 From: Mattias Persson matt...@neotechnology.com Subject: Re: [Neo4j] Onlineback up Error on 1.3M02 To: Neo4j user discussions user@lists.neo4j.org Message-ID: aanlktimbfcc-uqziu1gpskz8_pfhmeeugbzns_9n8...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 The Neo4j server is registered at port 7474, but the backup server isn't... you usually don't need to specify port so that the default can be used. What you'll have to do is: * Add enable_online_backup = true to your neo4j configuration file and restart the server (if that wasn't the case). * Use OnlineBackup.from( localhost ); and it should work (just tried it). 2011/2/14 Brendan Cheng ccp...@gmail.com Hi, I was trying to test the online backup process. I received a ComException saying Channel has been closed. Here is my code which is copied from your Testbackup with a small modification: private String serverPath = localhost; private String backupPath = target/var/backuedup-serverdb; public void fullThenIncremental() throws Exception { ServerInterface server = startServer(); OnlineBackup backup = OnlineBackup.from( localhost,7474 ); backup.full( backupPath ); shutdownServer( server ); DbRepresentation furtherRepresentation = addMoreData(); server = startServer(); backup.incremental( backupPath ); assertEquals( furtherRepresentation, DbRepresentation.of( backupPath ) ); shutdownServer( server ); } and the error message is: run: Mon Feb 14 13:37:54 CST 2011: Client connected to localhost:7474 Mon Feb 14 13:37:54 CST 2011: Opened a new channel to localhost/ 127.0.0.1:7474 2011/2/14 01:37:54 itags.Sync.SyncData main : null org.neo4j.com.ComException: org.neo4j.com.ComException: Channel has been closed at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42
Re: [Neo4j] Onlineback up Error on 1.3M02
Thanks for the advice but I still get an exception I added enable_online_backup = true to neo4j-server.properties but still getting run: Tue Feb 15 01:30:58 CST 2011: Client connected to localhost:6362 Tue Feb 15 01:30:58 CST 2011: Opened a new channel to localhost/127.0.0.1:6362 2011/2/15 01:31:18 itags.Sync.SyncData main : null org.neo4j.com.ComException: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42) at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67) at itags.Sync.SyncData.fullThenIncremental(SyncData.java:46) at itags.Sync.SyncData.main(SyncData.java:233) Caused by: org.neo4j.com.ComException: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:61) at org.neo4j.com.Client$2.readNext(Client.java:155) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 4 more Caused by: org.jboss.netty.handler.queue.BlockingReadTimeoutException at org.jboss.netty.handler.queue.BlockingReadHandler.readEvent(BlockingReadHandler.java:236) at org.jboss.netty.handler.queue.BlockingReadHandler.read(BlockingReadHandler.java:167) at org.neo4j.com.DechunkingChannelBuffer.readNext(DechunkingChannelBuffer.java:57) ... 9 more any idea? thanks in advance Brendan Date: Mon, 14 Feb 2011 10:13:16 +0100 From: Mattias Persson matt...@neotechnology.com Subject: Re: [Neo4j] Onlineback up Error on 1.3M02 To: Neo4j user discussions user@lists.neo4j.org Message-ID: aanlktimbfcc-uqziu1gpskz8_pfhmeeugbzns_9n8...@mail.gmail.com Content-Type: text/plain; charset=UTF-8 The Neo4j server is registered at port 7474, but the backup server isn't... you usually don't need to specify port so that the default can be used. What you'll have to do is: * Add enable_online_backup = true to your neo4j configuration file and restart the server (if that wasn't the case). * Use OnlineBackup.from( localhost ); and it should work (just tried it). 2011/2/14 Brendan Cheng ccp...@gmail.com Hi, I was trying to test the online backup process. I received a ComException saying Channel has been closed. Here is my code which is copied from your Testbackup with a small modification: private String serverPath = localhost; private String backupPath = target/var/backuedup-serverdb; public void fullThenIncremental() throws Exception { ServerInterface server = startServer(); OnlineBackup backup = OnlineBackup.from( localhost,7474 ); backup.full( backupPath ); shutdownServer( server ); DbRepresentation furtherRepresentation = addMoreData(); server = startServer(); backup.incremental( backupPath ); assertEquals( furtherRepresentation, DbRepresentation.of( backupPath ) ); shutdownServer( server ); } and the error message is: run: Mon Feb 14 13:37:54 CST 2011: Client connected to localhost:7474 Mon Feb 14 13:37:54 CST 2011: Opened a new channel to localhost/ 127.0.0.1:7474 2011/2/14 01:37:54 itags.Sync.SyncData main : null org.neo4j.com.ComException: org.neo4j.com.ComException: Channel has been closed at org.neo4j.com.Client.sendRequest(Client.java:183) at org.neo4j.com.backup.BackupClient.fullBackup(BackupClient.java:42) at org.neo4j.com.backup.OnlineBackup.full(OnlineBackup.java:67) at itags.Sync.SyncData.fullThenIncremental(SyncData.java:45) at itags.Sync.SyncData.main(SyncData.java:232) Caused by: org.neo4j.com.ComException: Channel has been closed at org.neo4j.com.Client$2.readNext(Client.java:159) at org.neo4j.com.DechunkingChannelBuffer.readNextChunk(DechunkingChannelBuffer.java:79) at org.neo4j.com.DechunkingChannelBuffer.init(DechunkingChannelBuffer.java:50) at org.neo4j.com.Client$2.init(Client.java:151) at org.neo4j.com.Client.sendRequest(Client.java:150) ... 4 more I have my db server started as window service. Also, I want to know if we need the process startServer() if the db server has been started. Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Synchronisation between server and clients in Neo4j
Hi, I'm thinking of setting a system where each client store part of the server data for offline assess or reducing the workload of server. I'm not sure if there is a recommended way pf doing it. How should I do the synchronization for only part of data in most efficient way? Should I using the database log files to syn? Regards, Brendan ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user