#12 Restful Web Services Tutorial | Mysql Repository part 2




Check out our website: http://www.telusko.com Follow Telusko on Twitter: https://twitter.com/navinreddy20 Follow on Facebook: Telusko …

Original source


11 responses to “#12 Restful Web Services Tutorial | Mysql Repository part 2”

  1. Those who are facing Exception while the java code interacting with MySQl DB i.e "Could not create connection to database server. Attempted reconnect 3 times. Giving up." or any similar kind of error. Just Make sure to close the connection of Connection, Statement also Resultset but not mandatory of the respective webservice methods:
    EX-
    finally {
    if (rs != null) {
    try {
    rs.close();
    } catch (SQLException e) { /* ignored */}
    }
    if (st != null) {
    try {
    st.close();
    } catch (SQLException e) { /* ignored */}
    }
    if (con != null) {
    try {
    con.close();
    } catch (SQLException e) { /* ignored */}
    }
    }

  2. Hi Navin, Your videos are awesome but i need one help with this content. While running the app i am getting one error like
    Com.mysql.jdbc.exception.jdbc4.MySqlNonTransientConnectionException:could not create connection to database server.

    I checked and googled manything but not sure hoo to solve it , my unmae and pwd in code is also correct but not sure what to check. Need your help here , Thanks

  3. Thanks for sharing this important this topic with us.
    I followed each and every step as you shown in this project but right now i am getting an error..
    error is :- java.sql.SQLException: Fail to convert to internal representation
    i am using oracle database and all dependencies is installed on maven…
    please help me to resolve this issue.
    hoping for best.
    Thanks.

Leave a Reply