title: OrientDB "Cannot find a command executor for the command request" error
body: <p>I originally posted this as a bug on the OrientDB <a href="https://github.com/orientechnologies/orientdb/issues/5105" rel="nofollow">issue tracker</a>. However, I'm not not so sure it's a bug...</p>
  
  <p>Basically when I run the project from the IDE everything works great and all the queries get executed without a hitch. However, when I package up the project using <code>maven-shade-plugin</code> I start getting these <code>Cannot find a command executor for the command request:</code> errors but only for a subset of queries. In my <code>pom.xml</code> I declare the following:</p>
  
  <pre><code>&lt;!-- As defined: http://orientdb.com/docs/last/Graph-Database-Tinkerpop.html  --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.orientechnologies&lt;/groupId&gt;
      &lt;artifactId&gt;orientdb-core&lt;/artifactId&gt;
      &lt;version&gt;${orientdb-version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.orientechnologies&lt;/groupId&gt;
      &lt;artifactId&gt;orientdb-graphdb&lt;/artifactId&gt;
      &lt;version&gt;${orientdb-version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.tinkerpop.blueprints&lt;/groupId&gt;
      &lt;artifactId&gt;blueprints-core&lt;/artifactId&gt;
      &lt;version&gt;2.5.0&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
       &lt;groupId&gt;net.java.dev.jna&lt;/groupId&gt;
       &lt;artifactId&gt;jna-platform&lt;/artifactId&gt;
       &lt;version&gt;4.0.0&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
       &lt;groupId&gt;net.java.dev.jna&lt;/groupId&gt;
       &lt;artifactId&gt;jna&lt;/artifactId&gt;
       &lt;version&gt;4.2.0&lt;/version&gt;
   &lt;/dependency&gt;
   &lt;dependency&gt;
       &lt;groupId&gt;com.googlecode.concurrentlinkedhashmap&lt;/groupId&gt;
       &lt;artifactId&gt;concurrentlinkedhashmap-lru&lt;/artifactId&gt;
       &lt;version&gt;1.4.2&lt;/version&gt;
   &lt;/dependency&gt;
  &lt;!-- Include to enable embedded db if user selects single mode --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.orientechnologies&lt;/groupId&gt;
      &lt;artifactId&gt;orientdb-server&lt;/artifactId&gt;
      &lt;version&gt;${orientdb-version}&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;!-- Include to enable remote db if user selects distributed mode --&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.orientechnologies&lt;/groupId&gt;
      &lt;artifactId&gt;orientdb-client&lt;/artifactId&gt;
      &lt;version&gt;${orientdb-version}&lt;/version&gt;
  &lt;/dependency&gt;
  ...
  &lt;orientdb-version&gt;2.1.3&lt;/orientdb-version&gt;
  </code></pre>
  
  <p>I've added the following filter to the shade plugin to try and make sure nothing is getting stripped out but it doesn't appear to have fixed the issue:</p>
  
  <pre><code>&lt;filters&gt;
      &lt;filter&gt;
          &lt;artifact&gt;*:*&lt;/artifact&gt;
          &lt;includes&gt;
               &lt;include&gt;**&lt;/include&gt;
          &lt;/includes&gt;
     &lt;/filter&gt;
  &lt;/filters&gt;
  </code></pre>
  
  <hr>
  
  <p>StackTrace:</p>
  
  <pre><code>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
  </code></pre>