java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query: select id,city,province from house Processing Document # 1

Stack Overflow | user1584253 | 10 months 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

    connecting cassandra and solr : NoHostAvailableException: All host(s) tried for query failedError

    Stack Overflow | 10 months ago | user1584253
    java.lang.RuntimeException: java.lang.RuntimeException: org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to execute query: select id,city,province from house Processing Document # 1
  2. 0

    pithos 0.7.4 and apache cassandra 3.5

    GitHub | 12 months ago | mltest1234
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
  3. 0

    GitHub comment 2#267207853

    GitHub | 4 months ago | hidetarou2013
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentsCassandraController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.example.cassandra.repository.DepartmentsRepository com.example.cassandra.controller.DepartmentsCassandraController.repository; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'departmentsRepository': Cannot resolve reference to bean 'cassandraTemplate' while setting bean property 'cassandraTemplate'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'cassandraTemplate' defined in class path resource [org/springframework/boot/autoconfigure/data/cassandra/CassandraDataAutoConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.datastax.driver.core.Session]: Error creating bean with name 'session' defined in class path resource [com/example/cassandra/config/CassandraConfig.class]: Invocation of init method failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces)); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session' defined in class path resource [com/example/cassandra/config/CassandraConfig.class]: Invocation of init method failed; nested exception is com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed

    Stack Overflow | 1 year ago | Lalit
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /175.14.3.164:9042 (com.datastax.driver.core.TransportException: [/172.16.3.163:9042] Cannot connect))
  6. 0

    Does not work with Cassandra 3.0

    GitHub | 1 year ago | gw0
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /1.2.3.4:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
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: localhost/127.0.0.1:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))

    at com.datastax.driver.core.ControlConnection.reconnectInternal()
  2. DataStax Java Driver for Apache Cassandra - Core
    Cluster.connect
    1. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:223)
    2. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)
    3. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1272)
    4. com.datastax.driver.core.Cluster.init(Cluster.java:158)
    5. com.datastax.driver.core.Cluster.connect(Cluster.java:248)
    6. com.datastax.driver.core.Cluster.connect(Cluster.java:281)
    6 frames
  3. com.dbschema
    CassandraJdbcDriver.connect
    1. com.dbschema.CassandraJdbcDriver.connect(CassandraJdbcDriver.java:42)
    1 frame
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:664)
    2. java.sql.DriverManager.getConnection(DriverManager.java:208)
    2 frames
  5. Apache Solr DataImportHandler
    DataImporter$1.run
    1. org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:185)
    2. org.apache.solr.handler.dataimport.JdbcDataSource$1.call(JdbcDataSource.java:172)
    3. org.apache.solr.handler.dataimport.JdbcDataSource.getConnection(JdbcDataSource.java:503)
    4. org.apache.solr.handler.dataimport.JdbcDataSource$ResultSetIterator.<init>(JdbcDataSource.java:313)
    5. org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:283)
    6. org.apache.solr.handler.dataimport.JdbcDataSource.getData(JdbcDataSource.java:52)
    7. org.apache.solr.handler.dataimport.SqlEntityProcessor.initQuery(SqlEntityProcessor.java:59)
    8. org.apache.solr.handler.dataimport.SqlEntityProcessor.nextRow(SqlEntityProcessor.java:73)
    9. org.apache.solr.handler.dataimport.EntityProcessorWrapper.nextRow(EntityProcessorWrapper.java:244)
    10. org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:475)
    11. org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:414)
    12. org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:329)
    13. org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:232)
    14. org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:416)
    15. org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:480)
    16. org.apache.solr.handler.dataimport.DataImporter$1.run(DataImporter.java:461)
    16 frames