title: The server encountered an internal error that prevented it from fulfilling this request
body: <p>In the last month i have done one project ,everything it was running properly .But today i was trying to run that project ,but i am not able to see the output of the project .
  I am getting the following error.</p>
  
  <p>type Exception report</p>
  
  <p>message <a href="http://search.twitter.com/search.json?q=name" rel="nofollow">http://search.twitter.com/search.json?q=name</a></p>
  
  <p>description The server encountered an internal error that prevented it from fulfilling this request.</p>
  
  <p>exception </p>
  
  <p>java.io.FileNotFoundException: showing the above link 
      sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1610)
      com.zol.tst.search_by_keyword.doGet(search_by_keyword.java:60)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:728)</p>
  
  <p>note The full stack trace of the root cause is available in the Apache Tomcat/7.0.37 logs.</p>
  
  <p>I checked this URL(above link) also but   but i am getting the one message 
  {"errors": 
  [{"message": "The Twitter REST API v1 is no longer active. Please migrate to API v1.1. <a href="https://dev.twitter.com/docs/api/1.1/overview" rel="nofollow">https://dev.twitter.com/docs/api/1.1/overview</a>.", "code": 68}]}</p>
  
  <p>Some sample code i want to show</p>
  
  <pre><code>if(request.getParameter("search1")!=null)
          {
  
          PrintWriter writer  = response.getWriter();
  
              String urlstr = "http://search.twitter.com/search.json?q="+name;  
              StringBuffer buff = new StringBuffer();       
  
              URL url = new URL(urlstr);  
              BufferedReader br = new BufferedReader(  
                                          new InputStreamReader(  
                                          url.openConnection().getInputStream()));  
              int c;  
  </code></pre>
  
  <p>In the fourth line i have used that URL for that only i am not getting the output of my project .Can anyone help me.</p>