setRoot throws an exception [moved] #943

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

Projects

None yet

1 participant

@lvca
Member
lvca commented Dec 10, 2012

This is Issue 943 moved from a Google Code project.
Added by 2012-07-10T07:39:42.000Z by rnest...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium, Release

Original description

Version:
orientdb-graphdb-1.1.0-SNAPSHOT, both orientdb-graphdb-1.1.0-20120709.141233-12 and orientdb-graphdb-1.1.0-20120708.233707-11

The problem suddenly startet some days ago after been running on 1.1.0 SNAPSHOT for a week or so. 
I'm using a orientdb-graphed-1.0.1 database.

Test code:
private static void setRootTest()
{
    String url = "remote:localhost/test";
    String user = "admin";
    String password = "admin";

    try
    {
        OGraphDatabase gdb = new OGraphDatabase(url).open(user, password);
        ODocument doc = gdb.createVertex();
        doc.field("name", "root");
        doc.save();
        gdb.setRoot("root", doc);
        gdb.close();
    }
    catch (Exception e)
    {
        e.printStackTrace();
    }
}

Exception
com.orientechnologies.orient.core.exception.OCommandExecutionException: Error on execution of command: OCommandSQL [text=insert into index:dictionary (key,rid) 
values (?,?)]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.createException(OChannelBinary.java:427)
    at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinary.handleStatus(OChannelBinary.java:382)
    at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynch.beginResponse(OChannelBinaryAsynch.java:124)
    at com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynch.beginResponse(OChannelBinaryAsynch.java:57)
    at com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:1538)
    at com.orientechnologies.orient.client.remote.OStorageRemote.command(OStorageRemote.java:717)
    at com.orientechnologies.orient.client.remote.OStorageRemoteThread.command(OStorageRemoteThread.java:191)
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:60)
    at com.orientechnologies.orient.core.index.OIndexRemote.put(OIndexRemote.java:197)
    at com.orientechnologies.orient.core.index.OIndexRemote.put(OIndexRemote.java:43)
    at com.orientechnologies.orient.core.tx.OTransactionNoTx.addIndexEntry(OTransactionNoTx.java:160)
    at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:77)
    at com.orientechnologies.orient.core.index.OIndexTxAware.put(OIndexTxAware.java:36)
    at com.orientechnologies.orient.core.dictionary.ODictionary.put(ODictionary.java:52)
    at com.orientechnologies.orient.core.db.graph.OGraphDatabase.setRoot(OGraphDatabase.java:537)
    at com.ceeview.test.db.orient.Main.setRootTest(Main.java:39)
@lvca lvca closed this Oct 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment