You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@juddi.apache.org by Al Caponi <do...@yahoo.com.sg> on 2002/01/25 01:38:03 UTC

[jUDDI-users] NoSuchMethodError on making a SSL connection

MessageHi all,
    I was trying to send a call to the publish API of HP UDDI Registry
    Here is my code:
    /* START CODE */
    import org.juddi.request.GetAuthTokenRequest;
    import org.juddi.soap.client.SOAPClient;

    public class GetAuthTokenRequestTest {

      public GetAuthTokenRequestTest()
      {
      }
      public static void main(String[] args) throws Exception
      {
        GetAuthTokenRequest gatr = new GetAuthTokenRequest("myUserName",
"myPassword");
        String url = "https://uddi.hp.com/publish;
        String resp = SOAPClient.sendUDDIRequest(url, gatr.toXML());
        System.out.println(resp);
      }
    }
    /* END CODE */

    and I got the following error:

    java.lang.NoSuchMethodError
     at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.a(DashoA6275)
     at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.<init>(DashoA6275)
     at
com.sun.net.ssl.internal.ssl.TrustManagerFactoryImpl.engineInit(DashoA6275)
     at javax.net.ssl.TrustManagerFactory.init(DashoA6275)
     at com.sun.net.ssl.internal.ssl.SSLContextImpl.d(DashoA6275)
     at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.<init>(DashoA6275)
     at java.lang.Class.newInstance0(Native Method)
     at java.lang.Class.newInstance(Class.java:237)
     at javax.net.ssl.SSLSocketFactory.getDefault([DashoPro-V1.2-120198])
     at org.juddi.util.SSLUtils.buildSSLSocket(SSLUtils.java:28)
     at org.juddi.util.HTTPUtils.getSocket(HTTPUtils.java:95)
     at org.juddi.util.HTTPUtils.sendMessage(HTTPUtils.java:23)
     at org.juddi.soap.client.SOAPClient.sendUDDIRequest(SOAPClient.java:59)
     at org.juddi.soap.client.SOAPClient.sendUDDIRequest(SOAPClient.java:34)
     at GetAuthTokenRequestTest.main(GetAuthTokenRequestTest.java:13)


    Actually, the SSLUtils class was all commented out. Is it considered
incomplete?
    I got the JDK 1.3 so I d/l JSSE1.0.2 from Sun Java website...
    Could anyone enlighten me? Thanx!

    Regards
    Alain