Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element #11

Open
zhou5791759 opened this issue Sep 22, 2016 · 3 comments

Comments

@zhou5791759
Copy link

zhou5791759 commented Sep 22, 2016

Caused by: java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.propertyDoesNotExist(Property.java:151)
at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyVertexProperty.value(EmptyVertexProperty.java:74)
at org.twilmes.sql.gremlin.processor.SingleQueryExecutor.run(SingleQueryExecutor.java:92)
at org.twilmes.sql.gremlin.processor.GremlinCompiler.execute(GremlinCompiler.java:119)
at org.twilmes.sql.gremlin.plugin.SqlRemoteAcceptor.submit(SqlRemoteAcceptor.java:94)

SingleQueryExecutor

/*
vertex does not contain attributes that are abnormal.
} else if (!(res.property(propName) instanceof EmptyProperty)
*/

} else if (res.properties(propName).hasNext()) {

@twilmes
Copy link
Owner

twilmes commented Sep 22, 2016

Thanks for reporting Zhou. Can you provide your schema file and the SQL query you ran? Or if not the whole file, at least the portions that are relevant to the query?

@zhou5791759
Copy link
Author

zhou5791759 commented Sep 22, 2016

--schema.json
--(pwd:/home/hadoop/conf/schema.json)

{
"tables": [
{
"name": "human",
"columns": [
{"name": "name", "type": "string"},
{"name": "gender", "type": "string"}
]
}
],
"relationships": []
}

--execute script:

graph = TitanFactory.open('conf/hbase.properties')

g = graph.traversal()

configFn = "/home/hadoop/conf/schema.json"

:remote connect sql.gremlin graph configFn

:> select * from human

--exception:
Caused by: java.lang.IllegalStateException: The property does not exist as it has no key, value, or associated element
at org.apache.tinkerpop.gremlin.structure.Property$Exceptions.propertyDoesNotExist(Property.java:151)
at org.apache.tinkerpop.gremlin.structure.util.empty.EmptyVertexProperty.value(EmptyVertexProperty.java:74)
at org.twilmes.sql.gremlin.processor.SingleQueryExecutor.run(SingleQueryExecutor.java:92)
at org.twilmes.sql.gremlin.processor.GremlinCompiler.execute(GremlinCompiler.java:119)
at org.twilmes.sql.gremlin.plugin.SqlRemoteAcceptor.submit(SqlRemoteAcceptor.java:94)

@zhou5791759
Copy link
Author

The above update is my input !!

twilmes pushed a commit that referenced this issue Nov 5, 2021
Multiple fixes for TDVT and Bug Bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants