orientdb icon indicating copy to clipboard operation
orientdb copied to clipboard

OrientDB 1.6.3 (NPE): error inserting in a class if an older one with same name have previoulsy dropped

Open giastfader opened this issue 12 years ago • 3 comments

Hi. I think I encountered a new issue involving the indexes. Scenario: OrientDB 1.6.3 downloaded and compiled from GitHub on December 20 JDK 1.6.0_45

Commands executed within the console:

create database plocal:/test/orient-index admin admin plocal;
create class A;
create property A.id String;
create index a.id unique;
create class B extends A;
insert into B (id) values ('aaa');

Now let's drop the class B

orientdb> drop class B
Removed class in 0,082000 sec(s).
2013-12-20 19:49:55:990 WARN Index a.id was not found after reload and will be removed [OIndexManagerShared]

Let's recreate the class B

orientdb> create class B extends A
Class created successfully. Total classes in database now: 12

Now insert a new record:

orientdb> insert into B (id) values ('aaa')
Error: com.orientechnologies.orient.core.exception.ODatabaseException: Error on saving record in cluster #12
Error: java.lang.NullPointerException
orientdb> select from b
0 item(s) found. Query executed in 0.0030 sec(s).

giastfader avatar Dec 20 '13 19:12 giastfader

Hi @laa do you have an idea of how long it is going to take to close this issue? Thanks

giastfader avatar Dec 23 '13 14:12 giastfader

I think you got your answer ))

andrii0lomakin avatar Dec 23 '13 15:12 andrii0lomakin

:) Thanks!

giastfader avatar Dec 23 '13 15:12 giastfader