/*
 * @(#)NullServlet.java	1.4 05/22/97
 * 
 * Copyright (c) 1995-1997 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of Sun
 * Microsystems, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Sun.
 * 
 * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
 * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
 * THIS SOFTWARE OR ITS DERIVATIVES.
 * 
 * CopyrightVersion 1.0
 */

import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

/**
 *
 * A simple servlet to throw an exception.  Ever wonder what happens
 * if you make a mistake in your code?  Run this to see the error that
 * gets printed.  Also, look in the error log of the webserver, to 
 * see the kind of error that gets printed there.
 *
 * @author Jim Driscoll
 * @version 97/05/22 1.4
 *
 */

public class NullServlet extends HttpServlet { 

    public void service(HttpServletRequest req, HttpServletResponse res)
	throws ServletException, IOException {

        throw new NullPointerException();

    }

    public String getServletInfo() {
        return "A servlet which demonstrates exception logging";
    }
}
