Topic
  • 1 reply
  • Latest Post - ‏2012-07-20T08:00:00Z by SystemAdmin
SystemAdmin
SystemAdmin
2262 Posts

Pinned topic NoSuchMethodError: sun/security/util/HostnameChecker.getSubjectX500Name

‏2011-12-15T15:19:32Z |
I have written a simple https client that works on windows. When I move it over to an AIX system, I get the following error. Attached is a snippet of my code to send the request.

Thanks for your help!

Al

---

Exception in thread "main" java.lang.NoSuchMethodError: sun/security/util/HostnameChecker.getSubjectX500Name(Ljava/security/cert/X509Certificate;)Lsun/security/x509/X500Name;
at com.sun.net.ssl.internal.www.protocol.https.VerifierWrapper.a(DashoA6275)
at com.sun.net.ssl.internal.www.protocol.https.VerifierWrapper.verify(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.b(DashoA6275)
at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA6275)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:866)
at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl.getOutputStream(DashoA6275)
at RateCheck.executeXAI(RateCheck.java:460)
at RateCheck.main(RateCheck.java:83)
Updated on 2012-07-20T08:00:00Z at 2012-07-20T08:00:00Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    2262 Posts

    Re: NoSuchMethodError: sun/security/util/HostnameChecker.getSubjectX500Name

    ‏2012-07-20T08:00:00Z  
    You're using an internal Sun class which is not part of the standard JDK, hence this class is not available on the IBM JDK. Try and see if there is a com.ibm.security.util package equivalent of the class you're looking for, otherwise if you're using Eclipse, you might try searching for the class or method name against the IBM JDK for an equivalently named class.

    How to ask questions the smart way - http://www.catb.org/~esr/faqs/smart-questions.html