在OrientDB 2.2.12上创建新数据库

在OrientDB 2.2.12上创建新数据库,orientdb,Orientdb,我正在尝试使用OServerAdmin连接到OrientDB服务器(版本2.2.12),以创建新的graph db OServerAdmin serverAdmin=新的OServerAdmin(“远程:本地主机”) .connect(“根”、“根pwd”) 此代码在2.2.0版本中运行良好,但现在失败,出现以下异常: java.lang.AbstractMethodError: com.orientechnologies.orient.core.engine.OEngineAbstract.s

我正在尝试使用OServerAdmin连接到OrientDB服务器(版本2.2.12),以创建新的graph db

OServerAdmin serverAdmin=新的OServerAdmin(“远程:本地主机”) .connect(“根”、“根pwd”)

此代码在2.2.0版本中运行良好,但现在失败,出现以下异常:

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)
    ....
java.lang.AbstractMethodError:com.orientechnologies.orient.core.engine.OEngineAbstract.startup()V
位于com.orientechnologies.orient.client.remote.OEngineRemote.startup(OEngineRemote.java:60)
在com.orientechnologies.orient.core.orient.initEngines上(orient.java:579)
在com.orientechnologies.orient.core.orient.registerEngines上(orient.java:318)
位于com.orientechnologies.orient.core.orient.startup(orient.java:232)
在com.orientechnologies.orient.core.orient.(orient.java:97)
在com.orientechnologies.orient.core.storage.OStorageAbstract.(OStorageAbstract.java:56)
位于com.orientechnologies.orient.client.remote.OServerAdmin.(OServerAdmin.java:64)
....

我已在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();
        }


    }

}
我已经“连接”成输出,没有任何错误。
共享应用程序的完整代码。

我已在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();
        }


    }

}
我已经“连接”成输出,没有任何错误。
共享应用程序的完整代码。

很抱歉,我编写了错误的版本。我的版本是2.2.12。OrientDB服务器v2.2.12-SNAPSHOT(版本2.2。x@r2a76ee1efc4487d9dc5f43e1ddc2fba1c5a0167c;2016-10-20 13:55:08+0000)问题似乎与客户端(2.2.10)和服务器2.2.12的版本不同有关:谢谢,抱歉,我写错了版本。我的版本是2.2.12。OrientDB服务器v2.2.12-SNAPSHOT(版本2.2。x@r2a76ee1efc4487d9dc5f43e1ddc2fba1c5a0167c;2016-10-20 13:55:08+0000)问题似乎与客户端(2.2.10)和服务器2.2.12的版本不同有关:非常感谢