java.lang.IllegalArgumentException: Unable to identify index name. HashMap is not a Document. Make sure the document class is annotated with @Document(indexName="foo")

Spring JIRA | Mohsin Husen | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Application startup failed with org.hibernate:hibernate-search-orm.XYZ on class path

    GitHub | 3 years ago | dirkrathje
    java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Unit tests using redisTemplate fail

    GitHub | 3 years ago | wxlund
    java.lang.IllegalArgumentException: template not initialized; call afterPropertiesSet() before using it
  4. 0

    spring open jpa db2 error

    Stack Overflow | 3 years ago | Fryder
    java.lang.IllegalArgumentException: Interface must be annotated with @org.springframework.data.repository.RepositoryDefinition!

  1. SteVio1989 3 times, last 3 weeks ago
  2. stigkj 1 times, last 3 weeks ago
  3. batwalrus76 1 times, last 3 weeks ago
  4. kjhdofjosvs 1 times, last 3 months ago
  5. j.kienzle 1 times, last 4 months ago
6 more registered users
29 unregistered visitors
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. java.lang.IllegalArgumentException

    Unable to identify index name. HashMap is not a Document. Make sure the document class is annotated with @Document(indexName="foo")

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:65)
    1 frame
  3. Spring Data Elasticsearch
    ElasticsearchTemplate.bulkIndex
    1. org.springframework.data.elasticsearch.core.ElasticsearchTemplate.getPersistentEntityFor(ElasticsearchTemplate.java:624)
    2. org.springframework.data.elasticsearch.core.ElasticsearchTemplate.getPersistentEntityId(ElasticsearchTemplate.java:630)
    3. org.springframework.data.elasticsearch.core.ElasticsearchTemplate.prepareIndex(ElasticsearchTemplate.java:551)
    4. org.springframework.data.elasticsearch.core.ElasticsearchTemplate.bulkIndex(ElasticsearchTemplate.java:281)
    4 frames