title: How to catch The server sent HTTP status code 500: Internal Server Error
body: <p>I am calling web service through my java SE application. when I run my application and processing long data it provide following error on netbeans console </p>
  
  <blockquote>
    <p>Exception in thread "Thread-2"
    com.sun.xml.internal.ws.client.ClientTransportException: The server
    sent HTTP status code 500: Internal Server Error</p>
  </blockquote>
  
  <p>I have use following code for caching errors</p>
  
  <pre><code>        try{
          ......
          } catch (HeadlessException | NumberFormatException e) {
              JOptionPane.showMessageDialog(null, "Error\nPlease Re-Process","Point Calculation",  0);
              Logger.getLogger(WeeklyPoint_processing.class.getName()).log(Level.SEVERE, null, e);
          } finally {
              progressPannel.dispose();
          }
  </code></pre>
  
  <p>but it doesn't catch  code 500: Internal Server Error.</p>
  
  <p>What type of exception should I catch.</p>