orientechnologies / orientdb-studio

Studio web tool
Other
127 stars 50 forks source link

Connection Error When using containerized environment #499

Closed kamakay closed 7 years ago

kamakay commented 7 years ago

Dear orientdb team,

I am dealing with a strange issue when using a containerized environment on rancher. I have two containers, the first based on orientdb image and the second with a simple java web app that works in this way.

OrientGraph graph = new OrientGraph("remote:orientdb1/MyDB", "root", "foo"); System.out.println("Vertices are:" + Lists.newArrayList(graph.getVertices().iterator()).size());

When I start the java web app container I receive this error

Exception in thread "main" java.lang.NoSuchMethodError: com.orientechnologies.orient.client.binary.OChannelBinaryAsynchClient.readVersion()I at com.orientechnologies.orient.client.remote.OStorageRemote$9.execute(OStorageRemote.java:719) at com.orientechnologies.orient.client.remote.OStorageRemote$9.execute(OStorageRemote.java:691) at com.orientechnologies.orient.client.remote.OStorageRemote$2.execute(OStorageRemote.java:200) at com.orientechnologies.orient.client.remote.OStorageRemote.baseNetworkOperation(OStorageRemote.java:245) at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperationRetry(OStorageRemote.java:197) at com.orientechnologies.orient.client.remote.OStorageRemote.networkOperation(OStorageRemote.java:208) at com.orientechnologies.orient.client.remote.OStorageRemote.readRecord(OStorageRemote.java:691) at com.orientechnologies.orient.core.config.OStorageConfiguration.load(OStorageConfiguration.java:219) at com.orientechnologies.orient.client.remote.OStorageRemote.open(OStorageRemote.java:362) at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:259) at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:1918) at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.(OrientBaseGraph.java:162) at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.(OrientTransactionalGraph.java:102) at com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.(OrientTransactionalGraph.java:98) at com.tinkerpop.blueprints.impls.orient.OrientGraph.(OrientGraph.java:103) at roberto.Application.main(Application.java:12)

Here "orientdb1" is the name of container I've created an linked to web app container. Can you help me to figure out how manage this issue?

Thanks Roberto