2016-06-17 9 views
0

Ich habe Probleme mit OrientDB (2.1.15) mit der Java API. Ich habe folgendes Glas in meine Projektbibliothek hinzugefügt:OrientDB java api SQL Befehl CREATE EDGE

blueprints-core-2.6.0.jar 
concurrentlinkedhashmap-lru-1.4.1.jar 
jna-4.0.0.jar 
na-platform-4.0.0.jar 
orientdb-client-2.1.15.jar 
orientdb-core-2.1.15.jar 
orientdb-enterprise-2.1.15.jar 
orientdb-graphdb-2.1.15.jar 
pipes-2.6.0.jar 

ich den folgenden Befehl ausführen mag:

CREATE EDGE MetaInf2kmer FROM (select from MetaInfNode where accNo ='X17276.1') TO (select from GenomeGraphNode where seq=141) SET taxid=9646 

über:

db.command(new OCommandSQL("CREATE EDGE MetaInf2kmer FROM (select from MetaInfNode where accNo ='X17276.1') TO (select from GenomeGraphNode where seq=141) SET taxid=9646")).execute(); 

Ich bin mit Eclipse-Mars und exportet mein Projekt als Runable Jar. Ich erhalte die folgende Ausnahme:

Exception in thread "main" com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.CREATE EDGE MetaInf2kmer FROM (select from MetaInfNode where accNo ='X17276.1') TO (select from GenomeGraphNode where seq=141) SET taxid=9646 
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:72) 
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:42) 
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1400) 
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:67) 
    at com.tinkerpop.blueprints.impls.orient.OrientGraphCommand.execute(OrientGraphCommand.java:49) 
    at odbMetaInforamtion.OdbAcc2tax.addTaxInfToMetaNode(OdbAcc2tax.java:112) 
    at odbMetaInforamtion.OdbAcc2tax.<init>(OdbAcc2tax.java:40) 
    at odbGraph.Testmain.main(Testmain.java:35) 

Ich habe schon im Internet gesucht, aber ich fand nur eine Maven-Lösung. https://github.com/orientechnologies/orientdb/issues/5105 Haben Sie irgendwelche Ideen für die Finsternis?

Antwort

0

hinzufügen

orientdb-server-2.1.15.jar 

zu Classpath

+0

btw, sollten Sie aktualisieren, um neueste 2.1.19, gibt es eine Menge von Hotfixes –

+0

ich das Glas gegeben haben, aber immer noch die gleiche Ausnahme –

+0

Wahrscheinlich diese hilft http://orientdb.com/docs/last/Tutorial-Installation.html (siehe unten auf der Seite - Ein ausführbares jar mit OrientDB erstellen) –