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

janusgraph.graph.set-vertex-id not working with latest docker image #4778

Open
CodeOnCoffee opened this issue Mar 17, 2025 · 0 comments
Open

Comments

@CodeOnCoffee
Copy link

Exception using custom vertex IDs in latest JG docker image, works in 1.1.0.

  • Version: latest
  • Storage Backend: in-memory

JG is started via Docker-Compose with the following configuration:

    graph-db:
        image: janusgraph/janusgraph:latest
        ports:
            - '8182:8182'
        environment:
            janusgraph.graph.set-vertex-id: 'true'
            janusgraph.graph.allow-custom-vid-types: 'true'
            JANUS_PROPS_TEMPLATE: 'inmemory'

Stack Trace (if you have one)

Attempts to create a vertex with a user-supplied ID results in the following Exception:

statusCode: 500,
  statusMessage: 'Vertex does not support user supplied identifiers',
  statusAttributes: Map(2) {
    'stackTrace' => 'java.lang.UnsupportedOperationException: Vertex does not support user supplied identifiers\n' +
      '\tat org.apache.tinkerpop.gremlin.structure.Vertex$Exceptions.userSuppliedIdsNotSupported(Vertex.java:163)\n' +
      '\tat org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsTransaction.addVertex(JanusGraphBlueprintsTransaction.java:119)\n' +
      '\tat org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph.addVertex(JanusGraphBlueprintsGraph.java:143)\n' +
      '\tat org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph.addVertex(JanusGraphBlueprintsGraph.java:59)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.step.map.AddVertexStartStep.processNextStart(AddVertexStartStep.java:109)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:155)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.step.util.ExpandableStepIterator.next(ExpandableStepIterator.java:55)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.step.filter.FilterStep.processNextStart(FilterStep.java:40)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.hasNext(AbstractStep.java:155)\n' +
      '\tat org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.hasNext(DefaultTraversal.java:192)\n' +
      '\tat org.apache.tinkerpop.gremlin.server.util.TraverserIterator.fillBulker(TraverserIterator.java:63)\n' +
      '\tat org.apache.tinkerpop.gremlin.server.util.TraverserIterator.hasNext(TraverserIterator.java:50)\n' +
      '\tat org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor.handleIterator(SessionOpProcessor.java:614)\n' +
      '\tat org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor.lambda$iterateBytecodeTraversal$5(SessionOpProcessor.java:419)\n' +
      '\tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)\n' +
      '\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)\n' +
      '\tat java.base/java.util.concurrent.FutureTask.run(Unknown Source)\n' +
      '\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\n' +
      '\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\n' +
      '\tat java.base/java.lang.Thread.run(Unknown Source)\n',
    'exceptions' => [ 'java.lang.UnsupportedOperationException' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant