Hi Andrey, I excluded the blueprints-orient-graph dependency and added the orientdb-graphdb one, and now it works! :)
Thanks a lot! Il giorno giovedì 10 aprile 2014 12:31:49 UTC+2, Andrey Lomakin ha scritto: > > Hi > Remove blueprints-orient-graph it is not needed any more. > > > On Thu, Apr 10, 2014 at 1:28 PM, Giulio Grosso <[email protected]<javascript:> > > wrote: > >> Hi guys, >> I'm new to OrientDB and started doing some test. >> I've got an error during database connection >> >> Graph graph = new OrientGraph("remote:localhost/<db_name>", "admin", >> "admin"); >> >> The full error stack is the following: >> >> Exception in thread "main" java.lang.IncompatibleClassChangeError: Found >> interface com.orientechnologies.orient.core.metadata.OMetadata, but class >> was expected >> at >> com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.openOrCreate(OrientBaseGraph.java:765) >> at >> com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.<init>(OrientBaseGraph.java:98) >> at >> com.tinkerpop.blueprints.impls.orient.OrientTransactionalGraph.<init>(OrientTransactionalGraph.java:34) >> at >> com.tinkerpop.blueprints.impls.orient.OrientGraph.<init>(OrientGraph.java:32) >> at it.odb.demo.TestInsert.test(TestInsert.java:14) >> at it.odb.demo.TestInsert.main(TestInsert.java:10) >> >> My maven dependecies are: >> >> <dependencies> >> <dependency> >> <groupId>junit</groupId> >> <artifactId>junit</artifactId> >> <version>3.8.1</version> >> <scope>test</scope> >> </dependency> >> <dependency> >> <groupId>com.tinkerpop.blueprints</groupId> >> <artifactId>blueprints-orient-graph</artifactId> >> <version>2.4.0</version> >> </dependency> >> <dependency> >> <groupId>com.orientechnologies</groupId> >> <artifactId>orientdb-core</artifactId> >> <version>1.7-rc2</version> >> </dependency> >> <dependency> >> <groupId>com.orientechnologies</groupId> >> <artifactId>orient-commons</artifactId> >> <version>1.7-rc2</version> >> </dependency> >> <dependency> >> <groupId>com.orientechnologies</groupId> >> <artifactId>orientdb-client</artifactId> >> <version>1.7-rc2</version> >> </dependency> >> </dependencies> >> >> The problem seems to be in incompatibility between >> blueprints-orient-graph and orientdb-core, but I don't know how to solve it. >> >> Any solution? >> >> Thanks in advance! >> >> -- >> >> --- >> You received this message because you are subscribed to the Google Groups >> "OrientDB" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Best regards, > Andrey Lomakin. > > Orient Technologies > the Company behind OrientDB > > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
