Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Emily Pineiro After reading the “JSP Data Display Tutorial” and studying the associated sample code, create a word that answers these questions related to the “with classes” code. For each of the following types of errors, (a) describe how you would know you have this type of error (e.g., what error message would you see) and (b) describe how you would fix the error (if the fix is changing code, tell the method/class/package where the fix is needed and describe the code that is needed to fix the problem). Missing Database Driver o “problem getting driver:com.mysql.jdbc.Driver” o I would make sure that the driver was copied into the library folder Database Unreachable o “problem getting connection:Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.” o I am at home so I would have to make sure that I was tunneled into cis-linux2 Database Not Authorized o “problem getting connection:Access denied for user 'sallyk'@'CISLinux2.temple.edu' (using password: YES)” o In dbUtils.DbConn.connect you would need to make sure that the String url has the correct database name, login and password Syntax error in Sql Statement o “Exception thrown in WebUserSql.listAllUsers(): 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 'selectt web_user_id, user_email, user_password, membership_fee, birthday from we' at line 1 partial output:” o In view.WebUserView.listAllUsers you would need to make sure that the String sql has correct syntax Error Extracting Data from Result Set (bad column name) o “Exception thrown in WebUserSql.listAllUsers(): Unknown column 'webb_user_id' in 'field list' partial output:” o In view.WebUserView.listAllUsers you would need to make sure that the String sql has a sql statement referring to columns that exist in the tables you are referring to Error Extracting Data from Result Set (wrong data type) o o “bad Integer in FormatUtils:[email protected] Error:java.lang.String cannot be cast to java.lang.Integer” In view.WebUserView.listAllUsers you would need to make sure that when you are formatting the table you use the proper methods from dbUtils.FormatUtils in order to format the data from the table properly