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

    Issue of pagination in Spring Data JPA

    Stack Overflow | 5 years ago | Tom
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter!
  4. 0

    Unit tests using redisTemplate fail

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

  1. SteVio1989 2 times, last 5 days ago
  2. Andreas Häber 1 times, last 6 days ago
  3. tomthomas 4 times, last 22 hours ago
  4. Dunmer 3 times, last 4 weeks ago
  5. Axelo 1 times, last 4 weeks ago
10 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