org.neo4j.driver.exceptions.ClientException: Unable to read response from server: Expected a struct, but got: 2f

GitHub | FylmTM | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    PackStream$Unexpected exception when trying to do performance benchmark

    GitHub | 2 years ago | FylmTM
    org.neo4j.driver.exceptions.ClientException: Unable to read response from server: Expected a struct, but got: 2f

    Root Cause Analysis

    1. org.neo4j.driver.internal.packstream.PackStream$Unexpected

      Expected a struct, but got: 2f

      at org.neo4j.driver.internal.packstream.PackStream$Unpacker.unpackStructHeader()
    2. org.neo4j.driver
      StandardTransaction.run
      1. org.neo4j.driver.internal.packstream.PackStream$Unpacker.unpackStructHeader(PackStream.java:471)
      2. org.neo4j.driver.internal.messaging.PackStreamMessageFormatV1$Reader.read(PackStreamMessageFormatV1.java:352)
      3. org.neo4j.driver.internal.connector.socket.SocketClient.send(SocketClient.java:113)
      4. org.neo4j.driver.internal.connector.socket.SocketConnection.sync(SocketConnection.java:101)
      5. org.neo4j.driver.internal.pool.PooledConnection.sync(PooledConnection.java:99)
      6. org.neo4j.driver.internal.StandardTransaction.run(StandardTransaction.java:121)
      6 frames
    3. com.neueda.neo4j
      GetNodesBenchmark_getNodesNdp.getNodesNdp_AverageTime
      1. com.neueda.neo4j.driver.client.communication.transport.ndp.executors.NdpCommandExecutor.executeInStream(NdpCommandExecutor.java:67)
      2. com.neueda.neo4j.driver.client.ServerGraphDatabaseService.execute(ServerGraphDatabaseService.java:276)
      3. com.neueda.neo4j.driver.client.ServerGraphDatabaseService.execute(ServerGraphDatabaseService.java:261)
      4. com.neueda.neo4j.driver.tests.perf.bench.GetNodesBenchmark.getNodesNdp(GetNodesBenchmark.java:60)
      5. com.neueda.neo4j.driver.tests.perf.bench.generated.GetNodesBenchmark_getNodesNdp.getNodesNdp_avgt_jmhStub(GetNodesBenchmark_getNodesNdp.java:213)
      6. com.neueda.neo4j.driver.tests.perf.bench.generated.GetNodesBenchmark_getNodesNdp.getNodesNdp_AverageTime(GetNodesBenchmark_getNodesNdp.java:157)
      6 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. JMH Core
      BenchmarkHandler$BenchmarkTask.call
      1. org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:452)
      2. org.openjdk.jmh.runner.BenchmarkHandler$BenchmarkTask.call(BenchmarkHandler.java:434)
      2 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames