개발문제해결/Exception

    React 에러 - Cannot find file: .. does not match the corresponding name on disk

    React 에러 - Cannot find file: .. does not match the corresponding name on disk

    에러이다. 뭐가문제지.. 라고 생각해서 파일들에 적혀있는 모든 index를 체크, 구글링하는 뻘짓을 하여 30분가량을 소모했는데 문제는 Index.js 였다. 그렇다! 대문자가 문제였던 것이다.. index.js 로 파일명을 바꾸어주니 무사히 해결됐다. 에러를 구글링하여 이 포스틍에 들어온 분들은 먼저 철자를 체크해보시길 바란다. 구글링 해 본 결과, 철자에서 문제가 일어나는 케이스가 많았다. https://github.com/webpack/webpack/issues/5073 흔한 예로는 import React from 'react'; 를 React로 적어서 에러가 나는 경우인듯 하다. 먼저 자신의 코드가 React로 되어있는지 체크를 해보도록 하자.

    Brackets 자바스크립트(javascript) 첫 console.log 에러

    Brackets 자바스크립트(javascript) 첫 console.log 에러

    1. 'console' was used before it was defined. 2. ERROR: Unexpected console statement.[no-console] 3. ERROR: 'console' is not defined.[no-undef] Brackets으로 처음 console.log를 하면 나올 수 있는 에러들이다. 웹을 뒤져서 해결했기에 다른 사람들은 고생하지 않길 바라는 마음에 적는다. 어떤 원리로 고쳐지는 지는 나도 모른다. 1. 'console' was used before it was defined. 맨 처음에 주석 /*jslint devel: true */ 를 붙여준다. https://stackoverflow.com/questions/40816924/jslint-throwin..

    에러 The goal you specified requires a project to execute but there is no POM

    에러 The goal you specified requires a project to execute but there is no POM

    [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (D:\......................). Please verify you invoked Maven from the correct directory. -> [Help 1][ERROR][ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR][ERROR] For more information abo..

    스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"

    스프링 시큐리티 5 - There is no PasswordEncoder mapped for the id "null"

    https://spring.io/blog/2017/11/01/spring-security-5-0-0-rc1-released#reverting-to-previous-behavior-insecure The general format for a password is:{id}encodedPasswordSuch that id is an identifier used to look up which PasswordEncoder should be used and encodedPassword is the original encoded password for the selected PasswordEncoder. The id must be at the beginning of the password, start with { a..

    에러 - Optional int parameter is present but cannot be translated into a null value

    에러 - Optional int parameter is present but cannot be translated into a null value

    int를 null로 선언할 수 없으니 long등 다른 자료형을 사용하라는 이야기이다. 기본자료형 int는 null로 선언할 수 없다. 저 HTTP 500 에러는 어떤 과정상에서 int 기본변수에 null값이 들어가서 생기는 에러이다. 자신의 로직 중 int에 null이 들어갈 수 있는 장소를 찾아내서 수정해줘야한다. 내 경우는 어디가 문제인지 2시간동안 찾았는데.. ajax로 input으로 넘거야 하는 값을 form으로 넘겨서 url이 바뀌어서 기존 파라미터 변경으로 인해 생기는 에러였다...

    ORA-00936 누락된 표현식의 원인

    ORA-00936 누락된 표현식의 원인

    어제부터 자꾸 이런 에러가 떳다. 이 에러의 이유는 보통 ' ' , . ; * 이런 기호들을 잘못 사용해서 발생한다. 이 포스트에 들어왔다면 자기 쿼리문의 기호를 다시 체크해보도록 하자 나는 기호는 다 맞추었는데, 안되는 경우였다. String SQL_SELECTPAGE = "select b.writer, b.title, b.topicdate, b.lecturekey, b.tcontent" + "from (select rownum rn, a.* from (select * from topics WHERE LECTUREKEY = #{lid}" + "order by topicdate desc) a) b" + "where rn between #{c.start} and #{c.end}";내 쿼리문은 이러하다. 처..

    JSTL c tag 링크 에러

    JSTL c tag 링크 에러

    According to TLD or attribute directive in tag file, attribute [test] does not accept any expressions 스택오버플로우에서 가져온 오류 이유입니다. You must use JSP, JSTL - is just set of custom tags and can not be used separately. As well as Expression Language. If you are not using any MVC frameworks, then you need to do some of their work by yourself. Please take a look (if you haven't yet) at following design pat..

    JQuery 에러 “TypeError: $.getJSON is not a function”

    JQuery 에러 “TypeError: $.getJSON is not a function”

    JQuery.Deferred exception: $.getJSON is not a function TypeError: $.getJSON is not a function “TypeError: $.getJSON is not a function” jquery slim 버전에는 JSON을 처리하는 함수가 존재하지 않는다. 때문에 slim 버전을 일반버전으로 바꾸어 주면 완료된다. 하지만 내 코드는 일반버전을 참조하고 있다. 왜 이런오류가 일어날까? 코드를 살펴보면 header 처리를 위한 액션태그를 사용하고 있는데 이 헤더 JSP에서 slim.min.js 를 참조하고 있다. 액션태그는 읽는 순간부터 참조파일까지 다 바꿔버리는듯하다. 이부분을 바꿔주면 에러가 해결된다.

    HTTP Status 500 - JSP 액션태그 에러

    HTTP Status 500 - JSP 액션태그 에러

    org.apache.jasper.JasperException: /WEB-INF/views/board/../subPage/header.jsp (line: [8], column: [1]) Page directive: illegal to have multiple occurrences of 'contentType' with different values (old: [text/html; charset=UTF-8], new: [text/html;charset=UTF-8]) JSP 헤더나 풋터 같은 액션태그를 사용할 때 컨텐트 타입의 형식이 맞지 않으면 발생하는 에러입니다. 설정이같아도 형식이 다르면 에러가 날 수 있습니다. 액션태그 대상과 컨텐트 타입을 맞춰줍시다.

    ORA-00904 에러 부적절한 식별자

    ORA-00904 에러 부적절한 식별자

    Question: I am running a SQL statement and I get a SQL*Plus error ORA-00904 invalid identifier. 질문: 저 SQL 썻는데 ORA-00904 에러 떴어요. Answer: When ORA-00904 occurs, you must enter a valid column name as it is either missing or the one entered is invalid. The "invalid identifier" most common happens when you are referencing an invalid alias in a select statement. 답: ORA-00904 에러가 떳다면, 컬럼이 빠졌거나 이름이 잘못되있..