Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupt database, removeVertex gives NPE #6807

Closed
RoarN opened this issue Oct 13, 2016 · 5 comments
Closed

Corrupt database, removeVertex gives NPE #6807

RoarN opened this issue Oct 13, 2016 · 5 comments
Assignees
Labels
Milestone

Comments

@RoarN
Copy link

RoarN commented Oct 13, 2016

using 2.0.15 on Windows
tested with 2.2.11 and had the same issue

We where deleting some vertexes in our database from our application when we got a NPE. After some testing we established that the NPE is from the OrientDB server; not our code.

2016-10-13 10:01:00,817 [qtp1656404914-1031] ERROR com.company.datastore.impl.blueprints.orientdb.administration.AdministrationProvider:1356 - Data Store exception in deleteUserCategory
java.lang.NullPointerException
    at com.tinkerpop.blueprints.impls.orient.OrientVertex.removeEdges(OrientVertex.java:322)
    at com.tinkerpop.blueprints.impls.orient.OrientVertex.removeInverseEdge(OrientVertex.java:446)
    at com.tinkerpop.blueprints.impls.orient.OrientVertex.removeEdges(OrientVertex.java:255)
    at com.tinkerpop.blueprints.impls.orient.OrientVertex.remove(OrientVertex.java:659)
    at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.removeVertex(OrientBaseGraph.java:758)
    at com.company.datastore.impl.blueprints.orientdb.administration.AdministrationProvider.__M_deleteUserCategory(AdministrationProvider.java:1349)
    at com.company.datastore.impl.blueprints.orientdb.administration.AdministrationProvider.deleteUserCategory(AdministrationProvider.java)

I opened the database in Studio to check how much had actually been deleted.
g.v('#50:11').out()

Only 2 records was still hanging on #50:11 and only one of them should be deleted, so I ran
delete vertex #53:63

and got an NPE error in Studio.

The OrientDB log reported:
2016-10-13 10:09:33:168 INFO OrientDB Server v2.0.15 is active. [OServer]
2016-10-13 10:10:25:726 SEVERE Internal server error:
java.lang.NullPointerException [ONetworkProtocolHttpDb

The following steps has been tried to fix the problem.

  1. export the database and import it into a fresh database -> same problem
  2. tested in studio in latest version (2.2.11) -> same problem
@RoarN
Copy link
Author

RoarN commented Oct 13, 2016

The corrupt database:

datastore.zip

@voondo
Copy link
Contributor

voondo commented Oct 14, 2016

Same problem here.

@lvca
Copy link
Member

lvca commented Oct 18, 2016

Checking it

lvca added a commit that referenced this issue Oct 18, 2016
lvca added a commit that referenced this issue Oct 18, 2016
@lvca lvca self-assigned this Oct 18, 2016
@lvca lvca added this to the 2.2.x (next hotfix) milestone Oct 18, 2016
@lvca lvca added the bug label Oct 18, 2016
@lvca
Copy link
Member

lvca commented Oct 18, 2016

Fixed in v2.2.x.

@lvca lvca closed this as completed Oct 18, 2016
@RoarN
Copy link
Author

RoarN commented Oct 18, 2016

That is great, now if I could actually use that version it would be fine. See #6404

@robfrank robfrank modified the milestones: 2.2.x (next hotfix), 2.2.12 Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants