2015-10-14 63 views
0

我最初發布這是一個臭蟲在OrientDB issue tracker。然而,我並不確定它是一個bug ...OrientDB「無法找到命令執行程序的命令請求」錯誤

基本上,當我從IDE運行項目時,一切都很好,所有查詢都順利執行。但是,當我使用maven-shade-plugin打包該項目時,我開始獲取這些Cannot find a command executor for the command request:錯誤,但僅針對一部分查詢。在我pom.xml我聲明如下:

<!-- As defined: http://orientdb.com/docs/last/Graph-Database-Tinkerpop.html --> 
<dependency> 
    <groupId>com.orientechnologies</groupId> 
    <artifactId>orientdb-core</artifactId> 
    <version>${orientdb-version}</version> 
</dependency> 
<dependency> 
    <groupId>com.orientechnologies</groupId> 
    <artifactId>orientdb-graphdb</artifactId> 
    <version>${orientdb-version}</version> 
</dependency> 
<dependency> 
    <groupId>com.tinkerpop.blueprints</groupId> 
    <artifactId>blueprints-core</artifactId> 
    <version>2.5.0</version> 
</dependency> 
<dependency> 
    <groupId>net.java.dev.jna</groupId> 
    <artifactId>jna-platform</artifactId> 
    <version>4.0.0</version> 
</dependency> 
<dependency> 
    <groupId>net.java.dev.jna</groupId> 
    <artifactId>jna</artifactId> 
    <version>4.2.0</version> 
</dependency> 
<dependency> 
    <groupId>com.googlecode.concurrentlinkedhashmap</groupId> 
    <artifactId>concurrentlinkedhashmap-lru</artifactId> 
    <version>1.4.2</version> 
</dependency> 
<!-- Include to enable embedded db if user selects single mode --> 
<dependency> 
    <groupId>com.orientechnologies</groupId> 
    <artifactId>orientdb-server</artifactId> 
    <version>${orientdb-version}</version> 
</dependency> 
<!-- Include to enable remote db if user selects distributed mode --> 
<dependency> 
    <groupId>com.orientechnologies</groupId> 
    <artifactId>orientdb-client</artifactId> 
    <version>${orientdb-version}</version> 
</dependency> 
... 
<orientdb-version>2.1.3</orientdb-version> 

我添加以下過濾器樹蔭插件嘗試,並確保沒有得到剝離出來,但它不會出現已經解決了這一問題:

<filters> 
    <filter> 
     <artifact>*:*</artifact> 
     <includes> 
      <include>**</include> 
     </includes> 
    </filter> 
</filters> 

堆棧跟蹤:

Caused by: com.orientechnologies.orient.core.command.OCommandExecutorNotFoundException: Cannot find a command executor for the command request: sql.CREATE EDGE hasRole FROM (SELECT FROM Person WHERE @rid=#15:0) TO (SELECT FROM Role WHERE @rid=#16:1) 
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:72) ~[halo-1.0.0.jar:1.0.0] 
    at com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.parse(OCommandExecutorSQLDelegate.java:42) ~[halo-1.0.0.jar:1.0.0] 
    at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.command(OAbstractPaginatedStorage.java:1431) ~[halo-1.0.0.jar:1.0.0] 
    at com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:63) ~[halo-1.0.0.jar:1.0.0] 
    at com.tinkerpop.blueprints.impls.orient.OrientGraphCommand.execute(OrientGraphCommand.java:49) ~[halo-1.0.0.jar:1.0.0] 
    at co.ff36.halo.core.persistence.Dao.exec(Dao.java:94) ~[halo-1.0.0.jar:1.0.0] 
    at co.ff36.halo.core.resource.server.UserRoleServerResource.store(UserRoleServerResource.java:63) ~[halo-1.0.0.jar:1.0.0] 
    ... 57 common frames omitted 
+0

你有堆棧跟蹤? – wolf4ood

+0

@ wolf4ood是的,補充了相關的痕跡。也不是它應該是相關的,但爲了完整性,錯誤來自「OCommandSQL」。 'graph.command(新的OCommandSQL(「...」))。execute();' – tarka

+0

添加了答案。有了這個,你應該解決它 – wolf4ood

回答