tomcat - java.lang.Exception:java.lang.Exception:HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection -


import java.net.url; import javax.net.ssl.hostnameverifier; import javax.net.ssl.httpsurlconnection; import javax.net.ssl.sslsession; ・・・omission・・・`      httpsurlconnection huc=null;     stringbuffer responsebuff=null;     url posturl=null;     printwriter writer=null;     bufferedreader br=null;     domparser parser=null;     nodelist nl=null;     element e=null;     nodelist lasteventlist=null;     element lasteventelement=null;     response response = new response();     try{         responsebuff = new stringbuffer();         posturl = new url(request.getdomain());         huc = (httpsurlconnection)posturl.openconnection(); 

i have confirmed works without error (on live server). after modified sources of different logic, , restarted tomcat, throws classcastexception @ last row of source. detail of error:

java.lang.exception:java.lang.exception:java.lang.classcastexception:  com.sun.net.ssl.internal.www.protocol.https.httpsurlconnectionoldimpl cannot cast javax.net.ssl.httpsurlconnection java.lang.exception: java.lang.exception: java.lang.classcastexception: 

java version : 1.6.0_23

there isn't relations between modified part , throwing error part. however, error resolved when restart tomcat. there knows reason?


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -