error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
해결책은...
root>#yum install libstdc++.so.5
해결책은...
root>#yum install libstdc++.so.5
'작업노트 > Error Handling' 카테고리의 다른 글
| 서블릿을 사용할 경우 js파일 경로 (0) | 2007.09.07 |
|---|---|
| 404 - Servlet action is not available (0) | 2007.07.05 |
| javax.servlet.ServletException: You have an error in your SQL syntax; (0) | 2007.06.01 |
| NullPointerException... (0) | 2007.05.29 |
| warning: unmappable character for encoding MS949 (1) | 2007.05.28 |
javax.servlet.ServletException: You have an error in your SQL syntax;
| 작업노트/Error Handling 2007. 6. 1. 02:16HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=5' at line 1 org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
root cause
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=5' at line 1 com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941) com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623) com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715) com.mysql.jdbc.Connection.execSQL(Connection.java:3243) com.mysql.jdbc.Connection.execSQL(Connection.java:3172) com.mysql.jdbc.Statement.executeQuery(Statement.java:1197) org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) myclasses.BbsDAO.getArticle(BbsDAO.java:84) myclasses.BbsDAO.getArticle(BbsDAO.java:71) myclasses.BbsAction.execute(BbsAction.java:49) org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
mysql DB에서 rcount는 int(6)으로 되어있다.
그런데 DAO class 예제상의 코드에서는
long rcount = rs.getLong("rcount");
rs.updateLong("rcount", rcount+1);
이처럼 long형으로 처리하고 있다.
그래서 long->int로 바꾸었더니 자알~ 된다!
역시 책에 있는 예제라고 100% 믿을건 못되는 듯 하다.
'작업노트 > Error Handling' 카테고리의 다른 글
| 404 - Servlet action is not available (0) | 2007.07.05 |
|---|---|
| error while loading shared libraries (0) | 2007.06.27 |
| NullPointerException... (0) | 2007.05.29 |
| warning: unmappable character for encoding MS949 (1) | 2007.05.28 |
| [Struts] getDataSource() 메소드 관련.. (0) | 2007.05.27 |
'작업노트 > HTML & Script' 카테고리의 다른 글
| 아이프레임 리사이즈 문제 해법 (0) | 2008.01.05 |
|---|---|
| name과 id의 차이 (0) | 2007.09.15 |
| GET방식으로 한글 보내는 방법 (0) | 2007.09.04 |
| innerHTML을 사용할 시에 (0) | 2007.08.29 |
| 서블릿을 이용할때 iframe resize가 안되는 경우.. (1) | 2007.07.17 |


