2016-06-17 2 views
0

У меня есть некоторые проблемы с orientDB (2.1.15) с использованием Java API. я добавил следующую банку, чтобы мою библиотеку проекта:OrientDB java api SQL command 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 

Я хочу выполнить следующую команду:

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

через:

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(); 

Я использую Eclipse, Марс и exportet мой проект - как барабан. я получаю следующее исключение:

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) 

Я уже искал в интернете, но я только что нашел одно решение Maven. https://github.com/orientechnologies/orientdb/issues/5105 У вас есть идеи для затмения?

ответ

0

Добавить

orientdb-server-2.1.15.jar 

на свой путь к классам

+0

Кстати, вам необходимо обновить до последней 2.1.19, есть много исправлений –

+0

я добавил банку, но все тот же исключение –

+0

Вероятно, это поможет http://orientdb.com/docs/last/Tutorial-Installation.html (см. нижнюю часть страницы - создание единой исполняемой банки с OrientDB) –

Смежные вопросы