我試圖連接到遠程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