기록
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
Home
  • 분류 전체보기 (187)
    • Programming (109)
      • JAVA (15)
      • Javascript (0)
      • 데이터베이스 (8)
      • React (7)
      • 프레임워크 (1)
      • Spring (11)
      • 웹(Web) (4)
      • 운영체제 (5)
      • 서버&네트워크 (6)
      • 자료구조 (0)
      • 알고리즘 (1)
      • 형상관리 (0)
      • 에러노트 (35)
      • 개발 툴 (15)
      • TEMP. (1)
    • Project (0)
      • 트러블슈팅 (0)
    • Personal (2)
      • 리뷰 (1)
      • 업무 (0)
    • Course (0)
      • 모든 개발자를 위한 HTTP 웹 기본 지식 (1)
      • 스프링 핵심 원리 - 기본편 (51)
      • 자바 ORM 표준 JPA 프로그래밍 - 기본편 (21)
    • TEMP (0)
블로그 내 검색

기록

  • Programming/에러노트

    [Spring Framework/스프링프레임워크] Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.registerModules(Ljava/lang/Iterable;)Lcom/fasterxml/jackson/databind/ObjectMapper;

    2022. 3. 10.

    by. 개발도비

    2022.1.7 작성

     

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.databind.ObjectMapper.registerModules(Ljava/lang/Iterable;)Lcom/fasterxml/jackson/databind/ObjectMapper;

     

    검색해봐도 라이브러리 버전 업데이트하라는 소리밖에 없었는데 버전 업데이트는 이미 다 해서 몇 시간을 계속 헤맸다. 알고보니 빌드 경로 문제였음. 원래 빌드하면 target 폴더에 파일이 생성되어야 하는데 내가 경로 설정을 다르게 해놔서 out 폴더의 파일만 계속 업데이트되고 있는 거였다. 그래서 target 폴더에 있는 기존의 파일들과 충돌이 난 것 같음.

     

    Project Structure(Command + ;) -> Project Settings -> Artifacts의 Output directory에서 내가 설정한 경로 확인이 가능하다. 여기서 지정한 경로때문에 내 경우엔 Build -> Build Artifacts...를 거쳐서 빌드해야 했음. 

     

    요약하자면

    1. 빌드 경로를 확인한다 

    2. 타겟 폴더에 있는 기존 파일들 삭제한다

    3. 경로에 맞춰서 새롭게 빌드한다 

    'Programming > 에러노트' 카테고리의 다른 글

    [스프링프레임워크] org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'ROLE_ADMIN' cannot be found on object of type 'org.springframework.security.web.access.expression.WebSecurityExpressionRoot' - maybe not ..  (0) 2022.03.10
    [스프링프레임워크] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' available  (0) 2022.03.10
    [Spring Framework/스프링 프레임워크] nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException  (0) 2022.03.10
    [Mybatis/MySQL] Data truncation: Truncated incorrect DOUBLE value 에러 해결 방법(org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: )  (0) 2022.03.10
    [MySQL/Workbench] Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.  (0) 2022.03.10

    댓글

    관련글

    • [스프링프레임워크] org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'ROLE_ADMIN' cannot be found on object of type 'org.springframework.security.web.access.expression.WebSecurityExpressionRoot' - maybe not .. 2022.03.10
    • [스프링프레임워크] org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' available 2022.03.10
    • [Spring Framework/스프링 프레임워크] nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/exc/InvalidDefinitionException 2022.03.10
    • [Mybatis/MySQL] Data truncation: Truncated incorrect DOUBLE value 에러 해결 방법(org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.dao.DataIntegrityViolationException: ) 2022.03.10
    맨 위로
전체 글 보기
Tistory 로그인
Tistory 로그아웃
로그아웃 글쓰기 관리

Today

Total

Powered by ⓒ Kakao Corp.

Designed by Nana
블로그 이미지
개발도비

티스토리툴바