orientechnologies / orientechnologies/orientdb

Impossible to add a null identifiable in a ridbag

Open
#9,871 0 comments 0 reactions 1 assignee View on GitHub

@tglman is already working on this.

Since Sep 12, 2022.

Dominant language
Java
Stars
5k
Forks
868
Avg merge
15h 6m
Merged PRs (30d)
18

Description

OrientDB Version: 3.1.20

Expected behavior

Exported database from version 3.0.29 and trying import in 3.1.20 return error -> java.lang.IllegalArgumentException: Impossible to add a null identifiable in a ridbag

  • Imported 55,170 records into clusters: 4293861. Total JSON records imported so for 8 .Total records imported so far: 2,146,929 (11,034.00/sec)
2022-09-11 01:30:18:119 SEVER {db=ztr_dolinex_prod} Error importing record. Source line 0, column 1313832308 [ODatabaseImport]
com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Error on importing record
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecord(ODatabaseImport.java:1302)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecords(ODatabaseImport.java:1184)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:215)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.importDatabase(OConsoleDatabaseApp.java:2549)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:445)
        at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:283)
        at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:144)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:159)
Caused by: com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling JSON content for record #77:6485
        DB name="ztr_dolinex_prod"
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:368)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecord(ODatabaseImport.java:1269)
        ... 11 more
Caused by: java.lang.IllegalArgumentException: Impossible to add a null identifiable in a ridbag
        at com.orientechnologies.orient.core.db.record.ridbag.embedded.OEmbeddedRidBag.add(OEmbeddedRidBag.java:246)
        at com.orientechnologies.orient.core.db.record.ridbag.ORidBag.add(ORidBag.java:182)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON$1.visitItem(ORecordSerializerJSON.java:807)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.parseRidbag(ORecordSerializerJSON.java:950)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.getValueAsCollection(ORecordSerializerJSON.java:796)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.getValue(ORecordSerializerJSON.java:547)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:299)
        ... 12 more
Error on database import happened just before line 0, column 1313832308
com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Error on importing record
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecord(ODatabaseImport.java:1302)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecords(ODatabaseImport.java:1184)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importDatabase(ODatabaseImport.java:215)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.importDatabase(OConsoleDatabaseApp.java:2549)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:445)
        at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:283)
        at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:144)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:159)
Caused by: com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling JSON content for record #77:6485
        DB name="ztr_dolinex_prod"
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:368)
        at com.orientechnologies.orient.core.db.tool.ODatabaseImport.importRecord(ODatabaseImport.java:1269)
        ... 11 more
Caused by: java.lang.IllegalArgumentException: Impossible to add a null identifiable in a ridbag
        at com.orientechnologies.orient.core.db.record.ridbag.embedded.OEmbeddedRidBag.add(OEmbeddedRidBag.java:246)
        at com.orientechnologies.orient.core.db.record.ridbag.ORidBag.add(ORidBag.java:182)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON$1.visitItem(ORecordSerializerJSON.java:807)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.parseRidbag(ORecordSerializerJSON.java:950)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.getValueAsCollection(ORecordSerializerJSON.java:796)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.getValue(ORecordSerializerJSON.java:547)
        at com.orientechnologies.orient.core.serialization.serializer.record.string.ORecordSerializerJSON.fromString(ORecordSerializerJSON.java:299)
        ... 12 more

Error: com.orientechnologies.orient.core.db.tool.ODatabaseExportException: Error on importing database 'ztr_dolinex_prod' from file: production3.gz

Error: com.orientechnologies.orient.core.db.tool.ODatabaseImportException: Error on importing record

Error: com.orientechnologies.orient.core.exception.OSerializationException: Error on unmarshalling JSON content for record #77:6485
        DB name="ztr_dolinex_prod"

Error: java.lang.IllegalArgumentException: Impossible to add a null identifiable in a ridbag

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.