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

OValidationException is thrown for a mandatory/not null field when OGraphDatabase.createEdge is called [moved] #909

Closed
lvca opened this issue Dec 10, 2012 · 0 comments

Comments

@lvca
Copy link
Member

lvca commented Dec 10, 2012

This is Issue 909 moved from a Google Code project.
Added by 2012-06-25T12:00:40.000Z by anujs...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Medium, v1.1.0

Original description

<b>OrientDB release? (If you're using a SNAPSHOT please attach also the build</b>
number found in &quot;build.number&quot; file):
1.0.1 and 1.1.0 (Build:12115)

<b>What steps will reproduce the problem?</b>

1. Run the attached class file for few seconds
(Note that it drops/creates a database by the name of fc-orient-db. Make sure you don't have the same name in use)

2. You will notice the following exception after 10 prints of &quot;first&quot;

Dropped database...
Created database...
Created classes...
first
first
first
first
first
first
first
first
first
first
Exception in thread &quot;main&quot; com.orientechnologies.orient.core.exception.OValidationException: The field 'TIMESTAMP' is mandatory
    at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.validateField(ORecordSchemaAwareAbstract.java:157)
    at com.orientechnologies.orient.core.record.ORecordSchemaAwareAbstract.validate(ORecordSchemaAwareAbstract.java:66)
    at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1239)
    at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:1229)
    at com.orientechnologies.orient.core.record.impl.ODocument.save(ODocument.java:69)
    at com.orientechnologies.orient.core.type.tree.OMVRBTreeRID.saveAllNewEntries(OMVRBTreeRID.java:364)
    at com.orientechnologies.orient.core.type.tree.OMVRBTreeRID.commitChanges(OMVRBTreeRID.java:307)
    at com.orientechnologies.orient.core.type.tree.OMVRBTreePersistent.put(OMVRBTreePersistent.java:478)
    at com.orientechnologies.orient.core.type.tree.OMVRBTreeRIDSet.add(OMVRBTreeRIDSet.java:109)
    at com.orientechnologies.orient.core.db.graph.OGraphDatabase.createEdge(OGraphDatabase.java:268)
    at org.test.graphdb.orient.OrientDBSimpleValidation.main(OrientDBSimpleValidation.java:184)

3. The same createEdge call succeeds for previous requests but fails after 10 requests

<b>If you're using custom settings please provide them below (to dump all the</b>
<b>settings run the application using the JVM argument</b>
<b>-Denvironment.dumpCfgAtStartup=true):</b>
Both L1 and L2 cache have been disabled

<b>What is the expected output? What do you see instead?</b>
The exception should not be thrown as the mandatory attributes are being set after creation and before saving the edge. The same process works for previous 10 requests.

If you're describing a performance or memory problem the profiler dump can be very useful (to dump it run the application using the JVM arguments
<b>-Dprofiler.autoDump.reset=true -Dprofiler.autoDump.interval=10</b>
<b>-Dprofiler.enabled=true):</b>

<b>Please use labels and text to provide additional information.</b>
@lvca lvca closed this as completed Dec 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant