tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Hracek <phrac...@gmail.com>
Subject Re: Problem with downloading file over servlet
Date Tue, 04 May 2010 08:59:30 GMT
If I understand right then sun.net.www.protocol.http.HttpURLConnection is
not part of any class, right / is obsolete?

Or is there any other class?

Sorry for that stupid question but I do not understand. Code has been really
adopted.

2010/5/3 Caldarale, Charles R <Chuck.Caldarale@unisys.com>

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


-- 
Best Regards / S pozdravem
Petr Hracek

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message