Hi, everybody I'm trying to export database from 1.5.x version and import 
it to 1.7.4 version libraries. 

here is a trace 

июн 27, 2014 3:07:55 PM com.orientechnologies.common.log.OLogManager log

WARNING: Current implementation of storage does not support sbtree 
collections

июн 27, 2014 3:08:22 PM com.orientechnologies.common.log.OLogManager log

INFO: Collate value was changed, following indexes will be rebuilt 
[ORole.name]

июн 27, 2014 3:08:23 PM com.orientechnologies.common.log.OLogManager log

INFO: Collate value was changed, following indexes will be rebuilt 
[OUser.name]


Importing records...

- Importing records into cluster 'internal' (id=0):  = 2 records

- Importing records into cluster 'orole' (id=4):  = 3 records

- Importing records into cluster 'ouser' (id=5):  = 3 records

- Importing records into cluster 'v' (id=9):  = 239 records

- Importing records into cluster 'user' (id=11):  = 65 records

- Importing records into cluster 'user' (id=11): Exception in thread "main" 
com.orientechnologies.orient.core.db.tool.ODatabaseExportException: Error 
on importing database 'to' from file: 
/Users/valenpo/Downloads/logs/vtb24/from/export.db.json.gz

at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(
ODatabaseImport.java:455)

at com.stimulus.archiva.database.blueprints.BluePrintDatabaseUtil.migrateDB(
BluePrintDatabaseUtil.java:380)

at com.stimulus.archiva.database.blueprints.DatabaseMigrationTest.start(
DatabaseTEST.java:56)

at com.stimulus.archiva.database.blueprints.DatabaseTEST.main(
DatabaseTEST.java:31)

Caused by: java.lang.NullPointerException

at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importIndexes(
ODatabaseImport.java:1281)

at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(
ODatabaseImport.java:423)

... 3 more

code used for migration

void migrateDB(String dbLocation, String newDBLocationPath) throws 
FileNotFoundException, IOException {

 File exportFile = new File(dbLocation + File.separator + 
"export.db.json.gz");

 final ODatabaseDocumentTx database = new ODatabaseDocumentTx("local:"
+dbLocation);

database.open("admin", "admin");

 final ODatabaseExport databaseExport = new ODatabaseExport(database, 
exportFile.getAbsolutePath(), new OCommandOutputListener() {

@Override

public void onMessage(String arg0) {

logger.debug("export db: "+arg0);

}

});

databaseExport.exportDatabase();

databaseExport.close();

 final ODatabaseDocumentTx newDatabase = new ODatabaseDocumentTx("plocal:" 
+ newDBLocationPath);

newDatabase.create();

         

        ODatabaseImport databaseImport;

    databaseImport = new ODatabaseImport(newDatabase, 
exportFile.getAbsolutePath(), new OCommandOutputListener() {

@Override

public void onMessage(String arg0) {

logger.debug("importing db: "+arg0);

}

});

 databaseImport.importDatabase();

 database.close();

databaseImport.close();

 database.open("admin", "admin");

 OGraphMigration graphMigration = new OGraphMigration(newDatabase, new 
OCommandOutputListener() {

@Override

public void onMessage(String message) {

logger.debug("database migrating process: "+message);

}

});

     graphMigration.execute();

    database.close();

        newDatabase.close();

}



Any clue? Database working fine with 1.5.x libraries. 


Regards,

Valentin

-- 

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

Reply via email to