Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Batistuta Gabriel
I progress slowly...but I have a new error. Here is my code : //create the graph neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); graph = ObjectGraphFactory.instance().get(neo); for (String datasource : new String[]{nioneodb, lucene}) {

Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Tobias Ivarsson
This error come from not configuring Neo4j to keep its logical logs. The keepLogicalLogs( true ) parts need to be there for the part of the code where you do the backups. Cheers, Tobias On Thu, Jun 10, 2010 at 10:16 AM, Batistuta Gabriel batistutagabrielf...@gmail.com wrote: I progress

Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Batistuta Gabriel
The keepLogicalLogs( true ) parts need to be there for the part of the code where you do the backups. What does it means in my case? My part of code is not correct? Because if I understand, you mean that I need to use the code keepLogicalLogs( true ) in the same class where I do my

Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Tobias Ivarsson
Here is a quick patch of your code (I haven't tried it, but it shows the conceptual difference): neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); for (String datasource : new String[]{nioneodb, lucene}) { neo.getConfig().getTxModule().getXaDataSourceManager()

Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Batistuta Gabriel
Many thanks : It's running now! Is it possible to define the place where we want to set the backup log of the class Neo4jBackup? Best, Bat Le 10-juin-10 à 11:17, Tobias Ivarsson a écrit : Here is a quick patch of your code (I haven't tried it, but it shows the conceptual difference):

Re: [Neo4j] Online Backup : wich package?

2010-06-10 Thread Anders Nawroth
Hi! Batistuta Gabriel wrote: Is it possible to define the place where we want to set the backup log of the class Neo4jBackup? I committed a change that will let you decide which file the log is written to. It's found here:

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Batistuta Gabriel
Nobody has a solution for my problem? Many thanks, Bat Le 08-juin-10 à 16:05, BatiG a écrit : I've tried with : - neo4j-kernel-1.0-rc.jar - neo4j-kernel-1.0.jar And I've the same error in the both cases. -- View this message in context:

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Tobias Ivarsson
Hi Bat, I've tried this with the combination of * neo4j-kernel-1.0.jar (from neo4j-apoc-1.0) * neo4j-online-backup-0.5.jar That works fine. Are you sure that you don't have incompatible versions on the class path as well? Try printing the classpath from your application and verify that you

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Batistuta Gabriel
Thanks. If I understand the tutorial of neo4j and your expaination, this part of code is correct : //create the original graph neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); graph = ObjectGraphFactory.instance().get(neo); for (String datasource : new

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Johan Svensson
On Wed, Jun 9, 2010 at 1:37 PM, Batistuta Gabriel batistutagabrielf...@gmail.com wrote: Thanks. If I understand the tutorial of neo4j and your expaination, this part of code is correct : //create the original graph neo = new EmbeddedGraphDatabase(CONSTANTS.GRAPH_PATH); graph =

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Batistuta Gabriel
However, I obtain this error : java.lang.NoSuchMethodError: org.neo4j.onlinebackup.AbstractResource.init(Lorg/neo4j/kernel/impl/ transaction/x aframework/XaDataSource;)V at org .neo4j .onlinebackup .EmbeddedGraphDatabaseResource .init(EmbeddedGraphDatabaseResource.java:31)

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Johan Svensson
What was the output of System.out.println(System.getProperty(java.class.path)); as Tobias asked you to do? On Wed, Jun 9, 2010 at 1:56 PM, Batistuta Gabriel batistutagabrielf...@gmail.com wrote: However, I obtain this error : java.lang.NoSuchMethodError:

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Tobias Ivarsson
You could also use this code to print the classpath: //Get the System Classloader ClassLoader sysClassLoader = ClassLoader.getSystemClassLoader(); //Get the URLs URL[] urls = ((URLClassLoader)sysClassLoader).getURLs(); *for*(*int *i=0; i urls.length; i++)

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Batistuta Gabriel
I fixed one problem. But I still have a problem. My classes are starded from BlazeDS. It's a server-based Java remoting installed on Glassfish. So, I can not see the packages of neo4j on the classpath. However, I use this packages : lucene-core-2.9.1.jar neo4j-remote-graphdb-0.5.jar

Re: [Neo4j] Online Backup : wich package?

2010-06-09 Thread Tobias Ivarsson
The exception really says it all. You are trying to backup to a target that does not have the same origin as the source. You need to create the target Neo4j store by either letting the online-backup component create it, using the Neo4jBackup(EmbeddedGraphDatabase, String, ...) constructors, or

Re: [Neo4j] Online Backup : wich package?

2010-06-08 Thread Anders Nawroth
Hi Bati! You need to download the jar file found here: http://m2.neo4j.org/org/neo4j/neo4j-online-backup/0.5/ http://m2.neo4j.org/org/neo4j/neo4j-online-backup/0.5/neo4j-online-backup-0.5.jar Will update the link on the wiki in a moment! /anders On 06/08/2010 10:11 AM, BatiG wrote: Hi, I

Re: [Neo4j] Online Backup : wich package?

2010-06-08 Thread BatiG
Thanks for the package. But I still have a problem and I assume that is from your package. With this code : EmbeddedGraphDatabase neo = GraphJo4neo.getGraphDatabaseService(); EmbeddedGraphDatabase backupGraphDb = new EmbeddedGraphDatabase( CONSTANTS.DEV_GRAPH_BACKUP_PATH );

Re: [Neo4j] Online Backup : wich package?

2010-06-08 Thread Anders Nawroth
Hi! What version are you using of the neo4j kernel? neo4j-kernel-1.0 should be used with neo4j-onlinebackup-0.5 and neo4j-kernel-1.1-SNAPSHOT should be used with neo4j-onlinebackup-0.6-SNAPSHOT /anders On 06/08/2010 02:45 PM, BatiG wrote: Thanks for the package. But I still have a

Re: [Neo4j] Online Backup : wich package?

2010-06-08 Thread BatiG
I've tried with : - neo4j-kernel-1.0-rc.jar - neo4j-kernel-1.0.jar And I've the same error in the both cases. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Online-Backup-wich-package-tp878706p879410.html Sent from the Neo4J User List mailing list archive at