오류해결

JAVA/오류해결

java.lang.SecurityException: class "org.hamcrest.Matchers"'s signer information does not match signer information of other classes in the same package

😢 오류 내용 java.lang.SecurityException: class "org.hamcrest.Matchers"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(Unknown Source) at java.lang.ClassLoader.preDefineClass(Unknown Source) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.Secu..

JAVA/오류해결

[Spring Boot][오류해결] Modifying queries can only use void or int/Integer as return type

Resolved [org.springframework.dao.InvalidDataAccessApiUsageException: Modifying queries can only use void or int/Integer as return type! Offending method: public abstract com.example com.example.repository.myRepository.mySave(int,int,java.lang.String); nested exception is java.lang.IllegalArgumentException: Modifying queries can only use void or int/Integer as return type! Offending method: publ..

Git & GitHub/오류해결

[오류해결] fatal: Unable to create '~~/.git/index.lock': File exists.

git에 이유 모를 에러가 발생해서 강제종료되었다. 그래서 다시 git을 실행하여 git add 명령어를 사용했는데 아래와 같은 에러가 발생할 때가 있을 것이다. $ git add . fatal: Unable to create '디렉토리/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earl..

JAVA/오류해결

[Spring Boot][오류해결] Executing an update/delete query

스프링 부트를 사용할 때 네이티브 쿼리를 통해 JPARepository를 다루는 경우가 있다. 그런데 아래와 같은 오류가 발생할 때가 있다. Resolved [org.springframework.dao.InvalidDataAccessApiUsageException: Executing an update/delete query; nested exception is javax.persistence.TransactionRequiredException: Executing an update/delete query] TransactionRequiredException이 발생한 것인데, update/delete 쿼리를 실행할 때 @Transactional을 붙여주지 않았기 때문에 발생한 에러이다. 문제의 코드 publ..

Git & GitHub/오류해결

[오류해결][Git] merge Conflict 해결

$ git merge my Auto-merging 기능.txt CONFLICT (content): Merge conflict in 기능.txt Automatic merge failed; fix conflicts and then commit the result. 한 프로젝트를 가지고 브랜치를 나눠서 서로 다른 작업을 하다보면 프로젝트 수정하는 부분이 겹칠 수도 있다. 이 때 git merge 명령어를 통해 브랜치를 합병하면 위와 같은 오류가 발생할 수 있다. Automatic merge failed; fix conflicts and then commit the result. 해석해보자면, 합병에 실패했다. 충돌되는 부분을 수정하고나서 커밋하라는 말이다. 만약 main 브랜치와 my 브랜치가 있다고 해보자...

JAVA/오류해결

[Spring Boot][오류해결] Parameter 0 of constructor in ~~ required a single bean, but 2 were found

Description: Parameter 0 of constructor in com.bigbell.springboot.cruddemo.service.EmployeeServiceImpl required a single bean, but 2 were found: - employeeDAOHibernateImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\target\classes\com\bigbell\springboot\cruddemo\dao\EmployeeDAOHibernateImpl.class] - employeeDAOJpaImpl: defined in file [D:\bigbell\Spring-Boot\22-jpa-crud- demo\targ..

gakko
'오류해결' 태그의 글 목록