com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))

jetbrains.com | 4 months ago
  1. 0

    Problem when running Upsource 1.0 in Docker image – Upsource

    jetbrains.com | 4 months ago
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))
  2. 0

    Problem when running Upsource 1.0 in Docker image – Upsource

    jetbrains.com | 4 months ago
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))
  3. 0

    Attempting to execute the following code succeeds: {code} Cluster cluster = Cluster.builder().withPort(9042).addContactPoint(CASSANDRA_HOST).build(); Session session = cluster.connect(CASSANDRA_KS); PreparedStatement preparedStatement = session.prepare( "SELECT id, fname, lname FROM profiles where solr_query=? limit 100"); BoundStatement boundStatement = preparedStatement.bind("fname:joh"); ResultSet resultSet = session.execute(boundStatement); {code} Whereas the following fails with a cryptic error {code} Cluster cluster = Cluster.builder().withPort(9042).addContactPoint(CASSANDRA_HOST).build(); Session session = cluster.connect(CASSANDRA_KS); PreparedStatement preparedStatement = session.prepare( "SELECT id, fname, lname FROM profiles where solr_query=? limit ?"); BoundStatement boundStatement = preparedStatement.bind("fname:joh", 100); ResultSet resultSet = session.execute(boundStatement); {code} Exception: {code} com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1)) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) at com.datastax.tes.solr.SolrTest.testNonEmptyResultSetPrepared_pass(SolrTest.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1)) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:108) at com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    DataStax JIRA | 2 years ago | Kavanagh
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Attempting to execute the following code succeeds: {code} Cluster cluster = Cluster.builder().withPort(9042).addContactPoint(CASSANDRA_HOST).build(); Session session = cluster.connect(CASSANDRA_KS); PreparedStatement preparedStatement = session.prepare( "SELECT id, fname, lname FROM profiles where solr_query=? limit 100"); BoundStatement boundStatement = preparedStatement.bind("fname:joh"); ResultSet resultSet = session.execute(boundStatement); {code} Whereas the following fails with a cryptic error {code} Cluster cluster = Cluster.builder().withPort(9042).addContactPoint(CASSANDRA_HOST).build(); Session session = cluster.connect(CASSANDRA_KS); PreparedStatement preparedStatement = session.prepare( "SELECT id, fname, lname FROM profiles where solr_query=? limit ?"); BoundStatement boundStatement = preparedStatement.bind("fname:joh", 100); ResultSet resultSet = session.execute(boundStatement); {code} Exception: {code} com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1)) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) at com.datastax.tes.solr.SolrTest.testNonEmptyResultSetPrepared_pass(SolrTest.java:41) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134) Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1)) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:108) at com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:179) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {code}

    DataStax JIRA | 2 years ago | Kavanagh
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.59.104:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: Index: 1))
  6. 0

    NoHostAvailableException

    pr8x.com | 12 months ago
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.io.FileNotFoundException: C:\apache-cassandra-new\data\data\system\schema_columnfamilies-45f5b36024bc3f83a3631034ea4fa697\system-schema_columnfamilies-tmplink-ka-4839-Data.db (The process cannot access the file because it is being used by another process)))

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.datastax.driver.core.exceptions.NoHostAvailableException

      All host(s) tried for query failed (tried: /127.0.0.1:10030 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.SecurityException: Cannot make java.lang.Class.classLoader accessible))

      at com.datastax.driver.core.exceptions.NoHostAvailableException.copy()
    2. DataStax Java Driver for Apache Cassandra - Core
      WriteSessionWrapper.prepare
      1. com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:65)
      2. com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:259)
      3. com.datastax.driver.core.AbstractSession.prepare(AbstractSession.java:79)
      4. com.datastax.driver.core.WriteSessionWrapper.prepare(WriteSessionWrapper.java:42)
      4 frames
    3. com.jetbrains.upsource
      BufferingTable.iterateRow
      1. com.jetbrains.upsource.database.datastax.StatementFactory$3.convert(StatementFactory.java:78)
      2. com.jetbrains.upsource.database.datastax.StatementFactory$3.convert(StatementFactory.java:75)
      3. com.jetbrains.upsource.database.datastax.ThroughDbMediator$1.consume(ThroughDbMediator.java:39)
      4. com.jetbrains.upsource.database.datastax.ThroughDbMediator$1.consume(ThroughDbMediator.java:36)
      5. com.jetbrains.upsource.database.datastax.WriteExecutor.execute(WriteExecutor.java:31)
      6. com.jetbrains.upsource.database.datastax.ThroughDbMediator.submitSync(ThroughDbMediator.java:36)
      7. com.jetbrains.upsource.database.datastax.StatementFactory.fromSelect(StatementFactory.java:75)
      8. com.jetbrains.upsource.database.datastax.StatementFactory.access$400(StatementFactory.java:16)
      9. com.jetbrains.upsource.database.datastax.StatementFactory$2.get(StatementFactory.java:55)
      10. com.jetbrains.upsource.database.datastax.StatementFactory$2.get(StatementFactory.java:43)
      11. com.jetbrains.upsource.database.datastax.StatementFactory.createSelect(StatementFactory.java:137)
      12. com.jetbrains.upsource.database.datastax.StatementFactory.createSelect(StatementFactory.java:67)
      13. com.jetbrains.upsource.database.datastax.CqlDynamicTable.iterateRow(CqlDynamicTable.java:61)
      14. com.jetbrains.upsource.database.datastax.CqlDynamicTable.iterateRow(CqlDynamicTable.java:20)
      15. com.jetbrains.upsource.db.impl.BufferingTable.iterateRow(BufferingTable.java:94)
      15 frames
    4. JetBrains upsource
      UpsourceDaemonBase.start
      1. com.jetbrains.upsource.backend.server.core.db.SystemDatabase.getDatabaseVersion(SystemDatabase.java:94)
      2. com.jetbrains.upsource.backend.cli.FirstTimeInit.run(FirstTimeInit.java:89)
      3. com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.<init>(UpsourceApplicationEnvironment.java:103)
      4. com.jetbrains.upsource.backend.cli.UpsourceApplicationEnvironmentDaemonBase.startDaemon(UpsourceApplicationEnvironmentDaemonBase.java:12)
      5. com.jetbrains.upsource.backend.cli.UpsourceAnalyzerDaemon.startDaemon(UpsourceAnalyzerDaemon.java:51)
      6. com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:145)
      7. com.jetbrains.upsource.backend.cli.UpsourceDaemonBase.start(UpsourceDaemonBase.java:206)
      7 frames
    5. com.jetbrains.launcher
      AppProxy$4.call
      1. com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:79)
      2. com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:77)
      2 frames
    6. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames