Gremlin property key "asdf" : java.lang.IllegalArgumentException: The type of given name is not a key: asdf

32 views
Skip to first unread message

Faruk S

unread,
Oct 12, 2020, 6:40:37 AM10/12/20
to Gremlin-users

Hi,

I have been testing Gremin and JanusGraph, when I execute following command, I get an exception only when I use string "asdf" as key.


g.addV("ccr_node").property("asdf","asdf").next()


<pre style='color:#d1d1d1;background:#000000;'>java<span style='color:#e66170; font-weight:bold; '>.</span>lang<span style='color:#e66170; font-weight:bold; '>.</span>IllegalArgumentException<span style='color:#d2cd86; '>:</span> The <span style='color:#904050; '>type</span> of given name is not a key<span style='color:#d2cd86; '>:</span> asdf
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>transaction<span style='color:#e66170; font-weight:bold; '>.</span>StandardJanusGraphTx<span style='color:#e66170; font-weight:bold; '>.</span>getOrCreatePropertyKey<span style='color:#b060b0; '>(</span>StandardJanusGraphTx<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>999</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>vertices<span style='color:#e66170; font-weight:bold; '>.</span>AbstractVertex<span style='color:#e66170; font-weight:bold; '>.</span>property<span style='color:#b060b0; '>(</span>AbstractVertex<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>152</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>core<span style='color:#e66170; font-weight:bold; '>.</span>JanusGraphVertex<span style='color:#e66170; font-weight:bold; '>.</span>property<span style='color:#b060b0; '>(</span>JanusGraphVertex<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>72</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>ElementHelper<span style='color:#e66170; font-weight:bold; '>.</span>attachProperties<span style='color:#b060b0; '>(</span>ElementHelper<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>80</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>JanusGraphBlueprintsTransaction<span style='color:#e66170; font-weight:bold; '>.</span>addVertex<span style='color:#b060b0; '>(</span>JanusGraphBlueprintsTransaction<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>122</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>JanusGraphBlueprintsGraph<span style='color:#e66170; font-weight:bold; '>.</span>addVertex<span style='color:#b060b0; '>(</span>JanusGraphBlueprintsGraph<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>141</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>janusgraph<span style='color:#e66170; font-weight:bold; '>.</span>graphdb<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>JanusGraphBlueprintsGraph<span style='color:#e66170; font-weight:bold; '>.</span>addVertex<span style='color:#b060b0; '>(</span>JanusGraphBlueprintsGraph<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>59</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>process<span style='color:#e66170; font-weight:bold; '>.</span>traversal<span style='color:#e66170; font-weight:bold; '>.</span>step<span style='color:#e66170; font-weight:bold; '>.</span>map<span style='color:#e66170; font-weight:bold; '>.</span>AddVertexStartStep<span style='color:#e66170; font-weight:bold; '>.</span>processNextStart<span style='color:#b060b0; '>(</span>AddVertexStartStep<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>89</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>process<span style='color:#e66170; font-weight:bold; '>.</span>traversal<span style='color:#e66170; font-weight:bold; '>.</span>step<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>AbstractStep<span style='color:#e66170; font-weight:bold; '>.</span>hasNext<span style='color:#b060b0; '>(</span>AbstractStep<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>143</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>process<span style='color:#e66170; font-weight:bold; '>.</span>traversal<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>DefaultTraversal<span style='color:#e66170; font-weight:bold; '>.</span>hasNext<span style='color:#b060b0; '>(</span>DefaultTraversal<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>197</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>server<span style='color:#e66170; font-weight:bold; '>.</span>op<span style='color:#e66170; font-weight:bold; '>.</span>AbstractOpProcessor<span style='color:#e66170; font-weight:bold; '>.</span>handleIterator<span style='color:#b060b0; '>(</span>AbstractOpProcessor<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>93</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>server<span style='color:#e66170; font-weight:bold; '>.</span>op<span style='color:#e66170; font-weight:bold; '>.</span>AbstractEvalOpProcessor<span style='color:#e66170; font-weight:bold; '>.</span>lambda$evalOpInternal$5<span style='color:#b060b0; '>(</span>AbstractEvalOpProcessor<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>264</span><span style='color:#b060b0; '>)</span>
        at org<span style='color:#e66170; font-weight:bold; '>.</span>apache<span style='color:#e66170; font-weight:bold; '>.</span>tinkerpop<span style='color:#e66170; font-weight:bold; '>.</span>gremlin<span style='color:#e66170; font-weight:bold; '>.</span>groovy<span style='color:#e66170; font-weight:bold; '>.</span>engine<span style='color:#e66170; font-weight:bold; '>.</span>GremlinExecutor<span style='color:#e66170; font-weight:bold; '>.</span>lambda$eval$0<span style='color:#b060b0; '>(</span>GremlinExecutor<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>278</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>concurrent<span style='color:#e66170; font-weight:bold; '>.</span>FutureTask<span style='color:#e66170; font-weight:bold; '>.</span>run<span style='color:#b060b0; '>(</span>FutureTask<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>266</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>concurrent<span style='color:#e66170; font-weight:bold; '>.</span>Executors$RunnableAdapter.call<span style='color:#b060b0; '>(</span>Executors<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>511</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>concurrent<span style='color:#e66170; font-weight:bold; '>.</span>FutureTask<span style='color:#e66170; font-weight:bold; '>.</span>run<span style='color:#b060b0; '>(</span>FutureTask<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>266</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>concurrent<span style='color:#e66170; font-weight:bold; '>.</span>ThreadPoolExecutor<span style='color:#e66170; font-weight:bold; '>.</span>runWorker<span style='color:#b060b0; '>(</span>ThreadPoolExecutor<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>1149</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>util<span style='color:#e66170; font-weight:bold; '>.</span>concurrent<span style='color:#e66170; font-weight:bold; '>.</span>ThreadPoolExecutor$Worker.run<span style='color:#b060b0; '>(</span>ThreadPoolExecutor<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>624</span><span style='color:#b060b0; '>)</span>
        at java<span style='color:#e66170; font-weight:bold; '>.</span>lang<span style='color:#e66170; font-weight:bold; '>.</span>Thread<span style='color:#e66170; font-weight:bold; '>.</span>run<span style='color:#b060b0; '>(</span>Thread<span style='color:#e66170; font-weight:bold; '>.</span>java<span style='color:#d2cd86; '>:</span><span style='color:#008c00; '>748</span><span style='color:#b060b0; '>)</span>
</pre>

I have tried some other 4 letter versions with different endings and beginnings but I only get this error when I use "asdf".

Any idea what is wrong here?

Stephen Mallette

unread,
Oct 13, 2020, 7:22:55 AM10/13/20
to gremli...@googlegroups.com
For those wondering about that html:

image.png

This question looks specific to JanusGraph - you should probably ask about it on their user list. I'm not aware of any reason why you can't use a property key of "asdf" while other random keys will work. Note that JanusGraph does have a schema so I could imagine a key being rejected if you didn't have JanusGraph or its schema configured the right way, but again, probably a question for JanusGraph folks.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/ac349607-0cfc-41eb-9def-8180b5ea091bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages