[ 
https://issues.apache.org/jira/browse/TINKERPOP3-809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

stephen mallette closed TINKERPOP3-809.
---------------------------------------
    Resolution: Invalid
      Assignee: stephen mallette  (was: Marko A. Rodriguez)

In the Gremlin Console you don't specify the variable type.  You are currently 
doing:

{code}
Vertex marko = g.addVertex()
{code}

you should just do:

{code}
marko = g.addVertex()
{code}

> Cannot create and view Vertices in Tinkerpop3
> ---------------------------------------------
>
>                 Key: TINKERPOP3-809
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-809
>             Project: TinkerPop 3
>          Issue Type: Bug
>          Components: neo4j, tinkergraph
>    Affects Versions: 3.0.0-incubating
>         Environment: Cent OS 6.5
>            Reporter: Alen Jacob
>            Assignee: stephen mallette
>
> I'm unable to create the vertices to a database created using Neo4jgraph.
> Also, I would like to know the command to be used to view the entire vertices 
> and edges in the graph.
> [root@master apache-gremlin-console-3.0.0-incubating]# ./bin/gremlin.sh 
>          \,,,/
>          (o o)
> -----oOOo-(3)-oOOo-----
> plugin activated: tinkerpop.server
> plugin activated: tinkerpop.utilities
> plugin activated: tinkerpop.neo4j
> plugin activated: tinkerpop.tinkergraph
> gremlin> g = Neo4jGraph.open('/tmp/neo4j')
> ==>neo4jgraph[EmbeddedGraphDatabase [/tmp/neo4j]]
> gremlin> Vertex marko = g.addVertex("name","marko","age",29);
> ==>v[0]
> gremlin> Vertex lop = g.addVertex("name","lop","lang","java");
> ==>v[1]
> gremlin> marko.addEdge("created",lop,"weight",0.6d);
> No such property: marko for class: groovysh_evaluate
> Display stack trace? [yN] y
> groovy.lang.MissingPropertyException: No such property: marko for class: 
> groovysh_evaluate
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:51)
>       at 
> org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
>       at 
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:304)
>       at groovysh_evaluate.run(groovysh_evaluate:3)
>       at 
> org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
>       at 
> org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69)
>       at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:185)
>       at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:119)
>       at 
> org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:94)
>       at 
> org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
>       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
>       at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)
>       at 
> org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123)
>       at 
> org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:58)
>       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:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
>       at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
>       at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)
>       at 
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)
>       at 
> org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:82)
>       at 
> org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
>       at 
> org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144)
>       at 
> org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
>       at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)
> gremlin> 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to