[wsas-java-dev] [jira] Created: (WSAS-249) java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty error returns when secure conversation occurs through UT over HTTPS

Charitha Kankanamge (JIRA) jira at wso2.org
Tue Jun 5 01:27:15 PDT 2007


java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty error returns when secure conversation occurs through UT over HTTPS
------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: WSAS-249
                 URL: http://www.wso2.org/jira/browse/WSAS-249
             Project: WSO2 WSAS-Java
          Issue Type: Bug
    Affects Versions: Nightly
         Environment: winxp, jdk15
            Reporter: Charitha Kankanamge
         Assigned To: Ruchith Fernando


The following exception is thrown at the client side when Commodity Quote sample client is executed with secure option.

org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:377)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:59)
        at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:83)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:646)
        at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:188)
        at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:74)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:312)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:200)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:332)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:199)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:144)
        at org.wso2.wsas.sample.commodityquote.client.CommodityQuoteStub.getQuote(CommodityQuoteStub.java:162)
        at org.wso2.wsas.sample.commodityquote.client.Client.doGetQuote(Client.java:139)
        at org.wso2.wsas.sample.commodityquote.client.Client.start(Client.java:271)
        at org.wso2.wsas.sample.commodityquote.client.Client.main(Client.java:586)
Caused by: com.ctc.wstx.exc.WstxIOException: java.lang.RuntimeException: Unexpected error: java.secu
rity.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
        at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)
        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:115)
        at org.apache.axiom.om.impl.dom.NodeImpl.serializeAndConsume(NodeImpl.java:767)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:55
)
        ... 21 more
Caused by: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.I
nvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:166)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1476)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1443)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1426)
        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:64)
        at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
        at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
        at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:190)
        at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99)
        at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)
        at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)
        ... 24 more
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterExce
ption: the trustAnchors parameter must be non-empty
        at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:56)
        at sun.security.validator.Validator.getInstance(Validator.java:146)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:105)
        at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:167)
        at com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:840)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:619)
        at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
        ... 30 more

Steps to reproduce:
================
1. Deploy CommodityQuote sample
2. Create a new user with username = client and password=testing
3. Configure security scenario 1 of the commodityquote service with selecting the above user
4. Execute run-client.bat as follows.
run-client.bat -qos secure
5. Select security scenario 1
6. Enter user name and password
7. Select operation number 2 (Get Symbols)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        




More information about the Wsas-java-dev mailing list