dcsimg
Null pointer exception on port redirect
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Carsten_Friedrich
Posted On:   Wednesday, May 29, 2002 12:11 AM

I use Tomcat/4.0.3, Java 1.4.0, and IE6 on a Windows 2000 system. I use close to default settings for server.xml, that is redirecting to 8443 from 8080. I enabled 8443 for ssl connections. https://localhost:8443 works fine http://localhost:8080 works fine https://localhost:8080 which, as I understand should redirect to the 8443 port produces: Apache Tomcat/4.0.3 java.lang.NullPointerException at org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpR esponseStream.java:253) at org.apache.catalina.connector.http.HttpResponseStream. (HttpResp onseStream.java:104) at org.apache.catalina.connector.http.HttpResponseImpl.crea   More>>

I use Tomcat/4.0.3, Java 1.4.0, and IE6 on a Windows 2000
system. I use close to default settings for server.xml, that is redirecting to 8443 from 8080.

I enabled 8443 for ssl connections.


https://localhost:8443 works fine

http://localhost:8080 works fine

https://localhost:8080 which, as I understand should redirect to the 8443 port produces:


Apache Tomcat/4.0.3
java.lang.NullPointerException
at org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpR
esponseStream.java:253)
at org.apache.catalina.connector.http.HttpResponseStream. (HttpResp
onseStream.java:104)
at org.apache.catalina.connector.http.HttpResponseImpl.createOutputStrea
m(HttpResponseImpl.java:220)
at org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBa
se.java:725)
at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBas
e.java:469)
at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRes
ponseBase.java:236)
at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(Ht
tpResponseImpl.java:288)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1039)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1107)
at java.lang.Thread.run(Thread.java:536)

   <<Less

Re: Null pointer exception on port redirect

Posted By:   Anonymous  
Posted On:   Thursday, May 30, 2002 11:57 AM

Hi, I think https://localhost:8080 should NOT be redirected to port 8443..? That's because the connector that is listening port 8080 does not understand SSL encrypted data..?



If you want that some page or pages are only accessible through SSL, you have to define rules in your web.xml.



Then, when somebody tries to access that page with http://localhost:8080, Tomcat redirects to connection automatically to port 8443 and uses https.

About | Sitemap | Contact