Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

g.removeVertex() doesn't work anymore [moved] #1167

Closed
lvca opened this Issue · 23 comments

5 participants

@lvca
Owner

This is Issue 1167 moved from a Google Code project.
Added by 2012-11-08T22:53:34.000Z by infected...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium, Release

Original description

OrientDB release? 1.3.0-SNAPSHOT r7215

<b>What steps will reproduce the problem?</b>
1. Open the gremlin console (gremlin.bat) and connect to a database.
2. Create a vertex using gremlin: g.addVertex(); g.stopTransaction(SUCCESS);
3. Delete the vertex: g.removeVertex(g.v('8:1'));

See this error:
com.orientechnologies.orient.core.db.graph.OGraphDatabase.removeVertex(Lcom/orientechnologies/orient/core/record/impl/ODocument;)V

<b>What is the expected output? What do you see instead?</b>
The error should not be returned. Instead the vertex should be deleted.
@infected817

Comment 1 by infected...@gmail.com, Nov 8, 2012

Full Error:

Error: java.lang.NoSuchMethodError: com.orientechnologies.orient.core.db.graph.OGraphDatabase.removeVertex(Lcom/orientechnologies/orient/core/record/impl/ODocument;)V

@infected817

Comment 2 by project member l.garu...@gmail.com, Nov 11, 2012

It seems you're using wrong version of jars or probably you've got multiple versions of OrientDB in your classpath. Can you check it?

@infected817

Comment 3 by infected...@gmail.com, Nov 13, 2012

Is there anyway to check this on windows?

What I am doing is simply checkout the latest from SVN, compile using ant clean installg in Ubuntu, and the copying the graph edition to my windows machine. I then run server.bat to start.

@infected817

Comment 4 by infected...@gmail.com, Nov 13, 2012

On my machine, I have the following variables:

JAVA_HOME : C:\Program Files (x86)\Java\jdk1.7.0_03
CLASSPATH : .;C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip
GROOVY_HOME : C:\Program Files (x86)\Groovy\Groovy-2.0.5
QTJAVA : C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

@infected817

Comment 5 by infected...@gmail.com, Nov 13, 2012

OrientDB is simply placed in C:\orientdb\

@infected817

Comment 6 by infected...@gmail.com, Nov 13, 2012

I just uninstalled all the JRE and JDK on my machine and reinstalled the latest JRE and JDK version 7 update 9.

Same issue still occurs.

Let me know if I can provide more information :)

@infected817

Comment 7 by project member l.garu...@gmail.com, Nov 13, 2012

Can you change the pom.xm of orient-graph Blueprints directory to point to OrientDB 1.3.0-SNAPSHOT?

Or if you don't have the TinkerPop sources try the latest 1.3.0-SNAPSHOT: https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb/1.3.0-SNAPSHOT/

@infected817

Comment 8 by infected...@gmail.com, Nov 13, 2012

I couldn't find a Blueprints directory in my checked out sources. There are a lot of pom.xml files all over the place, but nothing that seems to be connected to blue prints.

I then tried the snapshot, but because it is not the graph edition, gremlin did not work at all:

Error: java.lang.IllegalArgumentException: Cannot find a command requester for type: gremlin

@infected817

Comment 9 by project member l.garu...@gmail.com, Nov 14, 2012

Can you try latest release?

svn checkout http://orient.googlecode.com/svn/trunk orientdb
ant installg

You will find a ../release/orientdb-graphed-1.3.0-SNAPSHOT with the latest compiled GraphDB.

@infected817

Comment 10 by infected...@gmail.com, Nov 14, 2012

Hi Luca,

The error still occurs if I try the latest graph edition from SVN.

@lvca
Owner

Postponed to 1.4, sorry.

@RKTM

Hi,

same error happened on Ubuntu.
i hope this info would help.

Environment:

  • OS(uname -a): Linux kita 3.5.0-21-generic #32-Ubuntu SMP Tue Dec 11 18:51:59 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
  • OrientDB ver: 1.3.0
  • Java -version: java version "1.7.0_10" Java(TM) SE Runtime Environment (build 1.7.0_10-b18) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

error log below:

gremlin> g.stopTransaction(SUCCESS)
==>null
gremlin> g.V

==>v[#8:0]
==>v[#8:1]
==>v[#8:2]
==>v[#8:3]
==>v[#8:4]
==>v[#8:5]
==>v[#8:6]
==>v[#8:7]
==>v[#8:8]
==>v[#8:9]
==>v[#8:10]
==>v[#8:11]
==>v[#8:12]
gremlin> g.removeVertex(g.v('8:12'))
com.orientechnologies.orient.core.db.graph.OGraphDatabase.removeVertex(Lcom/orientechnologies/orient/core/record/impl/ODocument;)V
Display stack trace? [yN] y
java.lang.NoSuchMethodError: com.orientechnologies.orient.core.db.graph.OGraphDatabase.removeVertex(Lcom/orientechnologies/orient/core/record/impl/ODocument;)V
at com.tinkerpop.blueprints.impls.orient.OrientBaseGraph.removeVertex(OrientBaseGraph.java:240)
at com.tinkerpop.blueprints.Graph$removeVertex.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at groovysh_evaluate.run(groovysh_evaluate:44)
at groovysh_evaluate$run.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at groovysh_evaluate$run.call(Unknown Source)
at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67)
at org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(Unknown Source)
at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:152)
at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)
at org.codehaus.groovy.tools.shell.Shell$leftShift$0.call(Unknown Source)
at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:88)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:100)
at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:267)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:66)
at com.tinkerpop.gremlin.groovy.console.Console.(Console.java:50)
at com.tinkerpop.gremlin.groovy.console.Console.(Console.java:57)
at com.tinkerpop.gremlin.groovy.console.Console.main(Console.java:62)

thanks.

@lvca
Owner

What release of BP are you using?

@RKTM

Hi Luca,

Blueprint version is 2.2.0-SNAPSHOT.

"less | grep blue" at ORIENTDB_HOME/lib

blueprints-core-2.2.0-SNAPSHOT.jar
blueprints-orient-graph-2.2.0-SNAPSHOT.jar

@F21

@RKTM Can you use the latest 1.4.0-SNAPSHOT of orientdb to try it? That version should contain the latest BP, but I haven't gotten around to trying if this is resolved yet.

@lvca
Owner

The GraphEd is not built in snapshots, so get this:

https://oss.sonatype.org/content/repositories/snapshots/com/orientechnologies/orientdb/1.4.0-SNAPSHOT/

And copy the jars in your folder.

Or, much better, clone the git repository and then:

ant clean installg

You will have a fresh OrientDB Graphed distribution under ../releases directory.

Lvc@

@lvca lvca closed this
@F21

I am not sure why this was closed, but I just tested using the latest snapshot (1.4.0-SNAPSHOT) and the problem still exists.

@lvca lvca reopened this
@RKTM

Hi,
thanks luca, i got fresh 1.4.0-SNAPSHOT by cloning the github repository and build.

but the problem still exists too...

@dganu

To solve this problem you need an upgraded version of Blueprints ,blueprints-orient-graph-2.3.0-SNAPSHOT.jar which you can build it using maven. Please in the pom.xml , make sure you point to OrientDB 1.4 snapshot something like this

com.orientechnologies
orientdb-core
1.4.0-SNAPSHOT


com.orientechnologies
orient-commons
1.4.0-SNAPSHOT

It works for me

@lvca
Owner

You meant blueprints-orient-graph-2.4.0-SNAPSHOT.jar?

@dganu

Yes blueprints-orient-graph-2.4.0-SNAPSHOT.jar :)

@lvca
Owner

I'm closing this issue. If the problem persists please reopen it rather than create a new one.

@lvca lvca closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.