반응형
Java 를 사용중에 아래와 같은 에러가 발생하였다.
java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:141)
전체 에러는 아래와 같다.
java.lang.IllegalArgumentException at java.sql.Date.valueOf(Date.java:141) at event.action.EventAddAction.execute(EventAddAction.java:27) at event.action.EventFrontController.service(EventFrontController.java:25) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) |
결론은 Date 값 인자에 Date값이 안들어와서 그렇다.
rs.getString(1) .. 2 .. 3
이렇게 넣다보니 바인딩 숫자를 헷갈려서 엄한 데이터를 Date에 넣으려니 발생한 에러였다.
반응형
'IT > Java' 카테고리의 다른 글
Externalized Configuration (19) | 2024.04.07 |
---|---|
java.net.MalformedURLException (19) | 2024.04.06 |
No value supplied for the SQL parameter 'column': No value registered for key 'column’ (22) | 2024.04.02 |
[Error] Invalid value type for attribute 'factoryBeanObjectType': java.lang.String (22) | 2024.03.27 |
[Error] java.lang.IllegalArgumentException: Illegal character in scheme at index 0: localhost (15) | 2024.03.26 |
댓글