java.lang.ClassCastException:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rashmiks
    New Member
    • Nov 2006
    • 9

    java.lang.ClassCastException:

    Hi All,

    From our application we are making connection to a bank site with the API provided by them . For some reason in one of server we are getting error message

    java.lang.Class CastException: sun.net.www.pro tocol.https.Htt psURLConnection Impl cannot be cast to com.sun.net.ssl .HttpsURLConnec tion*

    any one has idea why we are getting this exception .
  • Nepomuk
    Recognized Expert Specialist
    • Aug 2007
    • 3111

    #2
    Yes, I have an idea: at some point you're trying to cast a sun.net.www.pro tocol.https.Htt psURLConnection Impl Object to com.sun.net.ssl .HttpsURLConnec tion and that is not possible. For more help, you'd have to give us the code that is producing this error.

    Greetings,
    Nepomuk

    Comment

    Working...