HTTP Status 500 - Request processing failed


서버 셋팅을 마치고 재대로 돌아가던 서버가 코드를 수정하고 서버를 돌리니 다음과 같은 메세지를 웹상에서 내뱉었다.


HTTP Status 500 - Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:


type Exception report

message Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: 
### Error querying database.  Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied
)
### The error may exist in file [C:\dev\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\first\WEB-INF\classes\mapper\sample\Sample_SQL.xml]
### The error may involve sample.selectBoardList
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied
)
	org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)
	org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
	org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
	org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
	org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

root cause



http 에러코드가 500 인걸로 봐서 내부 서버 오류라고 하는데 도대체 어떤점이 잘못됬는지 모르겠다.

500 :Internal server error (내부 서버 오류)


해결

SQL쪽에 문제가 있는 것 같아 datasource 쪽을 보니 아이디 비밀번호를 입력하는 칸이 있었다.


결론부터 말하자면 아이디를 잘 못 적었던 것이다. 



            




패스워드는 동일 하게 적었으나, 오라클이다보니 아이디를 system, sys 로 적었던 것이 문제 였다.


datasource.xml 에 적은 username과 오라클의 접속 ID가 같아야했던 것이었다.






+ Recent posts