我试图连接到远程orientdb连接枝条Java API的使用3.0平方米cersion OrientDB的时候读响应超时。我已经安装了Orientdb Ditribution orientdb社区空间,3.0.0m2,与demodb的。Orientdb 3.0m.02:在连接到远程数据库
的代码是非常简单的:
orientDb = new OrientDB("remote:localhost", "root", "root", OrientDBConfig.defaultConfig());
// open a session on the database
session = orientDb.open("demodb", "admin", "admin");
..投掷立刻异常:
java.io.IOException的:超时上在 com.orientechnologies.orient.client读取响应。 (OChannelBinaryAsynchClient.java:249) at com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:176) 在 com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1274) 在 com.orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase(OStorageRemote.java:1309) 在 COM .orientechnologies.orient.client.remote.OStorageRemote.openRemoteDatabase在 com.orientechnologies.orient在 com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:392)(OStorageRemote.java:1254) .core.db.document.ODatabaseDocumentRemote.internalOpen(ODatabaseDocumentRemote.java:144) at com.orientechnologies.orient.core.db.OrientDBRemote.open(OrientDBRemote.java:82) 在 com.orientechnologies.orient.core.db.OrientDB.open(OrientDB.java:209) 在 com.orientechnologies.orient.core.db.OrientDB.open(OrientDB.java:194) 在 COM .activus.connectit.storage.graph.StorageGraphDb.dbSetup(StorageGraphDb.java:91)
这是一个错误还是滥用了Java API?
你有chacked的java客户端和服务器是完全相同的版本,通常这种情况发生时,之间存在未对齐服务器和客户端 – tglman