본문 바로가기

🪲 bugs18

Error: Springboot ArgumentResolver를 거치지 않는 예외 발생 상황 관리자 권한 검증을 위한 어노테이션과 ArgumentResolver를 구현했음에도 예외가 발생하였습니다. org.springframework.dao.InvalidDataAccessApiUsageException: The given id must not be null at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:371) ~[spring-orm-6.0.11.jar:6.0.11] at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPoss.. 2023. 9. 25.
Error: Springboot 3.0이상에서 QueryDSL 설정 발생 상황 Springboot 3.0 에서 QueryDSL을 위해 build.gradle과 queryDsl configuration을 다음과 같이 설정했을 때 `JPAQueryFactory` 생성자를 찾을 수 없는 에러가 발생합니다. dependencies { implementation "com.querydsl:querydsl-jpa:5.0.0" annotationProcessor( "javax.persistence:javax.persistence-api", "javax.annotation:javax.annotation-api", "com.querydsl:querydsl-apt:5.0.0:jpa" ) } import com.querydsl.jpa.impl.JPAQueryFactory; import jak.. 2023. 9. 23.
`@Cachable` 사용시 SpelEvaluationException 발생 발생 상황 Spring data Redis 의존성 주입 후, @Cachable 적용하여 테스트하다가 다음의 에러를 만났습니다. 2023-09-18 10:44:26.783 ERROR 7339 --- [nio-8080-exec-4] c.t.secondhand.global.dto.ErrorResponse : EL1030E: The operator 'SUBTRACT' is not supported between objects of type 'java.lang.Long' and 'null' org.springframework.expression.spel.SpelEvaluationException: EL1030E: The operator 'SUBTRACT' is not supported between objects.. 2023. 9. 18.
Spring data JPA: Hibernate가 Sequence를 못찾아요 문제상황 및 파악 처음으로 프로젝트에 Postgresql 을 사용해보고 있습니다. MySQL과 가장 체감되는 달라지는 점이 기본키 매핑 전략 중 Sequence 를 지원한다는 점입니다. 이번에 신나서 `Sequence` 전략을 사용해 봤는데, 왠걸 이렇게 에러가 납니다. 2023-09-11T14:39:29.956+09:00 ERROR 45454 --- [nio-8080-exec-1] o.h.engine.jdbc.spi.SqlExceptionHelper : ERROR: relation "member_seq" does not exist Position: 16 2023-09-11T14:39:29.967+09:00 ERROR 45454 --- [nio-8080-exec-1] p.l.b.g.e.GlobalExce.. 2023. 9. 11.
Springboot: Content-Type 'multipart/form-data' is not supported 발생 상황 multipart/formdata 콘텐트 타입으로 이미지를 요청 body에 받을 때 문제 org.springframework.web.HttpMediaTypeNotSupportedException: Content-Type 'multipart/form-data;boundary=----WebKitFormBoundaryAwYdPgnCGZSXBO1H;charset=UTF-8' is not supported at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodArgumentResolver.readWithMessageConverters(AbstractMessageConverterMethodArgument.. 2023. 9. 11.
SpringSecurity: SecurityFilterChain 설정 발생 상황 SpringSecurity 5.7.0부터 Deprecated 된 WebSecurityConfigurerAdapter 가 6.0부터는 아예 사용할 수 없게 되었습니다. 사용자가 컴포넌트 기반 보안 구성을 할 수 있도록 권장하기 위해서라고 합니다. In Spring Security 5.7.0-M2 we deprecated the WebSecurityConfigurerAdapter, as we encourage users to move towards a component-based security configuration. To assist with the transition to this new style of configuration, we have compiled a list of common.. 2023. 9. 11.
Error: Cannot invoke because "this.repository" is null 발생 상황 PostgreSQL 에 hibernate로 처음 연동 후, 테스트용 API를 보내본 상황 java.lang.NullPointerException: Cannot invoke "project.labelingtool.backend.api.resource.adapter.out.persist.BankRepository.findAll()" because "this.repository" is null at project.labelingtool.backend.api.resource.adapter.out.persist.ResourceRepositoryImpl.findAllBanks(ResourceRepositoryImpl.java:24) ~[main/:na] at project.labelingtool.back.. 2023. 9. 2.
Error parsing HTTP request header 발생 상황 프로젝트 postman 으로 로컬환경에서 통합테스트 중 API 요청할 때 다음과 같은 에러가 발생하였다. 2023-09-02T22:10:25.550+09:00 INFO 72091 --- [nio-8080-exec-1] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level. java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x000xf70x010x000x0.. 2023. 9. 2.