NoSuchFieldError: Class org.opensearch.client.Requests does not have member field 'org.opensearch.core.xcontent.MediaType INDEX_CONTENT_TYPE'

2025. 5. 15. 21:07·트러블슈팅

 

 

AWS Opensearch를 사용해서 스프링부트 프로젝트에서 인덱싱을 하고자 하였으나 아래와 같은 에러가 발생하였다.

 

NoSuchFieldError: Class org.opensearch.client.Requests does not have member field 'org.opensearch.core.xcontent.MediaType INDEX_CONTENT_TYPE'

 

implementation("org.opensearch.client:opensearch-rest-high-level-client:2.9.0")
implementation("org.opensearch.client:opensearch-java:2.11.1")

 

위와 같이 버전 불일치때문에 발생한 문제였어서 아래와 같이 버전을 통일시켜주니 문제가 제대로 해결되었다.

implementation("org.opensearch.client:opensearch-rest-high-level-client:2.11.1")
implementation("org.opensearch.client:opensearch-java:2.11.1")
'트러블슈팅' 카테고리의 다른 글
  • A param property was accessed directly with `params.id`. `params` is now a Promise and should be unwrapped with `React.use()` before accessing properties of the underlying params object. In this version of Next.js direct access to param properties is stil
  • [JPA] 트랜잭션 save() 반영 안 되는 문제
  • Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
  • [JAVA] Swagger에서 파라미터 숨기기(커스텀 어노테이션 @CurrentUser)
minseok__
minseok__
  • minseok__
    minseok_study
    minseok__
  • 전체
    오늘
    어제
    • 분류 전체보기 (89)
      • JAVA (1)
      • Kotlin (0)
      • CS (1)
      • SQL (7)
      • Python (2)
      • Docker (13)
      • Typescript (0)
      • Javascript (1)
      • AWS (6)
      • NestJS (1)
      • ElasticSearch (1)
      • 트러블슈팅 (10)
      • DB (6)
      • 알고리즘 (5)
      • Redis (1)
      • Postgresql (1)
      • AI (0)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    빅쿼리
    mysql 아키텍처
    createMany
    useswrinfinite
    docker
    window
    k8s
    윈도우
    amazon linux 2023
    error: relation "batch_job_instance" does not exist
    외래키 참조
    EC2
    response data
    openssh 8.8
    반환 데이터
    userauth_pubkey: key type ssh-rsa not in pubkeyacceptedalgorithms
    SQL
    node.js 20
    bigquery
    쿠버네티스
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.3
minseok__
NoSuchFieldError: Class org.opensearch.client.Requests does not have member field 'org.opensearch.core.xcontent.MediaType INDEX_CONTENT_TYPE'
상단으로

티스토리툴바