반응형

if(data.aa== "1" && data.bb = "2"){

alert("dfdf");

}

 

= 하나를 빼먹었다.

대입이 아니라 비교연산자를 넣어야지

 

if(data.aa== "1" && data.bb == "2"){

alert("dfdf");

}

반응형
반응형

MyBatis 에러

java.sql.SQLSyntaxErrorException: ORA-00911: invalid character

응 유효하지 않은 문자~

에러난 쿼리 뒤에 ; 빼야지.. 큼큼..

반응형
반응형

ERROR jdbc.sqltiming - 1. PreparedStatement.execute() FAILED! select equi_type, avg(equi_cnt), sum(data_cnt), sum(normal_data_cnt) normal_data_cnt from (select equi_type, equi_cnt, data_cnt, equi_cnt*((select to_char(sysdate,'hh24') from dual)*30+'15') normal_data_cnt from tb_st_daily_sen where tm8=(select to_char(sysdate,'yyyymmdd') from dual)

{FAILED after 14 msec}

java.sql.SQLSyntaxErrorException: ORA-00907: missing right parenthesis

* parenthesis : 괄호 

쿼리문의 괄호 짝이 안맞는거였음... 빠진 괄호를 넣어주자... )))))

반응형
반응형

 

/career.do 를 호출하는 코드를 짰는데 다음과 같은 에러가 남 

WARN : org.springframework.web.servlet.PageNotFound -  No mapping found for HTTP request with URI [career.do] in DispatcherServlet with name 'appServlet'

 

tomcat 서버 > web module > 

내 card 프로젝트 path가 /card로 되어있었음

/ 로 수정하고 저장, 재시작 하니까 호출 된당 ㅎㅅㅎ

반응형
반응형

 

에러 내용

심각: 경로 []의 컨텍스트 내의 서블릿 [appServlet]을(를) 위한 Servlet.service() 호출이, 근본 원인(root cause)과 함께, 예외 [Request processing failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [java.util.List]: Specified class is an interface]을(를) 발생시켰습니다.

 

컨트롤러에서 파라미터를 List 형태로 명시했는데 ArrayList로 고치면 해결됨 

List는 인터페이스라 그렇슴 

수정 전

 

수정 후

반응형
반응형

StringTokenizer 사용 시 발생 

 

반복 한 번 할 때 nextToken을 두 번 써서 그렇습

 

 

없애버리니까 잘 됨 

반응형
반응형

 

이런 에러인 경우 ㄹㅇ 따옴표 같은게 빠진경우.

행: [4], 열: [27] 에 인용부호가 빠졌다는 소리. 

그럴리가 없는데? 하면서 4번째 줄 안 봤는데 알고나니 4번째줄 에러 맞았음.

Core 라이브러리 taglib디렉티브 url에 따옴표가 빠졌었음 

 

수정수정...

반응형
반응형

Could not publish to the server. java.lang.IndexOutOfBoundsException 에러

C:\Users\사용자명\.m2

repository 삭제 -> eclipse 다시 시작 -> 프로젝트 우클릭 -> Maven -> update project 

하게 되면 각종 라이브러리를 다시 받으면서 메이븐 업데이트가 됨. 완료 되고 실행해보면 이제 된다. ^.ㅠ 시바 

반응형
반응형

<eclipse>

Port 8080 required by Tomcat v9.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

<vscode>

The Tomcat connector configured to listen on port 8443 failed to start.

ERROR o.apache.catalina.util.LifecycleBase - Failed to initialize component [Connector[HTTP/1.1-8080]]

톰캣 서버 포트가 이미 사용중일 때 생기는 에러.

cmd > netstat -p tcp -ano | grep 포트번호

하여 pid 확인 후 

taskkill /f /pid [pid] 로 종료 후 tomcat 재시작해주면 됨 

반응형

+ Recent posts