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

NullPointerException when querying out vertices #4284

Closed
ylopotun opened this issue Jun 3, 2015 · 7 comments
Closed

NullPointerException when querying out vertices #4284

ylopotun opened this issue Jun 3, 2015 · 7 comments
Assignees
Labels
Milestone

Comments

@ylopotun
Copy link

ylopotun commented Jun 3, 2015

When we perform the following query (e.g. via console):
select expand(out('record')) from 14:15 limit 30
it returns an exception:
Error: com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: sql.select expand(out('record')) from 14:15 limit 50
Error: java.lang.NullPointerException

I'll send our sample DB via e-mail.

@luigidellaquila
Copy link
Member

Applied a general high level fix that avoids the problem (on graph API).
Keeping this open to investigate possible flaws in RidBag iterators at a lower level

@luigidellaquila
Copy link
Member

@Laa any advice is welcome on this

@ylopotun
Copy link
Author

ylopotun commented Jun 4, 2015

Thanks Luigi. Will your fix work for an existing data or only for the newly created data?

@luigidellaquila
Copy link
Member

Hi Yuriy,

the fix will work also on existing data. I tried it on your db and it
worked fine.

Thanks

Luigi

2015-06-04 18:00 GMT+02:00 ylopotun notifications@github.com:

Thanks Luigi. Will your fix work for an existing data or only for the
newly created data?


Reply to this email directly or view it on GitHub
#4284 (comment)
.

@ylopotun
Copy link
Author

ylopotun commented Jun 4, 2015

So, the mentioned exception no longer appears, but if I do:
select from [14:93, 14:94]

I get another NullPointerException in the server log:

2015-06-04 15:25:28:245 INFO OrientDB Server v2.1-rc3 (build UNKNOWN@r${buildNumber}; 2015-05-22 16:53:13+0000) is active. [OServer]{db=MirandaDS} Fetching error on record #14:94 java.lang.NullPointerException
at com.orientechnologies.orient.core.storage.impl.local.paginated.base.ODurablePage.deserializeFromDirectMemory(ODurablePage.java:127)
at com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiBucket.getEntry(OSBTreeBonsaiBucket.java:273)
at com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.findBucket(OSBTreeBonsaiLocal.java:1235)
at com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.loadEntriesMajor(OSBTreeBonsaiLocal.java:729)
at com.orientechnologies.orient.core.index.sbtreebonsai.local.OSBTreeBonsaiLocal.getRealBagSize(OSBTreeBonsaiLocal.java:1335)
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeRidBag.updateSize(OSBTreeRidBag.java:953)
at com.orientechnologies.orient.core.db.record.ridbag.sbtree.OSBTreeRidBag.size(OSBTreeRidBag.java:692)
at com.orientechnologies.orient.core.db.record.ridbag.ORidBag.size(ORidBag.java:182)
at com.orientechnologies.common.collection.OMultiValue.getSize(OMultiValue.java:80)
at com.orientechnologies.common.collection.OMultiValue.getFirstValue(OMultiValue.java:105)
at com.orientechnologies.orient.core.fetch.OFetchHelper.processRecord(OFetchHelper.java:299)
at com.orientechnologies.orient.core.fetch.OFetchHelper.fetch(OFetchHelper.java:72)
at com.orientechnologies.orient.server.network.protocol.binary.OAbstractCommandResultListener.fetchRecord(OAbstractCommandResultListener.java:54)
at com.orientechnologies.orient.server.network.protocol.binary.OSyncCommandResultListener.result(OSyncCommandResultListener.java:45)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1227)
at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:390)
at com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:222)
at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:71)

@luigidellaquila
Copy link
Member

mmm.. let me check...

@luigidellaquila
Copy link
Member

Ok, I reproduced the problem.
It's another issue, different from the first one, we are on it

andrii0lomakin added a commit that referenced this issue Jun 6, 2015
@lvca lvca assigned tglman and unassigned andrii0lomakin Jun 8, 2015
@lvca lvca modified the milestones: 2.1 GA, 2.1-rc4 Jun 16, 2015
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

6 participants