-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

Eric Grace wrote:

> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Hello,
>
> Thought I would post this under a more descriptive subject....
>
> Im trying make an RMI connection to an application server, and keep
> recieving the following error:
>    (EMERGENCY) ajp11: cannot scan servlet headers
>

One possible cause for this error is that your servlet throws an exception that
is not caught -- like a NullPointerException, IllegalArgumentException, and so
on.   The servlet engine aborts processing of your servlet without sending the
headers back, depending on when the actual exception occurs.

To debug something like this, surround the entire doGet() or doPost() method in
a try...catch block like this:

    try {
        ... text of doGet() or doPost() ...
    } catch (Throwable t) {
        ... dump out the exception and ...
        ... stack trace here ...
    }

If this is happening, the text of the exception, and the associated stack
trace, will help you isolate what is going on.

Craig McClanahan




--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to