Some more info:

I noticed I was using Tomcat 4.01. Just upgraded to 4.03, but that didn't
help much. I downloaded the source to see where the exception is happening
and what I find is very perplexing. Using 4.03, the start of the exception
looks like this:

2002-04-11 09:35:49 WarpEngine[develop.streetmail.com]: Mapping request
2002-04-11 09:35:49 WarpHost[develop.streetmail.com]: Mapping request for
Host
2002-04-11 09:35:49 [org.apache.catalina.connector.warp.WarpRequestHandler]
java.lang.NullPointerException
 at
org.apache.catalina.authenticator.AuthenticatorBase.checkUserData(Authentica
torBase.java:702)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:491)

Line 702 in authenticatorBase.java is marked with a star:

// Initialize variables we need to determine the appropriate action
HttpServletRequest hrequest =
   (HttpServletRequest) request.getRequest();
HttpServletResponse hresponse =
    (HttpServletResponse) response.getResponse();
*int redirectPort = request.getConnector().getRedirectPort();

It looks to me like getConnector is returning null. How can that be? I have
defined, and am using the Warp connector. I know it is being used because
when I remove the  <user-data-constraint> everything works fine.

Running out of ideas :-(

Rich



-----Original Message-----
From: Rich [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 3:55 PM
To: [EMAIL PROTECTED]
Subject: mod webapp and SSL


I'm trying to secure my webapp with Apache's SSL (mod_ssl). I've given up
trying to get it to work using mod_proxy and have turned to the mod webapp
and the warp connector. I have successfully installed mod webapp and can
access my web application the apache via the Warp connector. I believe
apache's SSL is set up correctly, too, as I can access my web application
securely by changing the protocol in the url to https.

However, as soon as I add the confidential user constraint:

      <user-data-constraint>
          <transport-guarantee>CONFIDENTIAL</transport-guarantee>
      </user-data-constraint>

to any of my servlets, tomcat bails with a null pointer exception. Has
anyone seen this before? Any insight/ideas would be greatly appreciated.

Rich

2002-04-10 15:32:43 WarpEngine[develop.streetmail.com]: Mapping request
2002-04-10 15:32:43 WarpHost[develop.streetmail.com]: Mapping request for
Host
2002-04-10 15:32:43 [org.apache.catalina.connector.warp.WarpRequestHandler]
java.lang.NullPointerException
        at
org.apache.catalina.authenticator.AuthenticatorBase.checkUserData(Authentica
torBase.java:694)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:481)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
        at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
        at java.lang.Thread.run(Thread.java:484)


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to