2016-10-24 3 views
1

OServerAdminを使用してOrientDBサーバー(バージョン2.2.12)に接続しようとしています。新しいグラフdbを作成しています。OrientDBで新しいデータベースを作成する2.2.12

OServerAdmin serverAdmin =新しいOServerAdmin( "remote:localhost") .connect( "root"、 "rootPWD");

このコードは2.2.0 versinでうまく動作しますが、今、次の例外で失敗:

java.lang.AbstractMethodError: com.orientechnologies.orient.core.engine.OEngineAbstract.startup()V 
    at com.orientechnologies.orient.client.remote.OEngineRemote.startup(OEngineRemote.java:60) 
    at com.orientechnologies.orient.core.Orient.initEngines(Orient.java:579) 
    at com.orientechnologies.orient.core.Orient.registerEngines(Orient.java:318) 
    at com.orientechnologies.orient.core.Orient.startup(Orient.java:232) 
    at com.orientechnologies.orient.core.Orient.<clinit>(Orient.java:97) 
    at com.orientechnologies.orient.core.storage.OStorageAbstract.<clinit>(OStorageAbstract.java:56) 
    at com.orientechnologies.orient.client.remote.OServerAdmin.<init>(OServerAdmin.java:64) 
    .... 

答えて

0

私は2.2.10バージョンにあなたのコードを試してみた:

import java.io.IOException; 

import com.orientechnologies.orient.client.remote.OServerAdmin; 

public class stack40216764 { 

    public static void main(String[] args) { 
     try { 
      OServerAdmin serverAdmin = new OServerAdmin("remote:localhost").connect("root","root"); 
      if(serverAdmin.isConnected()) 
       System.out.println("connected"); 
     } catch (IOException e) { 
      // TODO Auto-generated catch block 
      e.printStackTrace(); 
     } 


    } 

} 

そして、私は持っていますエラーなしで出力として「接続」されます。 アプリケーションの完全なコードを共有します。

+0

申し訳ありませんが、間違ったバージョンを書きました。私のバージョンは2.2.12です。 OrientDBサーバーv2.2.12-SNAPSHOTは([email protected]を構築し、2016年10月20日13:55:08 + 0000) –

+0

私は右のバージョン –

+1

で質問を変更し、問題が別のバージョンbeetweenに関連していたようですクライアント(2.2.10)とサーバー2.2.12: ありがとう –

関連する問題