본문 바로가기

728x90

컴퓨터 에러

(7)
도커 This error may indicate that the docker daemon is not running. open //./pipe/docker_engine: The system cannot find the file specified. 해결 방법은 두 가지이다. 1) docker setting 변경 docker 설정에 들어간다. Expose Daemon on tcp://localhost:2375 without TLS 항목을 위와 같이 체크해주면 된다. 필자는 여기서 해결이 완료됐다. 2) 명령어 입력 powershell을 관리자 권한으로 실행한 뒤에 아래의 명령어를 치면 된다. cd C:\Program Files\Docker\Docker DockerCli.exe -SwitchDaemon 자세한 설정은 https://github.com/docker/for-win/issues/1825 에서 확인할 수 있다.
Uncaught TypeError: Object(...) is not a function 오류 import 경로가 잘못 되었을 때 일어나는 에러. 필자는 import한 함수가 갑자기 삭제돼서 발생했었다. (물론 다시 생성하니 말끔히 해결됐다.)
org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation DTO에lombok의 @Data 어노테이션이나 getter 함수를 추가하면 된다. 필자는 DTO를 생성할 때, @Data 어노테이션을 빼먹을 때, 자주 오류가 나타났다.
<%@ page session="false" %> 로 인해 변경된 내용이 화면에 안 바뀜. 만약 바꾸고 싶으면 꼭! 변경 바람.
메이븐에서 오류가 발생한 경우 mvn clean install -U 명령어를 입력하면 된다.
org.springframework.beans.factory.BeanCreationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring-config.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'class path resource [com/domain/sql/mapper/UserDao.xml]'; nested exception is java.io.FileNot..
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "ALTER TABLE ORDER_DETAIL ADD CONSTRAINT FKPLAM7WXC4TJBGEX0XYK8F0QXO FOREIGN KEY (ORDER_ID) REFERENCES ORDER[*] (ORDER_ID) "; expected "identifier"; SQL statement: expected "identifier" 식별자 오류가 난다. 뭐가 문제일까? 문제는 바로 이름이다. 예약어(프로그램 내에서 이미 의미와 용법이 지정되어 사용되는 단어)를 테이블명 혹은 식별자(attribute 중에 튜플을 유일하게 식별할 수 있는 attribute. 맨 위에 있는 이름.)에 넣었기 때문에 발생하는 문제인 것. 필자는 like 같은 db에서 사용되는 예약어를 식별자(identifier)로 넣은 게 문제가 되었다. 해결방법 간단하게 예약어에 해당하는 식별자 or 테이블 명을 변경하면 된다.

728x90