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}) {
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
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
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()
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):
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:
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:
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
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
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 =
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)
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:
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++)
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
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
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
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 );
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
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
19 matches
Mail list logo