tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Problem with downloading file over servlet
Date Mon, 03 May 2010 14:45:43 GMT
> From: Petr Hracek [mailto:phracek2@gmail.com]
> Subject: Problem with downloading file over servlet
> 
> But when I am trying to download that files over servlet and https I
> receive following error:
> java.lang.ClassCastException:
> sun.net.www.protocol.http.HttpURLConnection cannot be cast to
> javax.net.ssl.HttpsURLConnection
> 	at
> de.siemens.icn.hipath.unity.as.repgen.api.ServletRequestThread.
> downloadReport(ServletRequestThread.java:658)

You have bad code in the above location.  That's not Tomcat code - it's yours (or at least
code you've adopted).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.

Mime
View raw message