Re: Problem with downloading file over servlet

2010-05-04 Thread André Warnier

Petr Hracek wrote:

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.


Petr,

I think what they are telling you is :
- this is a forum for help with Tomcat and Tomcat code, and the 
expertise of people here is with Tomcat
- the error that you show, is an error that happens within an 
application running under Tomcat, but it is not code that belongs to 
Tomcat, or which uses the Tomcat libraries
- nobody here knows that code, so nobody here can really help you with 
it, or answer your questions about it.  You need to find where that code 
comes from, and ask them for help.


It is not that people here do not want to help, it is that they cannot help.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Problem with downloading file over servlet

2010-05-04 Thread Pid
On 04/05/2010 10:32, André Warnier wrote:
 Petr Hracek wrote:
 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.

 Petr,
 
 I think what they are telling you is :
 - this is a forum for help with Tomcat and Tomcat code, and the
 expertise of people here is with Tomcat
 - the error that you show, is an error that happens within an
 application running under Tomcat, but it is not code that belongs to
 Tomcat, or which uses the Tomcat libraries
 - nobody here knows that code, so nobody here can really help you with
 it, or answer your questions about it.  You need to find where that code
 comes from, and ask them for help.
 
 It is not that people here do not want to help, it is that they cannot
 help.

Using a sun.net... class is generally inadvisable.

You probably want the application to use the java.net.HttpURLConnection
class instead - it might be an artefact of an auto-import by an IDE.

On the other hand the author may, for some reason, be using that class
for a specific reason, however unwise it may be.

Disclaimer: I am guessing; you will definitely have to talk to the
authors to find out.


p

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 




signature.asc
Description: OpenPGP digital signature


RE: Problem with downloading file over servlet

2010-05-03 Thread Caldarale, Charles R
 From: Petr Hracek [mailto:phrac...@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.



RE: Problem with downloading file over servlet

2010-05-03 Thread Martin Gainty

Petr

Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 3 May 2010 16:40:03 +0200
 Subject: Problem with downloading file over servlet
 From: phrac...@gmail.com
 To: users@tomcat.apache.org
 
 Hello *,
 
 In my servlet I am collecting some information which are stored on the
 UnixWare system.
 The generated files are stored on the system correctly and after
 transferring via scp to the Windows all is OK.
 
 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)
   at 
 de.siemens.icn.hipath.unity.as.repgen.api.ServletRequestThread.parseRunReportLine(ServletRequestThread.java:731)
   at 
 de.siemens.icn.hipath.unity.as.repgen.api.ServletRequestThread.run(ServletRequestThread.java:242)
 
 Do you know what is the reason of that failure?
 
 Thank you in advance
 
 -- 
 Best Regards / S pozdravem
 Petr Hracek
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3

RE: Problem with downloading file over servlet

2010-05-03 Thread Martin Gainty

Petr

Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




 Date: Mon, 3 May 2010 16:40:03 +0200
 Subject: Problem with downloading file over servlet
 From: phrac...@gmail.com
 To: users@tomcat.apache.org
 
 Hello *,
 
 In my servlet I am collecting some information which are stored on the
 UnixWare system.
 The generated files are stored on the system correctly and after
 transferring via scp to the Windows all is OK.
 
 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)
   at 
 de.siemens.icn.hipath.unity.as.repgen.api.ServletRequestThread.parseRunReportLine(ServletRequestThread.java:731)
   at 
 de.siemens.icn.hipath.unity.as.repgen.api.ServletRequestThread.run(ServletRequestThread.java:242)
 
 Do you know what is the reason of that failure?
 
 Thank you in advance
 
 -- 
 Best Regards / S pozdravem
 Petr Hracek
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
  
_
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with 
Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendarocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5