Hi guys,
I am experiencing a problem using OrientDB 1.7 .
I have an export coming from a plocal database.
If I try to import it in another plocal database everything works well. If
instead, I try to import it in a memory database
OrientGraphNoTx graph = new OrientGraphNoTx("memory:mydb");
try {
ODatabaseImport odbImport = new ODatabaseImport(graph.getRawGraph(), new
GZIPInputStream(new ByteArrayInputStream(
myExportByteArray)), this);
odbImport.setPreserveClusterIDs(false);
odbImport.importDatabase();
} catch (Exception e) {
e.printStackTrace();
}
I get the following exception:
- 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 'ds_vtx' (id=11): Error importing record
#11:-1.
Source line 0, column 760667
Caused by: com.orientechnologies.orient.core.exception.ODatabaseException:
Error on saving record in cluster #11
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.
executeSaveRecord(ODatabaseRecordAbstract.java:1172)
at com.orientechnologies.orient.core.tx.OTransactionNoTx.saveRecord(
OTransactionNoTx.java:79)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(
ODatabaseRecordTx.java:319)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordTx.save(
ODatabaseRecordTx.java:40)
at com.orientechnologies.orient.core.record.ORecordAbstract.save(
ORecordAbstract.java:334)
at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.
java:1423)
at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.
java:1412)
at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.
java:1401)
at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.
java:58)
at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecord(
ODatabaseImport.java:1210)
at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecords(
ODatabaseImport.java:1108)
at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase
(ODatabaseImport.java:421)
... 60 more
Caused by: java.lang.NullPointerException
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.
OSBTreeCollectionManagerProxy.createSBTree(OSBTreeCollectionManagerProxy.
java:42)
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeRidBag.
serialize(OSBTreeRidBag.java:395)
at com.orientechnologies.orient.core.db.record.ridbag.ORidBag.toStream(
ORidBag.java:222)
at com.orientechnologies.orient.core.serialization.serializer.record.string
.ORecordSerializerCSVAbstract.fieldToStream(ORecordSerializerCSVAbstract.
java:542)
at com.orientechnologies.orient.core.serialization.serializer.record.string
.ORecordSerializerSchemaAware2CSV.toString(ORecordSerializerSchemaAware2CSV.
java:495)
at com.orientechnologies.orient.core.serialization.serializer.record.string
.ORecordSerializerStringAbstract.toStream(ORecordSerializerStringAbstract.
java:669)
at com.orientechnologies.orient.core.serialization.serializer.record.string
.ORecordSerializerSchemaAware2CSV.toStream(ORecordSerializerSchemaAware2CSV.
java:258)
at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.
toStream(ORecordSchemaAwareAbstract.java:420)
at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.
toStream(ORecordSchemaAwareAbstract.java:415)
at com.orientechnologies.orient.core.record.impl.ODocument.toStream(
ODocument.java:421)
at com.orientechnologies.orient.core.db.record.ODatabaseRecordAbstract.
executeSaveRecord(ODatabaseRecordAbstract.java:1085)
... 71 more
Any idea?
Cheers,
Fabrizio
--
---
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.