org.neo4j.driver.v1.exceptions.ClientException: You are using a session from multiple locations at the same time, which is not supported. If you want to use multiple threads, you should ensure that each session is used by only one thread at a time. One way to do that is to give each thread its own dedicated session.

GitHub | graemerocher | 11 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Version 1.0.2 of Java driver not thread safe

    GitHub | 11 months ago | graemerocher
    org.neo4j.driver.v1.exceptions.ClientException: You are using a session from multiple locations at the same time, which is not supported. If you want to use multiple threads, you should ensure that each session is used by only one thread at a time. One way to do that is to give each thread its own dedicated session.

    Root Cause Analysis

    1. org.neo4j.driver.v1.exceptions.ClientException

      You are using a session from multiple locations at the same time, which is not supported. If you want to use multiple threads, you should ensure that each session is used by only one thread at a time. One way to do that is to give each thread its own dedicated session.

      at org.neo4j.driver.internal.connector.ConcurrencyGuardingConnection.markAsInUse()
    2. org.neo4j.driver
      PooledConnection.run
      1. org.neo4j.driver.internal.connector.ConcurrencyGuardingConnection.markAsInUse(ConcurrencyGuardingConnection.java:192)
      2. org.neo4j.driver.internal.connector.ConcurrencyGuardingConnection.run(ConcurrencyGuardingConnection.java:65)
      3. org.neo4j.driver.internal.pool.PooledConnection.run(PooledConnection.java:64)
      3 frames