JanusGraph / janusgraph

JanusGraph: an open-source, distributed graph database
https://janusgraph.org
Other
5.32k stars 1.17k forks source link

set ttl bug #2129

Closed 18252032615 closed 4 years ago

18252032615 commented 4 years ago

Please post all questions and issues on janusgraph-users before opening a GitHub issue. Your questions will reach a wider audience there, and if we confirm that there is a bug, then you can open a new issue.

Please include configurations and logs if available.

For confirmed bugs, please report:

Stack Trace (if you have one)

when i set edge ttl .i got this

code :

    System.out.println(ModifierType.TTL);
    JanusGraphManagement mgmt = graph.openManagement();
    EdgeLabel label = mgmt.getEdgeLabel("label_name");
    mgmt.setTTL(label , Duration.ofDays(3));

log:

Exception in thread "main" java.lang.ExceptionInInitializerError at org.janusgraph.graphdb.database.management.ModifierType.(ModifierType.java:23) at JanusgraphTest.main(JanusgraphTest.java:12) Caused by: java.lang.NullPointerException at org.janusgraph.graphdb.database.management.ModifierType.values(ModifierType.java:22) at org.janusgraph.graphdb.types.TypeDefinitionCategory.(TypeDefinitionCategory.java:81) ... 2 more

farodin91 commented 4 years ago

First of all, we no longer support 0.2 as you can see in our docs: https://docs.janusgraph.org/changelog/.

It is hard see, which lines throws in your code example.

porunov commented 4 years ago

Please use https://groups.google.com/g/janusgraph-users for such type of questions. We use GitHub issues to track bugs and feature requests only.