Hi, remove the inclusion of OrientDB Blueprints: <dependency>
<groupId>com.tinkerpop.blueprints</groupId> <artifactId>blueprints-orient-graph</artifactId> <version>2.5.0-SNAPSHOT</version> </dependency> Because OrientDB Graphdb module already contains it. Lvc@ On 24 January 2014 16:47, Sotiris Beis <[email protected]> wrote: > I have the same problem with 1.7 snapshot, I get: > > Exception in thread "main" java.lang.NoSuchMethodError: > com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(Ljava/lang/String;Ljava/lang/String;Lcom/orientechnologies/orient/core/index/OIndexDefinition;[ILcom/orientechnologies/common/listener/OProgressListener;)Lcom/orientechnologies/orient/core/index/OIndex; > > > when I use orientGraph.createIndex("nodeId", OrientVertex.class); > > My pom.xml file is like this: > > <dependency> > > <groupId>com.tinkerpop.blueprints</groupId> > > <artifactId>blueprints-orient-graph</artifactId> > > <version>2.5.0-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>com.orientechnologies</groupId> > > <artifactId>orient-commons</artifactId> > > <version>1.7-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>com.orientechnologies</groupId> > > <artifactId>orientdb-core</artifactId> > > <version>1.7-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>com.orientechnologies</groupId> > > <artifactId>orientdb-graphdb</artifactId> > > <version>1.7-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>com.orientechnologies</groupId> > > <artifactId>orientdb-nativeos</artifactId> > > <version>1.7-SNAPSHOT</version> > > </dependency> > > > Sotiris > > > Τη Τρίτη, 31 Δεκεμβρίου 2013 9:36:11 μ.μ. UTC+2, ο χρήστης odbuser έγραψε: > >> Before I file a bug, is there a new way to use OrientGraphNoTx. >> createKeyIndex? >> >> This worked in 1.6.2. Basically I'm trying to create a key index >> >> OrientBaseGraph.java >> public <T extends Element <https://groups.google.com/forum/*1>> >> voidcreateKeyIndex >> (String <https://groups.google.com/forum/*2> key, >> Class<https://groups.google.com/forum/*3> >> <T> elementClass, Parameter >> <https://groups.google.com/forum/*4>...indexParameters >> >> The following test fails with: >> >> com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex( >> Ljava/lang/String;Ljava/lang/String;Lcom/orientechnologies/orient/core/ >> index/OIndexDefinition;[ILcom/orientechnologies/common/listener/OPro >> gressListener;)Lcom/orientechnologies/orient/core/index/OIndex; >> java.lang.NoSuchMethodError: com.orientechnologies.orient.core.index. >> OIndexManagerProxy.createIndex(Ljava/lang/String;Ljava/lang/String;Lcom/ >> orientechnologies/orient/core/index/OIndexDefinition;[ILcom/orientec >> hnologies/common/listener/OProgressListener;)Lcom/orientechnologies/ >> orient/core/index/OIndex; >> at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph$8.call( >> OrientBaseGraph.java:1043) >> at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph$8.call( >> OrientBaseGraph.java:1010) >> at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.execut >> eOutsideTx(OrientBaseGraph.java:1266) >> at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.create >> KeyIndex(OrientBaseGraph.java:1010) >> at orientdb.KeyIndexTest.createData(KeyIndexTest.java:45) >> >> >> >> package orientdb; >> >> import com.tinkerpop.blueprints.Parameter; >> import com.tinkerpop.blueprints.Vertex; >> import com.tinkerpop.blueprints.impls.orient.OrientGraphNoTx; >> import java.util.HashMap; >> import java.util.Map; >> import org.apache.commons.configuration.Configuration; >> import org.apache.commons.configuration.MapConfiguration; >> import org.junit.After; >> import org.junit.Before; >> import org.junit.Test; >> >> public class KeyIndexTest { >> OrientGraphNoTx orientGraphNoTx; >> >> public KeyIndexTest() {} >> >> @Before >> public void before() { >> Map<String, String> confMap = new HashMap<>(); >> String dbUrl = "plocal:orientdb/keyindex"; >> confMap.put("blueprints.orientdb.url", dbUrl); >> confMap.put("blueprints.orientdb.username", "admin"); >> confMap.put("blueprints.orientdb.password", "admin"); >> Configuration configuration = new MapConfiguration(confMap); >> orientGraphNoTx = new OrientGraphNoTx(configuration); >> } >> @After >> public void after() { >> orientGraphNoTx.shutdown(); >> } >> @Test >> public void createData() { >> //Vertex >> orientGraphNoTx.createVertexType("Test"); >> //Index >> orientGraphNoTx.createKeyIndex("name", Vertex.class, new >> Parameter("class", "Test"), new Parameter("type", "UNIQUE")); >> } >> @Test >> public void dropGraph() { >> orientGraphNoTx.drop(); >> } >> >> } >> >> >> -- > > --- > 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/groups/opt_out. > -- --- 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/groups/opt_out.
