I am trying to authenticate admin/admin user using
the org.wso2.carbon.authenticator.stub.AuthenticationAdminStub


I get the following exception
"org.apache.axis2.AxisFault: Connection has been shutdown:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty"

Following is a portion of the code,


                String trustStore =
                    System.getProperty("user.dir") + File.separator + "src"
+
                            File.separator + "main" + File.separator +
"resources" +
                            File.separator + "wso2carbon.jks";
                System.setProperty("javax.net.ssl.trustStore", trustStore);
System.setProperty("javax.net.ssl.trustStorePassword", "wso2carbon");
                serviceEndPoint = "https://localhost:9443/dashboardConfigs/
";
AuthenticationAdminStub authStub = new
AuthenticationAdminStub(serviceEndPoint);
authStub._getServiceClient().getOptions().setManageSession(true);
authenticate = authStub.login("admin", "admin","localhost");


Can someone propose a solution?
Thanks
-- 
Pubudu Dodangoda
BSc Engineering(Hon's) Undergraduate
Department of Computer Science Engineering
University of Moratuwa
0716053681 / 0775192994
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to