title: Saving NULL instead of the text of HTML document in Mysql
body: <p>I am making a search engine and I want to save the html document Text (Without Tags) in Mysql When the page is indexed. I am using jsoup, and the following is my code, but for some urls like wikipedia the function returns the text, but stored as NULL in Mysql , and I don't know the reason.</p>
  
  <pre><code>public void insertDocument(Document webPage, int URLID) throws SQLException 
  {
      String query = "Update visitedpages set Document = ? where ID = ?";
      try
      {
          PreparedStatement sqlStatement = conn.prepareStatement(query);
          String text = webPage.text();
          sqlStatement.setString (1, text);
          sqlStatement.setInt (2, URLID);
          sqlStatement.execute();
      }
      catch(SQLException s)
      {
          return;
      }
  }
  </code></pre>