java.sql.SQLException: Connect to '127.0.0.1:4301' failed

Stack Overflow | mi_h | 5 months ago
  1. 0

    crate.io jdbc connection failed

    Stack Overflow | 5 months ago | mi_h
    java.sql.SQLException: Connect to '127.0.0.1:4301' failed

    1 unregistered visitors

    Root Cause Analysis

    1. io.crate.shade.org.elasticsearch.client.transport.NoNodeAvailableException

      None of the configured nodes are available: []

      at io.crate.shade.org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable()
    2. io.crate.shade
      TransportClientNodesService.execute
      1. io.crate.shade.org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:309)
      2. io.crate.shade.org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:201)
      2 frames
    3. io.crate.client
      CrateDriver.connect
      1. io.crate.client.InternalCrateClient.execute(InternalCrateClient.java:87)
      2. io.crate.client.InternalCrateClient.execute(InternalCrateClient.java:70)
      3. io.crate.client.InternalCrateClient.sql(InternalCrateClient.java:59)
      4. io.crate.client.CrateClient.sql(CrateClient.java:152)
      5. io.crate.client.jdbc.CrateStatement.execute(CrateStatement.java:65)
      6. io.crate.client.jdbc.CrateStatementBase.executeQuery(CrateStatementBase.java:37)
      7. io.crate.client.jdbc.CrateDatabaseMetaData.getDatabaseProductVersion(CrateDatabaseMetaData.java:79)
      8. io.crate.client.jdbc.CrateConnection.connect(CrateConnection.java:56)
      9. io.crate.client.jdbc.CrateDriver.connect(CrateDriver.java:67)
      9 frames
    4. Java RT
      DriverManager.getConnection
      1. java.sql.DriverManager.getConnection(DriverManager.java:664)
      2. java.sql.DriverManager.getConnection(DriverManager.java:270)
      2 frames
    5. Unknown
      CrateTestDemo.main
      1. CrateTestDemo.setupDatabase(CrateTestDemo.java:19)
      2. CrateTestDemo.main(CrateTestDemo.java:10)
      2 frames