Advertisement
Fhernd

java.sql.SQLException

Aug 6th, 2012
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 3.74 KB | None | 0 0
  1. HTTP Status 500 -
  2.  
  3. type Exception report
  4.  
  5. message
  6.  
  7. description The server encountered an internal error () that prevented it from fulfilling this request.
  8.  
  9. exception
  10.  
  11. org.apache.jasper.JasperException: An exception occurred processing JSP page /UploadCuponPago.jsp at line 64
  12.  
  13. 61:                                
  14. 62:                 String filePathOnServer= application.getRealPath("files/" + fileName );
  15. 63:                
  16. 64:                 parserObj.startParse( filePathOnServer );
  17. 65:                
  18. 66:                 session.setAttribute("uploadSuccess", true);
  19. 67:                
  20.  
  21.  
  22. Stacktrace:
  23.     org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:553)
  24.     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:442)
  25.     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
  26.     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  27.     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  28. root cause
  29.  
  30. javax.servlet.ServletException: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
  31.     org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:911)
  32.     org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:840)
  33.     org.apache.jsp.UploadCuponPago_jsp._jspService(UploadCuponPago_jsp.java:149)
  34.     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  35.     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  36.     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
  37.     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
  38.     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  39.     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  40. root cause
  41.  
  42. java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
  43.     com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
  44.     com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3566)
  45.     com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3498)
  46.     com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:919)
  47.     com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4004)
  48.     com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1284)
  49.     com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2312)
  50.     com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2122)
  51.     com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:774)
  52.     com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:49)
  53.     sun.reflect.GeneratedConstructorAccessor37.newInstance(Unknown Source)
  54.     sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  55.     java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  56.     com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
  57.     com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:375)
  58.     com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:289)
  59.     java.sql.DriverManager.getConnection(DriverManager.java:582)
  60.     java.sql.DriverManager.getConnection(DriverManager.java:185)
  61.     upload.ParseCupones.saveOnDB(ParseCupones.java:85)
  62.     upload.ParseCupones.startParse(ParseCupones.java:77)
  63.     org.apache.jsp.UploadCuponPago_jsp._jspService(UploadCuponPago_jsp.java:130)
  64.     org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
  65.     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  66.     org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
  67.     org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391)
  68.     org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
  69.     javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
  70. note The full stack trace of the root cause is available in the Apache Tomcat/7.0.12 logs.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement