----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

At 10:41 AM 12/21/99 -0700, you wrote:

>Is there anything specific about IE4 that could cause a servlet to fail?
>
>In this case we're getting a nullpointer exception when the servlet tries to
>access a SQL server.
>
>We're running:
>RedHat 6.1
>jserv-1.0
>Apache 1.3.9
>JSDK 2.0
>Blackdown JDK 1.1.7_v3
>
>This is a problem that only happens with IE4 not any version of navigator or
>IE5.

Different browsers do stuff like write HTTP headers in different order, or 
with slightly different syntax,
like "content-type:" vs "content-type :".  This turned out to be the cause 
of a NPE I  was seeing only
in the case of a Netscape client accessing a servlet that was running on 
top of a Domino server; IE
client to Domino was fine, any client to Apache/Websphere or IIS/Websphere 
was fine.  Turned out Domino
was not tolerant of the extra space before the ':' char, so it thought no 
content-type was in the request,, and
that ultimately resulted in ServletRequest.getContentType() returning null, 
which in turned caused the servlet to NPE.

I imagine there's tons of differences like this to contend with.  I suggest 
you wrap your doGet/doPost implementation
with a try, and in the catch print out a stack trace to the servlet 
log.  Good luck.

- Fernando



======================================
Fernando Salazar <[EMAIL PROTECTED]>


--
--------------------------------------------------------------
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